summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2004-06-07 17:21:09 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2004-06-07 17:21:09 +0000
commitf9ae8fe7ad82618870acdac84cb376a32ec76f56 (patch)
tree97ff5e65476ca78c5392263bab74d4b8aa32873f
parent70bfc6a733abe5596e436c902791080c6680499d (diff)
downloadmdk-f9ae8fe7ad82618870acdac84cb376a32ec76f56.tar.gz
mdk-f9ae8fe7ad82618870acdac84cb376a32ec76f56.tar.bz2
correct usage message.
-rw-r--r--mixutils/mixasm.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/mixutils/mixasm.c b/mixutils/mixasm.c
index 4e682ef..20ec2d4 100644
--- a/mixutils/mixasm.c
+++ b/mixutils/mixasm.c
@@ -1,24 +1,24 @@
/* -*-c-*- -------------- mixasm.c:
* Main function of mixasm, the mix assembler
* ------------------------------------------------------------------
- * $Id: mixasm.c,v 1.4 2002/03/20 01:30:11 jao Exp $
+ * $Id: mixasm.c,v 1.5 2004/06/07 17:21:09 jao Exp $
* ------------------------------------------------------------------
- * Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc.
- *
+ * Copyright (C) 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- *
+ *
*/
#include <mixlib/mix.h>
@@ -55,11 +55,11 @@ static struct option long_options_[] =
{0, 0, 0, 0}
};
-static const gchar *USAGE_ =
-N_("Usage: %s [-vhultg] [-o OUTPUT_FILE] [--version] [--help]\n"
+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");
-
+
int
main (int argc, char **argv)
{
@@ -75,11 +75,11 @@ main (int argc, char **argv)
while (1)
{
c = getopt_long (argc, argv, "vhuo:lg", long_options_, (int*)0);
-
+
/* Detect the end of the options. */
if (c == -1)
break;
-
+
switch (c)
{
case HELP_OPT: case USAGE_OPT:
@@ -106,7 +106,7 @@ main (int argc, char **argv)
g_assert_not_reached ();
}
}
-
+
if ( optind == argc )
{
fprintf (stderr, _("*** Error: Missing source file.\n"));
@@ -119,14 +119,14 @@ main (int argc, char **argv)
}
src = argv[optind];
-
+
mix_init_lib ();
-
+
c = mix_asm_compile (src, out, use_list, list, debug);
mix_release_lib ();
-
+
return c;
-
+
}