Skip to content

Commit

Permalink
Whitespace tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ojwb committed Feb 17, 2014
1 parent b761131 commit fcf8180
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Lib/php/globalvar.i
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
$1_ltype _temp;

zend_hash_find(&EG(symbol_table), (char*)"$1", sizeof("$1"), (void**)&z_var);
if (SWIG_ConvertPtr(*z_var, (void **)&_temp, $1_descriptor, 0) < 0) {
if (SWIG_ConvertPtr(*z_var, (void **)&_temp, $1_descriptor, 0) < 0) {
SWIG_PHP_Error(E_ERROR,"Type error in value of $symname. Expected $&1_descriptor");
}

Expand Down Expand Up @@ -293,7 +293,7 @@
efree(s1);
if($1) {
(*z_var)->value.str.val = estrdup($1);
(*z_var)->value.str.len = strlen($1) +1;
(*z_var)->value.str.len = strlen($1) + 1;
} else {
(*z_var)->value.str.val = 0;
(*z_var)->value.str.len = 0;
Expand All @@ -314,7 +314,7 @@
zval **z_var;

zend_hash_find(&EG(symbol_table), (char*)"$1", sizeof("$1"), (void**)&z_var);
if($1)
if($1)
SWIG_SetPointerZval(*z_var, (void*)$1, $1_descriptor, 0);
}

Expand All @@ -328,7 +328,7 @@ deliberate error cos this code looks bogus to me
if((s1 == NULL) || strcmp(s1, $1)) {
if($1) {
(*z_var)->value.str.val = estrdup($1);
(*z_var)->value.str.len = strlen($1)+1;
(*z_var)->value.str.len = strlen($1) + 1;
} else {
(*z_var)->value.str.val = 0;
(*z_var)->value.str.len = 0;
Expand Down

0 comments on commit fcf8180

Please sign in to comment.