From: Hartmut Holzgraefe Date: Fri, 8 Mar 2002 11:59:02 +0000 (+0000) Subject: reimplementation using macro instead of function pointer ( Bug #15951 ) X-Git-Tag: help~128 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94c14ad4f6c18dbe6ade1a8d62f895002066f1dd;p=php reimplementation using macro instead of function pointer ( Bug #15951 ) --- diff --git a/ext/ctype/ctype.c b/ext/ctype/ctype.c index 59a16455e1..1298298ed5 100644 --- a/ext/ctype/ctype.c +++ b/ext/ctype/ctype.c @@ -91,43 +91,36 @@ PHP_MINFO_FUNCTION(ctype) /* {{{ ctype */ -static int ctype(int (*iswhat)(int), zval **c) -{ - switch (Z_TYPE_PP(c)) { - case IS_LONG: - return iswhat(Z_LVAL_PP(c)); - case IS_STRING: - { - char *p; - int n, len; - p=Z_STRVAL_PP(c); - len = Z_STRLEN_PP(c); - for(n=0;n