Skip to content

Commit

Permalink
kernel: make PrintFunction static
Browse files Browse the repository at this point in the history
  • Loading branch information
fingolfin committed Oct 2, 2020
1 parent 4be5d2f commit 7b98f48
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 17 deletions.
3 changes: 1 addition & 2 deletions src/calls.c
Original file line number Diff line number Diff line change
Expand Up @@ -985,8 +985,7 @@ static Obj TypeFunction(Obj func)

static Obj PrintOperation;

void PrintFunction (
Obj func )
static void PrintFunction(Obj func)
{
Int narg; /* number of arguments */
Int nloc; /* number of locals */
Expand Down
8 changes: 0 additions & 8 deletions src/calls.h
Original file line number Diff line number Diff line change
Expand Up @@ -473,14 +473,6 @@ Obj ArgStringToList(const Char * nams_c);
*F * * * * * * * * * * * * * type and print function * * * * * * * * * * * *
*/

/****************************************************************************
**
*F PrintFunction( <func> ) . . . . . . . . . . . . . . . print a function
**
** 'PrintFunction' prints the function <func> .
*/
void PrintFunction(Obj func);

void PrintKernelFunction(Obj func);


Expand Down
2 changes: 1 addition & 1 deletion src/funcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ static void PrintFuncExpr(Expr expr)
{
/* get the function expression bag */
Obj fexp = GET_VALUE_FROM_CURRENT_BODY(READ_EXPR(expr, 0));
PrintFunction( fexp );
PrintObj( fexp );
}


Expand Down
6 changes: 0 additions & 6 deletions src/streams.c
Original file line number Diff line number Diff line change
Expand Up @@ -714,9 +714,6 @@ static Obj FuncPrint(Obj self, Obj args)
else if ( IS_STRING_REP(arg) ) {
PrintString1(arg);
}
else if ( TNUM_OBJ( arg ) == T_FUNCTION ) {
PrintFunction( arg );
}
else {
PrintObj( arg );
}
Expand Down Expand Up @@ -772,9 +769,6 @@ static Obj PRINT_OR_APPEND_TO_FILE_OR_STREAM(Obj args, int append, int file)
else if (IS_STRING_REP(arg)) {
PrintString1(arg);
}
else if (IS_FUNC(arg)) {
PrintFunction(arg);
}
else {
PrintObj(arg);
}
Expand Down

0 comments on commit 7b98f48

Please sign in to comment.