diff options
Diffstat (limited to 'mixutils')
-rw-r--r-- | mixutils/mixasm.c | 32 |
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; - + } |