This is the simplest main function for an application of the command interpreter. This application has only the built-in commands.
#include "interp.h"
FUNCTION *Funcs;
FUNCTIONC *Funcs_C;
FUNCTIONGen *Funcs_Gen[] = {
};
pfi *proc[] = { }; /* Here only the basic commands of the interpreter
are implemented */
/*--- user defined sections of the initialization file (none) ---*/
pfib procb_user[] = {
NULL,
};
char *namesb_user[] = {
"",
};
int
main(int argc, char *argv[])
{
Funcs = Funcs_interp; /* Default array of real functions for */
_NBFONC = _NBFONC0; /* the expression evaluator */
Funcs_C = Funcs_interp_C; /* Default array of complex functions for */
_NBFONC_C = _NBFONC0_C; /* the expression evaluator */
User_Init_File = NULL;
prog_c(argc, argv, "interp.ini", NULL, 0, NULL, 0);
/* the initialization file is interp.ini */
return 0;
}