pike.git / src / lex.c

version» Context lines:

pike.git/src/lex.c:1: + /*\ + ||| This file a part of uLPC, and is copyright by Fredrik Hubinette + ||| uLPC is distributed as GPL (General Public License) + ||| See the files COPYING and DISCLAIMER for more information. + \*/   #include "global.h"   #include "language.h"   #include "array.h"   #include "lex.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "add_efun.h"   #include "hashtable.h"   #include "stuff.h"   #include "memory.h"
pike.git/src/lex.c:53:    {    int e;    struct locals *l;    for(e=0;e<local_variables->current_number_of_locals;e++)    {    free_string(local_variables->variable[e].name);    free_string(local_variables->variable[e].type);    }    if(local_variables->current_type)    free_string(local_variables->current_type); +  if(local_variables->current_return_type) +  free_string(local_variables->current_return_type);    l=local_variables->next;    free((char *)local_variables);    local_variables=l;    }       if(current_file) free_string(current_file);    free_reswords();   }      struct keyword reserved_words[] =
pike.git/src/lex.c:199:   { "push 0", F_CONST0 },   { "push 1", F_CONST1 },   { "range", F_RANGE },   { "return", F_RETURN },   { "return 0", F_RETURN_0 },   { "sscanf", F_SSCANF },   { "string", F_STRING },   { "switch", F_SWITCH },   { "unary minus", F_NEGATE },   { "while", F_WHILE }, - { "write opcode", F_WRITE_OPCODE }, +    { "x++ and pop", F_INC_AND_POP },   { "x++", F_POST_INC },   { "x-- and pop", F_DEC_AND_POP },   { "x--", F_POST_DEC },   { "|", F_OR },   { "|=", F_OR_EQ },   { "||", F_LOR },   { "~", F_COMPL },   };   
pike.git/src/lex.c:1912:   {    struct lpc_predef_s *tmpf;       free_all_defines();       if(!local_variables)    local_variables=ALLOC_STRUCT(locals);    local_variables->next=0;    local_variables->current_number_of_locals=0;    local_variables->current_type=0; +  local_variables->current_return_type=0;    simple_add_define("__uLPC__", "1",0);       for (tmpf=lpc_predefs; tmpf; tmpf=tmpf->next)    simple_add_define(tmpf->name, tmpf->value,0);       simple_add_define("__LINE__",0,insert_current_line);    simple_add_define("__FILE__",0,insert_current_file_as_string);    simple_add_define("__DATE__",0,insert_current_date_as_string);    simple_add_define("__TIME__",0,insert_current_time_as_string);   
pike.git/src/lex.c:1964:    struct locals *l;    for(e=0;e<local_variables->current_number_of_locals;e++)    {    free_string(local_variables->variable[e].name);    free_string(local_variables->variable[e].type);    }       if(local_variables->current_type)    free_string(local_variables->current_type);    +  if(local_variables->current_return_type) +  free_string(local_variables->current_return_type); +     l=local_variables->next;    free((char *)local_variables);    local_variables=l;    }       free_inputstate(istate);    istate=NULL;    free_all_defines();    total_lines+=current_line-old_line;   }