Skip to content

Commit

Permalink
kernel: rename namesOfLocals to namesOfArgsAndLocals
Browse files Browse the repository at this point in the history
This describes the role of this list much better.
  • Loading branch information
fingolfin committed Feb 6, 2019
1 parent dc21208 commit cbad41f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/calls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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();
Expand Down
8 changes: 4 additions & 4 deletions src/calls.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ typedef struct {
ObjFunc handlers[8];
Obj name;
Obj nargs;
Obj namesOfLocals;
Obj namesOfArgsAndLocals;
Obj prof;
Obj nloc;
Obj body;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cbad41f

Please sign in to comment.