next up previous contents index
Next: Example 3 Up: Examples of main files Previous: Example 1   Contents   Index


Example 2

Here no initialization file is used, all the information is contained in the program.


#include "interp.h"

extern int int_nb;
extern char int_txt[];
pfi *proc[] = { };
FUNCTION *Funcs;  
FUNCTIONC *Funcs_C;
FUNCTIONGen *Funcs_Gen[] = {
};
pfib                procb_user[] = {
    NULL,
};
char               *namesb_user[] = {
    "",
};

int
main(int argc, char *argv[])
{
    Funcs = Funcs_interp;  
    Funcs_C = Funcs_interp_C;
    _NBFONC = _NBFONC0; 
    _NBFONC_C = _NBFONC0_C;
    User_Init_File = NULL;
    prog_c(argc, argv, NULL, int_txt, int_nb, NULL, 0); 
    return 0;
}



2009-11-12