Skip to content

Commit

Permalink
backed out last change after andi decided on a different approach.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thies C. Arntzen committed Dec 4, 1999
1 parent 4c8259b commit 0a276c2
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Zend/zend_API.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,8 @@ ZEND_API int add_property_stringl(zval *arg, char *key, char *str, uint length,

#define SET_VAR_STRING(n,v) { \
{ \
zval *var; \
zval *var = (zval *) emalloc(sizeof(zval)); \
char *str=(v); /* prevent 'v' from being evaluated more than once */ \
MAKE_STD_ZVAL(var); \
\
var->value.str.val = (str); \
var->value.str.len = strlen((str)); \
Expand All @@ -210,8 +209,7 @@ ZEND_API int add_property_stringl(zval *arg, char *key, char *str, uint length,

#define SET_VAR_STRINGL(n,v,l) { \
{ \
zval *var; \
MAKE_STD_ZVAL(var); \
zval *var = (zval *) emalloc(sizeof(zval)); \
\
var->value.str.val = (v); \
var->value.str.len = (l); \
Expand All @@ -222,8 +220,7 @@ ZEND_API int add_property_stringl(zval *arg, char *key, char *str, uint length,

#define SET_VAR_LONG(n,v) { \
{ \
zval *var; \
MAKE_STD_ZVAL(var); \
zval *var = (zval *) emalloc(sizeof(zval)); \
\
var->value.lval = (v); \
var->type = IS_LONG; \
Expand All @@ -233,8 +230,7 @@ ZEND_API int add_property_stringl(zval *arg, char *key, char *str, uint length,

#define SET_VAR_DOUBLE(n,v) { \
{ \
zval *var; \
MAKE_STD_ZVAL(var); \
zval *var = (zval *) emalloc(sizeof(zval)); \
\
var->value.dval = (v); \
var->type = IS_DOUBLE; \
Expand Down

0 comments on commit 0a276c2

Please sign in to comment.