main.c (816B)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | #include "pch.h" #include "uri.h" //static struct browser _browser; static void atexit_handler(void) { //log_deinit(); } int main(int argc, char **argv) { atexit(atexit_handler); //_browser = (struct browser) //{ // .buffers_head = NULL, // .buffer_count = 0, //}; //log_init(); //tui_init(); ++argv; for (; *argv; ++argv) { /* Check for command-line arguments */ if (strz_equal(*argv, "--version")) { printf(PROGRAM_NAME " " PROGRAM_VERSION_STR "\n"); exit(EXIT_SUCCESS); } /* Attempt to parse command as a URI */ //struct uri uri = uri_from_str(*argv, URI_FALLBACK_PROTOCOL_BIT); //if (uri.is_valid) //{ //} } exit(EXIT_SUCCESS); return 0; } |