From: <bi...@us...> - 2009-07-12 12:44:48
|
Revision: 4902 http://oorexx.svn.sourceforge.net/oorexx/?rev=4902&view=rev Author: bigrixx Date: 2009-07-12 12:44:44 +0000 (Sun, 12 Jul 2009) Log Message: ----------- [ oorexx-Bugs-2820201 ] REXXC source target /s on Linux, no error message Modified Paths: -------------- main/trunk/interpreter/messages/DocErrorMessages.sgml main/trunk/interpreter/messages/RexxErrorCodes.h main/trunk/interpreter/messages/RexxMessageNumbers.h main/trunk/interpreter/messages/rexxmsg.xml main/trunk/interpreter/platform/windows/winmsgtb.rc main/trunk/utilities/rexxc/platform/unix/RexxCompiler.cpp Modified: main/trunk/interpreter/messages/DocErrorMessages.sgml =================================================================== --- main/trunk/interpreter/messages/DocErrorMessages.sgml 2009-07-11 22:20:47 UTC (rev 4901) +++ main/trunk/interpreter/messages/DocErrorMessages.sgml 2009-07-12 12:44:44 UTC (rev 4902) @@ -3867,11 +3867,14 @@ <para>The REXXC utility was invoked with zero or more than three parameters. REXXC accepts the following parameters: <itemizedlist> <listitem> -<para>To check the syntax of a REXX program: REXXC Program_name [/s]</para> +<para>To check the syntax of a REXX program: REXXC Program_name [-s]</para> </listitem> <listitem> -<para>To convert a REXX program into a sourceless executable file: REXXC Program_name Output_file_name [/s]</para> +<para>To convert a REXX program into a sourceless executable file: REXXC Program_name Output_file_name [-s]</para> </listitem> + <listitem> +<para>The -s option will suppress the copyright banner.</para> +</listitem> </itemizedlist> </para> </section> @@ -3887,4 +3890,8 @@ <title>Error 130 - Without OutProgramName REXXC only performs a syntax check</title> <para> </para> </section> +<section id="ERR133"> +<title>Error 133 - SYNTAX: REXXC InProgramName [OutProgramName] [-s]</title> +<para> </para> </section> +</section> Modified: main/trunk/interpreter/messages/RexxErrorCodes.h =================================================================== --- main/trunk/interpreter/messages/RexxErrorCodes.h 2009-07-11 22:20:47 UTC (rev 4901) +++ main/trunk/interpreter/messages/RexxErrorCodes.h 2009-07-12 12:44:44 UTC (rev 4902) @@ -619,6 +619,7 @@ #define Error_REXXC_SynCheckInfo 999015 #define Error_RXQUE_syntax 999016 #define Error_RXQUE_memfail 999017 +#define Error_REXXC_wrongNrArg_unix 999018 #endif Modified: main/trunk/interpreter/messages/RexxMessageNumbers.h =================================================================== --- main/trunk/interpreter/messages/RexxMessageNumbers.h 2009-07-11 22:20:47 UTC (rev 4901) +++ main/trunk/interpreter/messages/RexxMessageNumbers.h 2009-07-12 12:44:44 UTC (rev 4902) @@ -138,6 +138,7 @@ #define Error_REXXC_SynCheckInfo_msg 130 #define Error_RXQUE_syntax_msg 131 #define Error_RXQUE_memfail_msg 132 +#define Error_REXXC_wrongNrArg_unix_msg 133 #define Error_Program_unreadable_name_msg 200 #define Error_Program_interrupted_condition_msg 201 #define Error_Unmatched_quote_comment_msg 202 Modified: main/trunk/interpreter/messages/rexxmsg.xml =================================================================== --- main/trunk/interpreter/messages/rexxmsg.xml 2009-07-11 22:20:47 UTC (rev 4901) +++ main/trunk/interpreter/messages/rexxmsg.xml 2009-07-12 12:44:44 UTC (rev 4902) @@ -5476,8 +5476,9 @@ <Text>The REXXC command parameters are incorrect.</Text> <Explanation><para>The REXXC utility was invoked with zero or more than three parameters. REXXC accepts the following parameters: <itemizedlist> - <listitem><para>To check the syntax of a REXX program: REXXC Program_name [/s]</para></listitem> - <listitem><para>To convert a REXX program into a sourceless executable file: REXXC Program_name Output_file_name [/s]</para></listitem> + <listitem><para>To check the syntax of a REXX program: REXXC Program_name [-s]</para></listitem> + <listitem><para>To convert a REXX program into a sourceless executable file: REXXC Program_name Output_file_name [-s]</para></listitem> + <listitem><para>The -s option will suppress the copyright banner.</para></listitem> </itemizedlist> </para></Explanation> <UserAction><para>Check the REXXC parameters and retry the command.</para></UserAction> @@ -5527,6 +5528,15 @@ <SymbolicName>Error_RXQUE_memfail</SymbolicName> <Text>System error occurred while processing the command</Text> </SubMessage> + <SubMessage> + <Code>999</Code> + <Subcode>018</Subcode> + <MessageNumber>133</MessageNumber> + <Component>REXXC</Component> + <Severity>Error</Severity> + <SymbolicName>Error_REXXC_wrongNrArg_unix</SymbolicName> + <Text>SYNTAX: REXXC InProgramName [OutProgramName] [-s]</Text> + </SubMessage> </Subcodes> </Message> </Messages> Modified: main/trunk/interpreter/platform/windows/winmsgtb.rc =================================================================== --- main/trunk/interpreter/platform/windows/winmsgtb.rc 2009-07-11 22:20:47 UTC (rev 4901) +++ main/trunk/interpreter/platform/windows/winmsgtb.rc 2009-07-12 12:44:44 UTC (rev 4902) @@ -138,6 +138,7 @@ Error_REXXC_SynCheckInfo "Without OutProgramName REXXC only performs a syntax check" Error_RXQUE_syntax "The syntax of the command is incorrect" Error_RXQUE_memfail "System error occurred while processing the command" + Error_REXXC_wrongNrArg_unix "SYNTAX: REXXC InProgramName [OutProgramName] [-s]" Error_Program_unreadable_name "Failure during initialization: File ""&1"" is unreadable" Error_Program_interrupted_condition "Program interrupted with &1 condition" Error_Unmatched_quote_comment "Unmatched comment delimiter (""/*"") on line &1" Modified: main/trunk/utilities/rexxc/platform/unix/RexxCompiler.cpp =================================================================== --- main/trunk/utilities/rexxc/platform/unix/RexxCompiler.cpp 2009-07-11 22:20:47 UTC (rev 4901) +++ main/trunk/utilities/rexxc/platform/unix/RexxCompiler.cpp 2009-07-12 12:44:44 UTC (rev 4902) @@ -95,7 +95,6 @@ } /* retrieve message from repository */ message = catgets(catd, set_num, msgid, NULL); if (!message) /* got a message ? */ -#if defined(OPSYS_LINUX) && !defined(OPSYS_SUN) { sprintf(DataArea, "%s/%s", ORX_CATDIR, REXXMESSAGEFILE); if ((catd = catopen(DataArea, SECOND_PARAMETER)) == (nl_catd)CATD_ERR) @@ -116,15 +115,10 @@ } } } -#else - { - printf("*** Error message not found!"); - } else { printf("\n%s\n", message); /* print the message */ } -#endif catclose(catd); /* close the catalog */ #else printf("*** Cannot get description for error %d!", msgid); @@ -164,7 +158,7 @@ { DisplayError((int)Error_REXXC_cmd_parm_incorrect_msg); } - DisplayError((int) Error_REXXC_wrongNrArg_msg); + DisplayError((int) Error_REXXC_wrongNrArg_unix_msg); DisplayError((int) Error_REXXC_SynCheckInfo_msg); exit(-1); /* terminate with an error */ } /* end additions */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |