Branch: Tag:

2004-03-15

2004-03-15 15:24:29 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Cleaned up handling of COMPILATION_FORCE_RESOLVE.

Rev: src/language.yacc:1.316
Rev: src/las.c:1.325
Rev: src/program.h:1.180

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: las.c,v 1.324 2004/03/13 13:22:40 grubba Exp $ + || $Id: las.c,v 1.325 2004/03/15 15:24:29 grubba Exp $   */      #include "global.h" - RCSID("$Id: las.c,v 1.324 2004/03/13 13:22:40 grubba Exp $"); + RCSID("$Id: las.c,v 1.325 2004/03/15 15:24:29 grubba Exp $");      #include "language.h"   #include "interpret.h"
1253:    * first place to look up these efuns in the module being compiled.    * Wouldn't it be better if this function consulted    * compiler_handler->get_default_module? /mast */ -  int orig_flags = Pike_compiler->flags; -  Pike_compiler->flags |= COMPILATION_FORCE_RESOLVE; +  int orig_flags; +  SET_FORCE_RESOLVE(orig_flags);    name = make_shared_string(function);    if(!name || !(n=find_module_identifier(name,0)))    {    free_string(name);    my_yyerror("Internally used efun undefined: %s",function); -  Pike_compiler->flags = orig_flags; +  UNSET_FORCE_RESOLVE(orig_flags);    return mkintnode(0);    }    free_string(name); -  +  UNSET_FORCE_RESOLVE(orig_flags);    n = mkapplynode(n, args); -  Pike_compiler->flags = orig_flags; +     return n;   }