fmting
authorCarsten Haitzler <raster@rasterman.com>
Wed, 9 Dec 2009 07:54:43 +0000 (07:54 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Wed, 9 Dec 2009 07:54:43 +0000 (07:54 +0000)
SVN revision: 44313

legacy/edje/src/lib/Edje.h
legacy/edje/src/lib/edje_main.c

index b42cbae..28af9d1 100644 (file)
@@ -251,50 +251,45 @@ typedef enum _Edje_External_Param_Type Edje_External_Param_Type;
 
 struct _Edje_External_Param
 {
-  const char *name;
-  Edje_External_Param_Type type;
-  // XXX these could be in a union, but eet doesn't support them (or does it?)
-  int i;
-  double d;
-  const char *s;
+   const char *name;
+   Edje_External_Param_Type type;
+   // XXX these could be in a union, but eet doesn't support them (or does it?)
+   int i;
+   double d;
+   const char *s;
 };
 typedef struct _Edje_External_Param Edje_External_Param;
 
-#ifndef NAN
-extern const float *_edje_const_nan;
-#define NAN (*_edje_const_nan)
-#endif
-
-#define EDJE_EXTERNAL_INT_UNSET INT32_MAX
-#define EDJE_EXTERNAL_DOUBLE_UNSET NAN
+#define EDJE_EXTERNAL_INT_UNSET 0xffffffff
+#define EDJE_EXTERNAL_DOUBLE_UNSET 0x1.0p255f
 
 struct _Edje_External_Param_Info
 {
    const char *name;
    Edje_External_Param_Type type;
    union
-   {
-      struct
-      {
-        int def, min, max, step;
-      } i;
-      struct
-      {
-        double def, min, max, step;
-      } d;
-      struct
-      {
-        const char *def;
-        const char *accept_fmt;
-        const char *deny_fmt;
-      } s;
-      struct
-      {
-        int def;
-        const char *false_str;
-        const char *true_str;
-      } b;
-   } info;
+     {
+        struct
+          {
+             int def, min, max, step;
+          } i;
+        struct
+          {
+             double def, min, max, step;
+          } d;
+        struct
+          {
+             const char *def;
+             const char *accept_fmt;
+             const char *deny_fmt;
+          } s;
+        struct
+          {
+             int def;
+             const char *false_str;
+             const char *true_str;
+          } b;
+     } info;
 };
 typedef struct _Edje_External_Param_Info Edje_External_Param_Info;
 
index c39d488..5540352 100644 (file)
@@ -6,9 +6,6 @@
 
 #include "edje_private.h"
 
-static const unsigned int _edje_const_nan_int = 0x7fc00000;
-const float *_edje_const_nan = (float *)(&(_edje_const_nan_int));
-
 static int _edje_init_count = 0;
 static int _edje_log_dom_global = -1;
 Eina_Mempool *_edje_real_part_mp = NULL;