void start_quip_with_menu(int argc, char **argv, Menu *initial_menu_p ) { Query_Stack *qsp; assert( initial_menu_p != NULL ); set_progname(argv[0]); first_menu = initial_menu_p; //debug |= CTX_DEBUG_MASK; //debug |= GETBUF_DEBUG_MASK; qsp=init_first_query_stack(); // reads stdin? init_builtins(); init_variables(SINGLE_QSP_ARG); // specify dynamic variables declare_functions(SINGLE_QSP_ARG); //PUSH_MENU(quip); PUSH_MENU_PTR(initial_menu_p); set_args(QSP_ARG argc,argv); rcfile(qsp,argv[0]); // If we have commands to create a widget in the startup file, // we get an error, so don't call exec_quip until after the appDelegate // has started... } // end start_quip_with_menu
void bind_names ( node_t *root ) { //Initial scope for the functions scope_add(); declare_functions(root); recurse_tree(root); //Remove the function scope scope_remove(); }