From 6fed24e8948c1acaaeae002b9ee7ee44a7e2e0a5 Mon Sep 17 00:00:00 2001 From: Ashish Gupta Date: Thu, 13 Apr 2017 23:36:26 +0200 Subject: Step 2 : Abuse _TARGET_IS_KOLIBRIOS and build with make TARGET=kolibrios --- frontends/kolibrios/fb/gui.c | 61 ++++++++++++++++++++++---------------------- 1 file changed, 30 insertions(+), 31 deletions(-) (limited to 'frontends/kolibrios/fb/gui.c') diff --git a/frontends/kolibrios/fb/gui.c b/frontends/kolibrios/fb/gui.c index 4d4c7334f..dd5ef71ab 100644 --- a/frontends/kolibrios/fb/gui.c +++ b/frontends/kolibrios/fb/gui.c @@ -55,7 +55,6 @@ #include "framebuffer/fetch.h" #include "framebuffer/bitmap.h" - #define NSFB_TOOLBAR_DEFAULT_LAYOUT "blfsrutc" fbtk_widget_t *fbtk; @@ -485,36 +484,36 @@ process_cmdline(int argc, char** argv) feurl = NETSURF_HOMEPAGE; } - while((opt = getopt_long(argc, argv, "f:b:w:h:", - long_options, &option_index)) != -1) { - switch (opt) { - case 'f': - fename = optarg; - break; - - case 'b': - febpp = atoi(optarg); - break; - - case 'w': - fewidth = atoi(optarg); - break; - - case 'h': - feheight = atoi(optarg); - break; - - default: - fprintf(stderr, - "Usage: %s [-f frontend] [-b bpp] url\n", - argv[0]); - return false; - } - } - - if (optind < argc) { - feurl = argv[optind]; - } + /* while((opt = getopt_long(argc, argv, "f:b:w:h:", */ + /* long_options, &option_index)) != -1) { */ + /* switch (opt) { */ + /* case 'f': */ + /* fename = optarg; */ + /* break; */ + + /* case 'b': */ + /* febpp = atoi(optarg); */ + /* break; */ + + /* case 'w': */ + /* fewidth = atoi(optarg); */ + /* break; */ + + /* case 'h': */ + /* feheight = atoi(optarg); */ + /* break; */ + + /* default: */ + /* fprintf(stderr, */ + /* "Usage: %s [-f frontend] [-b bpp] url\n", */ + /* argv[0]); */ + /* return false; */ + /* } */ + /* } */ + + /* if (optind < argc) { */ + /* feurl = argv[optind]; */ + /* } */ return true; } -- cgit v1.2.3