pike.git / src / las.c

version» Context lines:

pike.git/src/las.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: las.c,v 1.22 1997/02/27 08:09:46 hubbe Exp $"); + RCSID("$Id: las.c,v 1.23 1997/02/27 10:34:46 hubbe Exp $");      #include "language.h"   #include "interpret.h"   #include "las.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "lex.h"   #include "pike_types.h"
pike.git/src/las.c:490:    SET_ONERROR(tmp,exit_on_error,"Error in handle_error in master object!");    assign_svalue_no_free(sp++, & throw_value);    APPLY_MASTER("handle_error", 1);    pop_stack();    UNSET_ONERROR(tmp);       yyerror("Couldn't index module.");    push_int(0);    }else{    resolv_constant(n); +  if(sp[-1].type==T_INT) +  { +  yyerror("Failed to index module (module doesn't exist?)"); +  }else{    push_string(id);    reference_shared_string(id);    f_index(2);    } -  +  }    UNSETJMP(tmp);    ret=mkconstantsvaluenode(sp-1);    pop_stack();    return ret;   }         int node_is_eq(node *a,node *b)   {    if(a == b) return 1;