summaryrefslogtreecommitdiffhomepage
path: root/mixutils
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2001-09-28 23:10:45 +0000
committerJose Antonio Ortega Ruiz <jao@gnu.org>2001-09-28 23:10:45 +0000
commit1d0fcf308929bde5749b889373d5c2f338fa8969 (patch)
tree624b053028a1ff9505b9fd297107278c5273e17d /mixutils
parent08ae1393b7d415355308856618ca96c3ba2cfbd0 (diff)
downloadmdk-1d0fcf308929bde5749b889373d5c2f338fa8969.tar.gz
mdk-1d0fcf308929bde5749b889373d5c2f338fa8969.tar.bz2
uniform command line options handling
Diffstat (limited to 'mixutils')
-rw-r--r--mixutils/mixasm.c7
-rw-r--r--mixutils/mixvm.c6
2 files changed, 6 insertions, 7 deletions
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;