From 1d0fcf308929bde5749b889373d5c2f338fa8969 Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Fri, 28 Sep 2001 23:10:45 +0000 Subject: uniform command line options handling --- mixutils/mixasm.c | 7 ++++--- mixutils/mixvm.c | 6 ++---- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'mixutils') diff --git a/mixutils/mixasm.c b/mixutils/mixasm.c index c8ece5b..3f21b02 100644 --- a/mixutils/mixasm.c +++ b/mixutils/mixasm.c @@ -1,7 +1,9 @@ /* -*-c-*- -------------- mixasm.c: * Main function of mixasm, the mix assembler * ------------------------------------------------------------------ - * Copyright (C) 2000 Free Software Foundation, Inc. + * $Id: mixasm.c,v 1.3 2001/09/28 23:10:45 jao Exp $ + * ------------------------------------------------------------------ + * Copyright (C) 2000, 2001 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 @@ -84,8 +86,7 @@ main (int argc, char **argv) fprintf (stderr, _(USAGE_), prog_name); return EXIT_SUCCESS; case VER_OPT: - fprintf (stderr, _("%s %s, MIX compiler.\n"), prog_name, VERSION); - fprintf (stderr, MIX_GPL_LICENSE); + mix_print_license ("mixasm, MIX assembler"); return EXIT_SUCCESS; case OUT_OPT: out = optarg; diff --git a/mixutils/mixvm.c b/mixutils/mixvm.c index 4014164..8c02095 100644 --- a/mixutils/mixvm.c +++ b/mixutils/mixvm.c @@ -1,7 +1,7 @@ /* -*-c-*- -------------- mixvm.c : * Main function for mixvm, the mix vm simulator * ------------------------------------------------------------------ - * $Id: mixvm.c,v 1.5 2001/09/24 23:27:02 jao Exp $ + * $Id: mixvm.c,v 1.6 2001/09/28 23:10:45 jao Exp $ * ------------------------------------------------------------------ * Copyright (C) 2000, 2001 Free Software Foundation, Inc. * @@ -100,9 +100,7 @@ main (int argc, char **argv) fprintf (stderr, _(USAGE_), prog_name); return EXIT_SUCCESS; case VER_OPT: - fprintf (stderr, _("%s %s, MIX Virtual Machine.\n"), - prog_name, VERSION); - fprintf (stderr, MIX_GPL_LICENSE); + mix_print_license ("mixvm, MIX virtual machine"); return EXIT_SUCCESS; case RUN_OPT: in = optarg; -- cgit v1.2.3