pike.git / src / lex.c

version» Context lines:

pike.git/src/lex.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information.   */      #include "global.h" + #include "las.h"   #include "lex.h" - #include "stuff.h" +    #include "bignum.h"   #include "pike_compiler.h"   #include "interpret.h"      #include <ctype.h>    -  +  + static double my_strtod(const char *nptr, char **endptr) + { +  double tmp=strtod(nptr,endptr); +  if(*endptr>nptr) +  { +  if(endptr[0][-1]=='.') +  endptr[0]--; +  } +  return tmp; + } +    #define LEXDEBUG 0      /* Make lexers for shifts 0, 1 and 2. */      #define SHIFT 0   #include "lexer.h"   #undef SHIFT   #define SHIFT 1   #include "lexer.h"   #undef SHIFT