diff options
author | Warner Losh <imp@FreeBSD.org> | 2017-12-19 04:05:43 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2017-12-19 04:05:43 +0000 |
commit | 0ff3f28b2d3886b23c9c228add0fb2d540c3fbe4 (patch) | |
tree | 25f092eaa5f3289170e445c9b8632bc8f90a3312 /stand/common/interp.c | |
parent | 9ff7bf7a93bddc79a3dc5616c82cdd3b806bf606 (diff) | |
download | src-0ff3f28b2d3886b23c9c228add0fb2d540c3fbe4.tar.gz src-0ff3f28b2d3886b23c9c228add0fb2d540c3fbe4.zip |
Simplify things a little. The RETURN macro isn't required. It's only
used once, inside an #ifdef where it would be defined to be return.
Sponsored by: Netflix
Notes
Notes:
svn path=/head/; revision=326960
Diffstat (limited to 'stand/common/interp.c')
-rw-r--r-- | stand/common/interp.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/stand/common/interp.c b/stand/common/interp.c index f4117b9b3e58..5cf4124660db 100644 --- a/stand/common/interp.c +++ b/stand/common/interp.c @@ -39,11 +39,7 @@ __FBSDID("$FreeBSD$"); #ifdef BOOT_FORTH #include "ficl.h" -#define RETURN(x) stackPushINT(bf_vm->pStack,!x); return(x) - extern FICL_VM *bf_vm; -#else -#define RETURN(x) return(x) #endif #define MAXARGS 20 /* maximum number of arguments allowed */ @@ -51,12 +47,10 @@ extern FICL_VM *bf_vm; static void prompt(void); #ifndef BOOT_FORTH -static int perform(int argc, char *argv[]); - /* * Perform the command */ -int +static int perform(int argc, char *argv[]) { int result; @@ -82,7 +76,7 @@ perform(int argc, char *argv[]) } else { command_errmsg = "unknown command"; } - RETURN(result); + return(result); } #endif /* ! BOOT_FORTH */ |