Branch: Tag:

2018-07-07

2018-07-07 09:50:13 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Cleaned up the resolv() calling conventions.

CompilerEnvironment()->PikeCompiler()->resolv() now takes a single
argument, and looks up the current file and handlers from the
PikeCompiler object, and then calls CompilerEnvironment()->resolv().

The actual calling of resolv() in the handlers is now performed
by CompilerEnvironment()->resolv().

2023:    CHECK_COMPILER();       ref_push_string(ident); -  ref_push_string(c->lex.current_file); -  if (c->handler) { -  ref_push_object(c->handler); -  } else { -  push_int(0); -  } -  if (!safe_apply_current2(PC_RESOLV_FUN_NUM, 3, NULL)) +  if (!safe_apply_current2(PC_RESOLV_FUN_NUM, 1, NULL))    handle_compile_exception ("Error resolving '%S'.", ident);       if (Pike_compiler->compiler_pass != COMPILER_PASS_LAST) {