diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2004-07-30 12:31:04 +0000 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2004-07-30 12:31:04 +0000 |
commit | f0607dc8bb5e071ce5f2a42a6d5a457824cd7034 (patch) | |
tree | 31b51e886250ce4b1058ef772ce67e0025e09b6c | |
parent | a6364767fb0e911516b9ec28f20b6b1f17231044 (diff) | |
download | mdk-f0607dc8bb5e071ce5f2a42a6d5a457824cd7034.tar.gz mdk-f0607dc8bb5e071ce5f2a42a6d5a457824cd7034.tar.bz2 |
(main): new option -O to disable debug, which is now enabled by default.
-rw-r--r-- | mixutils/mixasm.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mixutils/mixasm.c b/mixutils/mixasm.c index 20ec2d4..bec64bc 100644 --- a/mixutils/mixasm.c +++ b/mixutils/mixasm.c @@ -1,7 +1,7 @@ /* -*-c-*- -------------- mixasm.c: * Main function of mixasm, the mix assembler * ------------------------------------------------------------------ - * $Id: mixasm.c,v 1.5 2004/06/07 17:21:09 jao Exp $ + * $Id: mixasm.c,v 1.6 2004/07/30 12:31:04 jao Exp $ * ------------------------------------------------------------------ * Copyright (C) 2000, 2001, 2002, 2004 Free Software Foundation, Inc. * @@ -40,7 +40,7 @@ enum { USAGE_OPT = 'u', OUT_OPT = 'o', LIST_OPT = 'l', - DEBUG_OPT = 'g' + NDEBUG_OPT = 'O' }; @@ -51,13 +51,13 @@ static struct option long_options_[] = {"usage", no_argument, 0, USAGE_OPT}, {"output", required_argument, 0, OUT_OPT}, {"list", optional_argument, 0, VER_OPT}, - {"debug", no_argument, 0, DEBUG_OPT}, + {"ndebug", no_argument, 0, NDEBUG_OPT}, {0, 0, 0, 0} }; static const gchar *USAGE_ = -N_("Usage: %s [-vhulg] [-o OUTPUT_FILE] [--version] [--help]\n" - "\t[--usage] [--debug] [--output=OUTPUT_FILE] [--list[=LIST_FILE]] file\n"); +N_("Usage: %s [-vhulO] [-o OUTPUT_FILE] [--version] [--help]\n" + "\t[--usage] [--ndebug] [--output=OUTPUT_FILE] [--list[=LIST_FILE]] file\n"); int @@ -66,7 +66,7 @@ main (int argc, char **argv) int c; const char *prog_name = argv[0]; const char *src = NULL, *out = NULL, *list = NULL; - gboolean use_list = FALSE, debug = FALSE; + gboolean use_list = FALSE, debug = TRUE; setlocale (LC_ALL, ""); bindtextdomain (PACKAGE, LOCALEDIR); @@ -95,8 +95,8 @@ main (int argc, char **argv) use_list = TRUE; list = optarg; break; - case DEBUG_OPT: - debug = TRUE; + case NDEBUG_OPT: + debug = FALSE; break; case '?': /* getopt already handles the output of a warning message */ |