]> granicus.if.org Git - php/commitdiff
HASH_OF is usable enough (i hate duplicating macros all over the place)
authorThies C. Arntzen <thies@php.net>
Wed, 15 Sep 1999 09:51:20 +0000 (09:51 +0000)
committerThies C. Arntzen <thies@php.net>
Wed, 15 Sep 1999 09:51:20 +0000 (09:51 +0000)
ext/standard/basic_functions.c
main/php.h

index de3eff9adc1bf971b3c094850025a14faf9ed3a1..2f376468fc863a289967b6dcc4db8a1e0af2ff4a 100644 (file)
@@ -18,8 +18,6 @@
  */
 
 
-#define HASH_OF(p) ((p)->type==IS_ARRAY ? (p)->value.ht : (((p)->type==IS_OBJECT ? (p)->value.obj.properties : NULL)))
-
 #include "php.h"
 #include "php_ini.h"
 #include "internal_functions_registry.h"
index 4f635a21e86a0cd4c293ab534467e0556a63258f..2207dbce8db7d4c5324c3e64eb5bac87bc226160 100644 (file)
@@ -249,6 +249,7 @@ extern int ap_vsnprintf(char *, size_t, const char *, va_list);
 #define STR_FREE(ptr) if (ptr && ptr!=empty_string && ptr!=undefined_variable_string) { efree(ptr); }
 #define COPY_STRING(yy)   (yy).value.str.val = (char *) estrndup((yy).value.str.val,(yy).value.str.len)
 #define STR_PRINT(str) ((str)?(str):"")
+#define HASH_OF(p) ((p)->type==IS_ARRAY ? (p)->value.ht : (((p)->type==IS_OBJECT ? (p)->value.obj.properties : NULL)))
 
 #ifndef MAXPATHLEN
 #define MAXPATHLEN 256    /* Should be safe for any weird systems that do not define it */