diff options
Diffstat (limited to 'ext/standard/scanf.c')
-rw-r--r-- | ext/standard/scanf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/standard/scanf.c b/ext/standard/scanf.c index dd58d48c4a..47c9590ddc 100644 --- a/ext/standard/scanf.c +++ b/ext/standard/scanf.c @@ -125,6 +125,7 @@ typedef struct CharSet { static char *BuildCharSet(CharSet *cset, char *format); static int CharInSet(CharSet *cset, int ch); static void ReleaseCharSet(CharSet *cset); +static inline void scan_set_error_return(int numVars, pval **return_value); /* {{{ BuildCharSet @@ -1228,7 +1229,8 @@ PHPAPI int php_sscanf_internal( char *string,char *format, /* }}} */ /* the compiler choked when i tried to make this a macro */ -inline void scan_set_error_return(int numVars,pval **return_value) { +static inline void scan_set_error_return(int numVars,pval **return_value) +{ if (numVars) { (*return_value)->type = IS_LONG; (*return_value)->value.lval = SCAN_ERROR_EOF; /* EOF marker */ |