#include "scanstrbuf.h"
#include "symtab.h"
#include "pragma.h"
-#include "trampoline.h"
+#include "wrappedcall.h"
{ "static-locals", PRAGMA_STATIC_LOCALS },
{ "staticlocals", PRAGMA_STATICLOCALS }, /* obsolete */
{ "warn", PRAGMA_WARN },
- { "wrapped-call", PRAGMA_WRAPPED_CALL },
+ { "wrapped-call", PRAGMA_WRAPPED_CALL },
{ "writable-strings", PRAGMA_WRITABLE_STRINGS },
{ "zpsym", PRAGMA_ZPSYM },
};
break;
case PP_POP:
- PopTrampoline();
+ PopWrappedCall();
/* Done */
goto ExitPoint;
Entry = FindSym(Name);
/* Check if the name is valid */
- if (Entry && Entry->Flags & (SC_FUNC | SC_STORAGE)) {
+ if (Entry && Entry->Flags & SC_FUNC) {
- PushTrampoline(Entry, Val);
+ PushWrappedCall(Entry, Val);
Entry->Flags |= SC_REF;
+ Entry->V.F.Func->Flags |= FD_CALL_WRAPPER;
} else {
/* Segment name is invalid */
- Error ("Wrapped-call target does not exist or is not a function or array");
+ Error ("Wrapped-call target does not exist or is not a function");
}