int main (int argc, char *argv[]) { int c; setprogname(argv[0]); debugoff(); init_shell(NULL); my_commands(); while ((c = getopt(argc, argv, "dv?")) != -1) { switch (c) { case 'd': debugon(); fdebugon(); break; case 'v': Zerofill = TRUE; break; case '?': default: usage(); exit(1); break; } } if (init_msg_tau(getprogname())) { fatal("Couldn't connect to messaging system"); } switchboard(); tag_loop(); return 0; }
int main (int argc, char *argv[]) { char *dev_name = ".btree"; #if DEVELOPMENT debugon(); fdebugon(); #else debugoff(); fdebugoff(); #endif FN; if (argc > 1) { dev_name = argv[1]; } #if DEVELOPMENT unlink(dev); /* Development only */ #endif binit(20); Dev = bopen(dev_name); if (!Dev) eprintf("Couldn't open %s:", dev_name); blazy(Dev); init_string(Dev); init_shell(quit_callback); init_cmd(); return shell(); }
int main (int argc, char *argv[]) { char *dev_name = ".btree"; #if DEVELOPMENT debugon(); fdebugon(); #else debugoff(); fdebugoff(); #endif FN; if (argc > 1) { dev_name = argv[1]; } binit(20); #if DEVELOPMENT unlink(dev_name); #else blazy(); #endif start_string(dev_name); init_shell(quit_callback); init_cmd(); return shell(); }
int main (int argc, char *argv[]) { // debugoff(); debugon(); FN; init_dir(); init_shell(NULL); init_cmd(); return shell(); }
int main(int argc,char **argv) { debugon(); if(sic_init()) return -1; sic_autoadd("pic"); sic_end(); return 0; }
int main (int argc, char *argv[]) { char *dev = ".btree"; // debugoff(); debugon(); FN; if (argc > 1) { dev = argv[1]; } unlink(dev); /* Development only */ binit(20); init_fs(dev); init_shell(NULL); init_cmd(); return shell(); }
bool debugenv (void) { char *c; c = getenv("DEBUG"); if (c) { if (strcasecmp(c, "on") == 0) { fprintf(*stdbug, "Debug is on\n"); DebugIsOn = 1; debugon(); fdebugon(); } else if (strcasecmp(c, "off") == 0) { debugoff(); fdebugoff(); } } return DebugIsOn; }