Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Whitespace tweaks

  • Loading branch information...
commit fcf818075111d06936f0bd5541152f006ef30ba2 1 parent b761131
Olly Betts ojwb authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 Lib/php/globalvar.i
8 Lib/php/globalvar.i
View
@@ -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");
}
@@ -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;
@@ -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);
}
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.