summaryrefslogtreecommitdiffhomepage
path: root/mixutils
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2004-07-30 12:31:04 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2004-07-30 12:31:04 +0000
commit8a324728880dea8500dd7a19fbd776e02c989cf0 (patch)
treebd7bfdae2242ac4df961dfdd93996120e6bb77e5 /mixutils
parentdf0192907073d3e64bbdf38b2874c23672bfd311 (diff)
downloadmdk-8a324728880dea8500dd7a19fbd776e02c989cf0.tar.gz
mdk-8a324728880dea8500dd7a19fbd776e02c989cf0.tar.bz2
(main): new option -O to disable debug, which is now enabled by default.
Diffstat (limited to 'mixutils')
-rw-r--r--mixutils/mixasm.c16
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 */