diff options
author | jofret | 2007-02-23 16:28:59 +0000 |
---|---|---|
committer | jofret | 2007-02-23 16:28:59 +0000 |
commit | 33c5869cea9b4c9c672898684bf06df914b35ead (patch) | |
tree | d2e6ffaecff66a885878da73cb155e777045f46e /src | |
parent | 3fcf5c2b92d513ca1fd52db020034a7f9ab57ff2 (diff) | |
download | scilab2c-33c5869cea9b4c9c672898684bf06df914b35ead.tar.gz scilab2c-33c5869cea9b4c9c672898684bf06df914b35ead.tar.bz2 scilab2c-33c5869cea9b4c9c672898684bf06df914b35ead.zip |
* src/type/doubleComplexC99.h :
_REMOVED_ : All declarations are put in
src/type/doubleComplex.h .
* src/type/floatComplexC99.h :
_REMOVED_ : All declarations are put in
src/type/floatComplex.h .
Standard C99 must _NOT_ override my own interfaces.
Encapsulate some declarations.
Complex representation is now accessed through a Bridge
during compilation.
Diffstat (limited to 'src')
-rw-r--r-- | src/type/doubleComplex.c | 6 | ||||
-rw-r--r-- | src/type/doubleComplex.h | 6 | ||||
-rw-r--r-- | src/type/floatComplex.c | 6 | ||||
-rw-r--r-- | src/type/floatComplex.h | 6 | ||||
-rw-r--r-- | src/type/testDoubleComplex.c | 6 |
5 files changed, 15 insertions, 15 deletions
diff --git a/src/type/doubleComplex.c b/src/type/doubleComplex.c index 22ee021c..61a6ef18 100644 --- a/src/type/doubleComplex.c +++ b/src/type/doubleComplex.c @@ -5,7 +5,7 @@ ** Made by Bruno JOFRET <bruno.jofret@inria.fr> ** ** Started on Thu Nov 30 16:27:08 2006 jofret -** Last update Fri Feb 23 16:12:41 2007 jofret +** Last update Fri Feb 23 16:20:09 2007 jofret ** ** Copyright INRIA 2006 */ @@ -78,7 +78,7 @@ doubleComplex DoubleComplex(double real, double imag) { ** \function isreal ** \brief check if complex is real . */ -bool isreal(doubleComplex z) { +bool zisreals(doubleComplex z) { if (zimags(z) == 0) return true; return false; @@ -88,7 +88,7 @@ bool isreal(doubleComplex z) { ** \function isimag ** \brief check if complex is pure imaginary . */ -bool isimag(doubleComplex z) { +bool zisimags(doubleComplex z) { if (zreals(z) == 0) return true; return false; diff --git a/src/type/doubleComplex.h b/src/type/doubleComplex.h index 2fbdf2ba..e6178698 100644 --- a/src/type/doubleComplex.h +++ b/src/type/doubleComplex.h @@ -5,7 +5,7 @@ ** Made by Bruno JOFRET <bruno.jofret@inria.fr> ** ** Started on Thu Nov 30 16:50:08 2006 jofret -** Last update Fri Feb 23 16:13:05 2007 jofret +** Last update Fri Feb 23 16:19:20 2007 jofret ** ** Copyright INRIA 2006 */ @@ -30,8 +30,8 @@ typedef struct double_complex doubleComplex; double zreals(doubleComplex); double zimags(doubleComplex); doubleComplex DoubleComplex(double, double); -bool isreal(doubleComplex); -bool isimag(doubleComplex); +bool zisreals(doubleComplex); +bool zisimags(doubleComplex); /* ** } */ diff --git a/src/type/floatComplex.c b/src/type/floatComplex.c index 68cb78a6..a23bd680 100644 --- a/src/type/floatComplex.c +++ b/src/type/floatComplex.c @@ -5,7 +5,7 @@ ** Made by Bruno JOFRET <bruno.jofret@inria.fr> ** ** Started on Thu Nov 30 16:27:08 2006 jofret -** Last update Fri Feb 23 16:12:01 2007 jofret +** Last update Fri Feb 23 16:19:54 2007 jofret ** ** Copyright INRIA 2006 */ @@ -65,7 +65,7 @@ floatComplex FloatComplex(float real, float imag) { ** \function isreal ** \brief check if complex is real . */ -bool isreal(floatComplex z) { +bool cisreals(floatComplex z) { if (creals(z) == 0) return true; return false; @@ -75,7 +75,7 @@ bool isreal(floatComplex z) { ** \function isimag ** \brief check if complex is pure imaginary . */ -bool isimag(floatComplex z) { +bool cisimags(floatComplex z) { if (cimags(z) == 0) return true; return false; diff --git a/src/type/floatComplex.h b/src/type/floatComplex.h index 0fdfc832..8f098956 100644 --- a/src/type/floatComplex.h +++ b/src/type/floatComplex.h @@ -5,7 +5,7 @@ ** Made by Bruno JOFRET <bruno.jofret@inria.fr> ** ** Started on Thu Nov 30 16:50:08 2006 jofret -** Last update Fri Feb 23 16:10:58 2007 jofret +** Last update Fri Feb 23 16:19:10 2007 jofret ** ** Copyright INRIA 2006 */ @@ -30,8 +30,8 @@ typedef struct float_complex floatComplex; float creals(floatComplex); float cimags(floatComplex); floatComplex FloatComplex(float, float); -bool isreal(floatComplex); -bool isimag(floatComplex); +bool cisreals(floatComplex); +bool cisimags(floatComplex); /* ** } */ diff --git a/src/type/testDoubleComplex.c b/src/type/testDoubleComplex.c index 5ca02f98..704613c0 100644 --- a/src/type/testDoubleComplex.c +++ b/src/type/testDoubleComplex.c @@ -5,7 +5,7 @@ ** Made by Bruno JOFRET <bruno.jofret@inria.fr> ** ** Started on Thu Nov 30 16:59:04 2006 jofret -** Last update Fri Feb 2 15:39:31 2007 jofret +** Last update Fri Feb 23 16:19:35 2007 jofret ** ** Copyright INRIA 2006 */ @@ -34,7 +34,7 @@ int main(int argc, char **argv) { /* z = -3 + 25*%i */ doubleComplex z = DoubleComplex(-3,25); - printf("Partie reelle = %f\n", creal(z)); - printf("Partie imaginaire = %f\n", cimag(z)); + printf("Partie reelle = %f\n", zreals(z)); + printf("Partie imaginaire = %f\n", zimags(z)); return 0; } |