pike.git / src / lex.c

version» Context lines:

pike.git/src/lex.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: lex.c,v 1.53 1998/05/12 23:51:26 hubbe Exp $"); + RCSID("$Id: lex.c,v 1.54 1998/05/15 18:30:21 grubba Exp $");   #include "language.h"   #include "array.h"   #include "lex.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "constants.h"   #include "hashtable.h"   #include "stuff.h"   #include "pike_memory.h"   #include "interpret.h"
pike.git/src/lex.c:543:    lex.pragmas |= ID_INLINE;    }    else if (strcmp(buf, "all_nomask") == 0)    {    lex.pragmas |= ID_NOMASK;    }    break;    }       badhash: -  my_yyerror("Unknown directive #%s.",buf); +  if (sizeof(buf) < 1024) { +  my_yyerror("Unknown preprocessor directive #%s.",buf); +  } else { +  my_yyerror("Unknown preprocessor directive."); +  }    SKIPUPTO('\n');    continue;    }    continue;       case ' ':    case '\t':    continue;       case '\'':