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
This commit is contained in:
Warner Losh 2017-12-19 04:05:43 +00:00
parent 9ff7bf7a93
commit 0ff3f28b2d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326960

View File

@ -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 */