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.59 1998/12/20 09:22:53 hubbe Exp $"); + RCSID("$Id: lex.c,v 1.60 2001/04/06 14:29:30 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:29:   #ifdef HAVE_SYS_PARAM_H   #include <sys/param.h>   #endif      #include <ctype.h>   #include <math.h>   #include <fcntl.h>   #include <errno.h>   #include "time_stuff.h"    + #ifndef LEXDEBUG   #define LEXDEBUG 0 -  + #endif /* !LEXDEBUG */      #ifdef INSTR_PROFILING   int last_instruction=0;   #endif      void exit_lex(void)   {   #ifdef PIKE_DEBUG    if(p_flag)    {
pike.git/src/lex.c:480: Inside #if defined(MALLOC_DEBUG)
  #ifdef MALLOC_DEBUG    check_sfltable();   #endif       while(1)    {    switch(c=GETC())    {    case 0:    lex.pos--; - #ifdef F_LEX_EOF + #if defined(F_LEX_EOF) && !defined(YYPICC)    return F_LEX_EOF; - #else /* !F_LEX_EOF */ -  return 0; - #endif /* F_LEX_EOF */ + #else /* !F_LEX_EOF || YYPICC */ +  return -1; + #endif /* F_LEX_EOF && !YYPICC */       case '\n':    lex.current_line++;    continue;       case '#':    SKIPSPACE();    READBUF(C!=' ' && C!='\t' && C!='\n');       switch(len>0?buf[0]:0)