pike.git / src / lex.c

version» Context lines:

pike.git/src/lex.c:20:   #include "operators.h"   #include "opcodes.h"   #include "builtin_efuns.h"      #include "macros.h"   #include <sys/param.h>   #include <ctype.h>   #include <math.h>   #include <fcntl.h>   #include <errno.h> + #include "time_stuff.h"    - #if TIME_WITH_SYS_TIME - # include <sys/time.h> - # include <time.h> - #else - # if HAVE_SYS_TIME_H - # include <sys/time.h> - # else - # if HAVE_TIME_H - # include <time.h> - # endif - # endif - #endif -  +    #define LEXDEBUG 0   #define EXPANDMAX 50000      struct lpc_string *current_file;      INT32 current_line;   INT32 old_line;   INT32 total_lines;   INT32 nexpands;   int pragma_all_inline; /* inline all possible inlines */
pike.git/src/lex.c:961:    }    len+=tmp;    }    while(sp>save_sp) pop_stack();    nexpands+=len;    return 1;   }      /*** Handle include ****/    - static void handle_include(char *name) + static void handle_include(char *name, int local_include)   {    int fd;    char buf[400];       push_string(make_shared_string(name));    push_string(current_file);    reference_shared_string(current_file); -  +  push_int(local_include);       SAFE_APPLY_MASTER("handle_include",2);       if(sp[-1].type != T_STRING)    {    my_yyerror("Couldn't include file '%s'.",name);    return;    }       retry:
pike.git/src/lex.c:1236:    continue;    }    }else{    if(c!=F_STRING)    {    yyerror("Couldn't find include filename.\n");    SKIPUPTO('\n');    continue;    }    } -  handle_include(buf); +  handle_include(buf, c==F_STRING);    break;    }       if(!strcmp("if",buf))    {    if(!calc()) do_skip(SKIPTO_ELSE);    break;    }       if(!strcmp("ifdef",buf))