• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonrubyphpgameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

POSIX.1 National Language Support API for MinGW


Commit MetaInfo

修訂b31c59a77f8eb3697a5ddb8614d9ec0dc9ecc0af (tree)
時間2008-01-10 07:04:08
作者Keith Marshall <keithmarshall@user...>
CommiterKeith Marshall

Log Message

Retain .exe' file name extension, if present, in program identity banner displayed by -help' and -version' options.

Change Summary

差異

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,13 +1,21 @@
11 2008-01-09 Keith Marshall <keithmarshall@users.sourceforge.net>
22
3+ Retain `.exe' file name extension, if present, in program identity
4+ banner displayed by `-help' and `-version' options.
5+
6+ * gencat.c (progname): Delay reassignment to `*argv', with `.exe'
7+ extension stripped, until after parsing option arguments.
8+
9+2008-01-09 Keith Marshall <keithmarshall@users.sourceforge.net>
10+
311 Support `/dev/stdin' and '/dev/stdout', specified as command line
412 arguments, as case-insensitive aliases for `-', representing the
513 standard input and standard output streams respectively.
614
715 * gencat.c (msgcat): Assign from first non-option command line
8- argument; replace with "-", if strcasecmp matches "/dev/stdout".
16+ argument; replace with "-", if strcasecmp() matches "/dev/stdout".
917
10- * mcsource.c (input): Use strcasecmp instead of strcmp, to check for
18+ * mcsource.c (input): Use strcasecmp() instead of strcmp, to check for
1119 match to "/dev/stdin".
1220
1321 2008-01-08 Keith Marshall <keithmarshall@users.sourceforge.net>
--- a/gencat.c
+++ b/gencat.c
@@ -8,7 +8,7 @@
88 * This file implements the `main' function for the `gencat' program.
99 *
1010 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
11- * Last modification: 08-Jan-2008
11+ * Last modification: 09-Jan-2008
1212 *
1313 *
1414 * This is free software. It is provided AS IS, in the hope that it may
@@ -149,7 +149,6 @@ int main( int argc, char **argv )
149149 int ext = strlen( *argv ) - 4;
150150 if( (ext > 0) && (strcasecmp( *argv + ext, ".exe" ) == 0) )
151151 *(*argv + ext) = '\0';
152- progname = *argv;
153152 }
154153 else
155154 /* Something went wrong...
@@ -178,6 +177,7 @@ int main( int argc, char **argv )
178177 exit( EXIT_SUCCESS );
179178 }
180179
180+ progname = *argv;
181181 cat_index.id = tag;
182182
183183 if( (argc -= optind) > 1 )
@@ -388,4 +388,4 @@ int main( int argc, char **argv )
388388 return EXIT_SUCCESS;
389389 }
390390
391-/* $RCSfile$Revision: 1.3 $: end of file */
391+/* $RCSfile$Revision: 1.4 $: end of file */