From c49c79bde3752bf9acb9d09883ce126aa56afe50 Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 16 May 2007 05:33:32 +0000 Subject: [PATCH] (VERSION): Delete it. (main): Use M17NLIB_VERSION_NAME to print the version number. --- example/mconv.c | 8 +++----- example/mdate.c | 8 +++----- example/medit.c | 8 +++----- example/mview.c | 8 +++----- 4 files changed, 12 insertions(+), 20 deletions(-) diff --git a/example/mconv.c b/example/mconv.c index ba7ef9c..d49988d 100644 --- a/example/mconv.c +++ b/example/mconv.c @@ -1,5 +1,5 @@ /* mconv.c -- Code converter. -*- coding: euc-jp; -*- - Copyright (C) 2003, 2004 + Copyright (C) 2003, 2004, 2005, 2006, 2007 National Institute of Advanced Industrial Science and Technology (AIST) Registration Number H15PRO112 @@ -134,8 +134,6 @@ #include #include -#define VERSION "1.3.4" - /* Print all coding system names. */ int @@ -314,8 +312,8 @@ main (int argc, char **argv) help_exit (argv[0], 0); else if (! strcmp (argv[i], "--version")) { - printf ("m17n-conv (m17n library) %s\n", VERSION); - printf ("Copyright (C) 2003 AIST, JAPAN\n"); + printf ("m17n-conv (m17n library) %s\n", M17NLIB_VERSION_NAME); + printf ("Copyright (C) 2003, 2004, 2005, 2006, 2007 AIST, JAPAN\n"); exit (0); } else if (! strcmp (argv[i], "-l")) diff --git a/example/mdate.c b/example/mdate.c index a48464c..4cae383 100644 --- a/example/mdate.c +++ b/example/mdate.c @@ -1,5 +1,5 @@ /* mdate.c -- Show system date/time in all locales. -*- coding: euc-jp; -*- - Copyright (C) 2003, 2004 + Copyright (C) 2003, 2004, 2005, 2006, 2007 National Institute of Advanced Industrial Science and Technology (AIST) Registration Number H15PRO112 @@ -82,8 +82,6 @@ #include #include -#define VERSION "1.3.4" - /* Return a plist of all locales currently avairable on the system. The keys and values of the plist are locale name symbols and pointers to MLocale respectively. */ @@ -174,8 +172,8 @@ main (int argc, char **argv) help_exit (argv[0], 0); else if (! strcmp (argv[i], "--version")) { - printf ("m17n-date (m17n library) %s\n", VERSION); - printf ("Copyright (C) 2003 AIST, JAPAN\n"); + printf ("m17n-date (m17n library) %s\n", M17NLIB_VERSION_NAME); + printf ("Copyright (C) 2003, 2004, 2005, 2006, 2007 AIST, JAPAN\n"); exit (0); } else diff --git a/example/medit.c b/example/medit.c index 3819c38..9b321df 100644 --- a/example/medit.c +++ b/example/medit.c @@ -1,5 +1,5 @@ /* medit.c -- simple multilingual editor. -*- coding: euc-jp; -*- - Copyright (C) 2003, 2004, 2005 + Copyright (C) 2003, 2004, 2005, 2006, 2007 National Institute of Advanced Industrial Science and Technology (AIST) Registration Number H15PRO112 @@ -120,8 +120,6 @@ #include #include -#define VERSION "1.3.4" - /* Global variables. */ char *filename; @@ -2651,8 +2649,8 @@ main (int argc, char **argv) help_exit (argv[0], 0); else if (! strcmp (argv[i], "--version")) { - printf ("m17n-edit (m17n library) %s\n", VERSION); - printf ("Copyright (C) 2003 AIST, JAPAN\n"); + printf ("m17n-edit (m17n library) %s\n", M17NLIB_VERSION_NAME); + printf ("Copyright (C) 2003, 2004, 2005, 2006, 2007 AIST, JAPAN\n"); exit (0); } else if (! strcmp (argv[i], "--geometry")) diff --git a/example/mview.c b/example/mview.c index a15859b..ad5cd42 100644 --- a/example/mview.c +++ b/example/mview.c @@ -1,5 +1,5 @@ /* mview.c -- File viewer -*- coding: euc-jp; -*- - Copyright (C) 2003, 2004 + Copyright (C) 2003, 2004, 2005, 2006, 2007 National Institute of Advanced Industrial Science and Technology (AIST) Registration Number H15PRO112 @@ -115,8 +115,6 @@ #include #include -#define VERSION "1.3.4" - /* Global m17n variables. */ MFrame *frame; MText *mt; @@ -290,8 +288,8 @@ main (int argc, char **argv) help_exit (argv[0], 0); else if (! strcmp (argv[i], "--version")) { - printf ("m17n-view (m17n library) %s\n", VERSION); - printf ("Copyright (C) 2003 AIST, JAPAN\n"); + printf ("m17n-view (m17n library) %s\n", M17NLIB_VERSION_NAME); + printf ("Copyright (C) 2003, 2004, 2005, 2006, 2007 AIST, JAPAN\n"); exit (0); } else if (! strcmp (argv[i], "-e")) -- 1.7.10.4