Branch: Tag:

2017-11-07

2017-11-07 10:49:18 by Martin Nilsson <nilsson@fastmail.com>

Move my_strtod to lex

6:      #include "global.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. */