diff options
author | jofret | 2009-06-05 05:47:59 +0000 |
---|---|---|
committer | jofret | 2009-06-05 05:47:59 +0000 |
commit | 06d3579030a681c3b1f833c5e586a02937929434 (patch) | |
tree | 94c806579bd5fb4cca26114af9ee2a875b8b0fd5 | |
parent | f4260a8da5a439b3d69020a2b528a3b287caa618 (diff) | |
download | scilab2c-06d3579030a681c3b1f833c5e586a02937929434.tar.gz scilab2c-06d3579030a681c3b1f833c5e586a02937929434.tar.bz2 scilab2c-06d3579030a681c3b1f833c5e586a02937929434.zip |
Gather constant information
-rw-r--r-- | includes/constant.h | 11 | ||||
-rw-r--r-- | macros/CFiles/sci2cincludes/constant.h | 27 |
2 files changed, 11 insertions, 27 deletions
diff --git a/includes/constant.h b/includes/constant.h index a2c0d499..e03d9961 100644 --- a/includes/constant.h +++ b/includes/constant.h @@ -13,8 +13,19 @@ #ifndef __CONSTANT_H__ #define __CONSTANT_H__ +#include <math.h> + #define FPI 3.1415926535897931159980f #define DPI 3.1415926535897931159980 +#define PI DPI +#define SCI2C_PI DPI +#define SCI2C_T 1
+#define SCI2C_F 0
+#define SCI2C_NAN nan("")
+#define SCI2C_INF 1e100000 +#define SCI2C_IMG_C FloatComplex(0,1) +#define SCI2C_IMG_Z DoubleComplex(0,1)
+ #endif /* !__CONSTANT_H__ */ diff --git a/macros/CFiles/sci2cincludes/constant.h b/macros/CFiles/sci2cincludes/constant.h deleted file mode 100644 index 9eb49544..00000000 --- a/macros/CFiles/sci2cincludes/constant.h +++ /dev/null @@ -1,27 +0,0 @@ -/* -** -*- C -*- -** -** constant.h -** Made by Bruno JOFRET <bruno.jofret@inria.fr> -** -** Started on Fri Mar 30 12:03:14 2007 jofret -** Last update Mon Oct 22 17:23:08 2007 bruno -** -** Copyright INRIA 2007 -*/ - -#ifndef __CONSTANT_H__ -#define __CONSTANT_H__ - -#include <math.h> -#define PI 3.1415826535 -#define SCI2C_PI 3.1415826535 -#define SCI2C_T 1
-#define SCI2C_F 0
-#define SCI2C_NAN nan("")
-#define SCI2C_INF 1e100000 -#define SCI2C_IMG_C FloatComplex(0,1) -#define SCI2C_IMG_Z DoubleComplex(0,1)
- -#endif /* !__CONSTANT_H__ */ - |