diff options
author | marha <marha@users.sourceforge.net> | 2012-04-10 15:05:45 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-04-10 15:05:45 +0200 |
commit | 4b35ef19b76849cbd854c3b6f92bbc1c2d50f2d8 (patch) | |
tree | 3ddf28be6916dd5ea27837431b5be8c94017cd9a /libXpm/sxpm/sxpm.c | |
parent | 5564e91e3cf4ba5cb2fbebbc2d63d18f588016b8 (diff) | |
parent | 5f8448ef6b85a9ff72c5af4cec99183c8bb60dc6 (diff) | |
download | vcxsrv-4b35ef19b76849cbd854c3b6f92bbc1c2d50f2d8.tar.gz vcxsrv-4b35ef19b76849cbd854c3b6f92bbc1c2d50f2d8.tar.bz2 vcxsrv-4b35ef19b76849cbd854c3b6f92bbc1c2d50f2d8.zip |
Merge remote-tracking branch 'origin/released'
Diffstat (limited to 'libXpm/sxpm/sxpm.c')
-rw-r--r-- | libXpm/sxpm/sxpm.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libXpm/sxpm/sxpm.c b/libXpm/sxpm/sxpm.c index ea4dde308..a5eaa325e 100644 --- a/libXpm/sxpm/sxpm.c +++ b/libXpm/sxpm/sxpm.c @@ -110,7 +110,7 @@ static char *plaid[] = { static Colormap colormap; void Usage(void); -void ErrorMessage(int ErrorStatus, char *tag); +void ErrorMessage(int ErrorStatus, const char *tag); void Punt(int i); void VersionInfo(void); void kinput(Widget widget, char *tag, XEvent *xe, Boolean *b); @@ -483,7 +483,7 @@ main( unsigned int i, j; for (i = 0; i < view.attributes.nextensions; i++) { - /* L10N_Comments : Output when -v & file has extensions + /* L10N_Comments : Output when -v & file has extensions %s is replaced by extension name */ fprintf(stderr, gettext("Xpm extension : %s\n"), view.attributes.extensions[i].name); @@ -577,7 +577,7 @@ main( void Usage(void) { - /* L10N_Comments : Usage message (sxpm -h) in two parts. + /* L10N_Comments : Usage message (sxpm -h) in two parts. In the first part %s is replaced by the command name. */ fprintf(stderr, gettext("\nUsage: %s [options...]\n"), command[0]); fprintf(stderr, gettext("Where options are:\n\ @@ -615,7 +615,7 @@ if no input is specified sxpm reads from standard input.\n\ void ErrorMessage( int ErrorStatus, - char *tag) + const char *tag) { char *error = NULL; char *warning = NULL; @@ -624,16 +624,16 @@ ErrorMessage( case XpmSuccess: return; case XpmColorError: -/* L10N_Comments : The following set of messages are classified as +/* L10N_Comments : The following set of messages are classified as either errors or warnings. Based on the class of message, different - wrappers are selected at the end to state the message source & class. + wrappers are selected at the end to state the message source & class. L10N_Comments : WARNING produced when filename can be read, but contains an invalid color specification (need to create test case)*/ warning = gettext("Could not parse or alloc requested color"); break; case XpmOpenFailed: - /* L10N_Comments : ERROR produced when filename does not exist + /* L10N_Comments : ERROR produced when filename does not exist or insufficient permissions to open (i.e. sxpm /no/such/file ) */ error = gettext("Cannot open file"); break; @@ -644,7 +644,7 @@ ErrorMessage( break; case XpmNoMemory: /* L10N_Comments : ERROR produced when filename can be read, but - is too big for memory + is too big for memory (i.e. limit datasize 32 ; sxpm /usr/dt/backdrops/Crochet.pm ) */ error = gettext("Not enough memory"); break; |