55 #if defined( HAVE_FEATURES_H )
56 # include <features.h>
59 #if defined( HAVE_NL_TYPES_H )
60 # include <nl_types.h>
65 #define REXXMESSAGEFILE "rexx.cat"
69 #define SECOND_PARAMETER 1
71 #define SECOND_PARAMETER 0
75 #define CATD_ERR ((nl_catd)-1)
80 #if defined( HAVE_NL_TYPES_H )
87 #if defined( HAVE_CATOPEN )
91 snprintf(DataArea,
sizeof DataArea,
"%s/%s", ORX_CATDIR,
REXXMESSAGEFILE);
94 printf(
"\n*** Cannot open REXX message catalog %s.\nNot in NLSPATH or %s.\n",
99 message = catgets(catd, set_num, msgid, NULL);
102 snprintf(DataArea,
sizeof DataArea,
"%s/%s", ORX_CATDIR,
REXXMESSAGEFILE);
105 printf(
"\nCannot open REXX message catalog %s.\nNot in NLSPATH or %s.\n",
110 message = catgets(catd, set_num, msgid, NULL);
113 printf(
"\n Error message not found!\n");
117 printf(
"\n%s\n", message);
123 printf(
"\n%s\n", message);
127 printf(
"*** Cannot get description for error %d!", msgid);
132 int main (
int argc,
char **argv)
138 for (silentp = 1; silentp < argc; silentp++)
140 if (argv[silentp][0] ==
'-' &&
141 (argv[silentp][1] ==
's' || argv[silentp][1] ==
'S'))
155 if (argc < 2 || argc > 4 ||
156 (silent && argc==2) ||
157 (silent && (silentp + 1 < argc)) ||
158 (!silent && argc==4))
169 if ((argc==4 && silent) || (argc==3 && !silent))
171 if (strcmp(argv[1], argv[2]) == 0)
char *REXXENTRY RexxGetVersionInformation()
RexxReturnCode REXXENTRY RexxTranslateProgram(const char *inFile, const char *outFile, PRXSYSEXIT exits)
#define Error_REXXC_SynCheckInfo_msg
#define Error_REXXC_wrongNrArg_unix_msg
#define Error_REXXC_outDifferent_msg
#define Error_REXXC_cmd_parm_incorrect_msg
RexxReturnCode REXXENTRY RexxFreeMemory(void *)
int main(int argc, char **argv)
void DisplayError(int msgid)