diff --git a/src/calls.c b/src/calls.c index 70f9cfd7bb..198e96ef7c 100644 --- a/src/calls.c +++ b/src/calls.c @@ -1581,7 +1581,7 @@ static void SaveFunction(Obj func) SaveHandler(header->handlers[i]); SaveSubObj(header->name); SaveSubObj(header->nargs); - SaveSubObj(header->namesOfLocals); + SaveSubObj(header->namesOfArgsAndLocals); SaveSubObj(header->prof); SaveSubObj(header->nloc); SaveSubObj(header->body); @@ -1603,7 +1603,7 @@ static void LoadFunction(Obj func) header->handlers[i] = LoadHandler(); header->name = LoadSubObj(); header->nargs = LoadSubObj(); - header->namesOfLocals = LoadSubObj(); + header->namesOfArgsAndLocals = LoadSubObj(); header->prof = LoadSubObj(); header->nloc = LoadSubObj(); header->body = LoadSubObj(); diff --git a/src/calls.h b/src/calls.h index ec6fd017ff..ac9d37e4ec 100644 --- a/src/calls.h +++ b/src/calls.h @@ -109,7 +109,7 @@ typedef struct { ObjFunc handlers[8]; Obj name; Obj nargs; - Obj namesOfLocals; + Obj namesOfArgsAndLocals; Obj prof; Obj nloc; Obj body; @@ -152,7 +152,7 @@ EXPORT_INLINE Int NARG_FUNC(Obj func) EXPORT_INLINE Obj NAMS_FUNC(Obj func) { - return CONST_FUNC(func)->namesOfLocals; + return CONST_FUNC(func)->namesOfArgsAndLocals; } Obj NAMI_FUNC(Obj func, Int i); @@ -203,9 +203,9 @@ EXPORT_INLINE void SET_NARG_FUNC(Obj func, Int nargs) FUNC(func)->nargs = INTOBJ_INT(nargs); } -EXPORT_INLINE void SET_NAMS_FUNC(Obj func, Obj namesOfLocals) +EXPORT_INLINE void SET_NAMS_FUNC(Obj func, Obj namesOfArgsAndLocals) { - FUNC(func)->namesOfLocals = namesOfLocals; + FUNC(func)->namesOfArgsAndLocals = namesOfArgsAndLocals; } EXPORT_INLINE void SET_PROF_FUNC(Obj func, Obj prof)