SHARE
TWEET

COULD_HAVE_HAD

slevy1 Jul 1st, 2013 26 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <ST_IN_SCRIPTING>{HNUM} {
  2.   errno = 0;
  3.   char *hex = yytext;
  4.   zendlval->value.lval = strtol(hex, NULL, 16);
  5.   if ( errno == ERANGE ) {
  6.     zendlval->value.dval = zend_hex_strtod(hex, NULL);
  7.     zendlval->type = IS_DOUBLE;
  8.     return T_DNUMBER;
  9.   }
  10.   zendlval->type = IS_LONG;
  11.   return T_LNUMBER;
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top