pike.git / src / language.yacc

version» Context lines:

pike.git/src/language.yacc:178:   %left F_LSH F_RSH   %left '+' '-'   %left '*' '%' '/'   %right F_NOT '~'   %nonassoc F_INC F_DEC      %{   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.152 1999/12/18 02:13:20 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.153 1999/12/18 02:28:13 grubba Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif      #include "interpret.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "las.h"   #include "interpret.h"
pike.git/src/language.yacc:2574:    debug_malloc_touch(str);    reference_shared_string(str);    if (compiler_frame->current_number_of_locals == MAX_LOCAL)    {    yyerror("Too many local variables.");    }else {   #ifdef PIKE_DEBUG    check_type_string(type);   #endif /* PIKE_DEBUG */    if (pike_types_le(type, void_type_string)) { +  if (compiler_pass != 1) {    yywarning("Declaring local variable with type void "    "(converted to type zero)."); -  +  }    free_string(type);    copy_shared_string(type, zero_type_string);    }    compiler_frame->variable[compiler_frame->current_number_of_locals].type = type;    compiler_frame->variable[compiler_frame->current_number_of_locals].name = str;    compiler_frame->variable[compiler_frame->current_number_of_locals].def = def;    compiler_frame->current_number_of_locals++;    if(compiler_frame->current_number_of_locals >    compiler_frame->max_number_of_locals)    {