50 #if defined( HAVE_NL_TYPES_H )
51 # include <nl_types.h>
64 #define REXXMESSAGEFILE "rexx.cat"
68 #define CASE(x) if(!strcasecmp(x,argv[1]))
71 #define SECOND_PARAMETER 1
73 #define SECOND_PARAMETER 0
77 #define CATD_ERR ((nl_catd)-1)
82 int main(
int argc,
char *argv[ ],
char *envp[ ] )
85 const char * scbdll_name;
86 const char * scbdll_proc;
121 scbdll_name = argv[3];
123 unsigned short flags;
140 scbdll_name = argv[3];
156 scbdll_name = argv[3];
166 #if defined( HAVE_NL_TYPES_H )
173 #if defined( HAVE_CATOPEN )
177 snprintf(DataArea,
sizeof DataArea,
"%s/%s", ORX_CATDIR,
REXXMESSAGEFILE);
180 fprintf(stderr,
"\nCannot open REXX message catalog %s.\nNot in NLSPATH or %s.\n",
186 message = catgets(catd, set_num, msgid, NULL);
189 #if defined(OPSYS_LINUX) && !defined(OPSYS_SUN)
191 snprintf(DataArea,
sizeof DataArea,
"%s/%s", ORX_CATDIR,
REXXMESSAGEFILE);
194 printf(
"\nCannot open REXX message catalog %s.\nNot in NLSPATH or %s.\n",
199 message = catgets(catd, set_num, msgid, NULL);
202 printf(
"\n Error message not found!\n");
206 printf(
"\n%s\n", message);
212 printf(
"\n Error message not found!\n");
216 printf(
"\n%s\n", message);
222 printf(
"\n Cannot get description for error %d!\n",msgid);
RexxReturnCode REXXENTRY RexxLoadSubcom(const char *, const char *)
#define Error_RXSUBC_general_msg
#define Error_RXSUBC_register_msg
#define Error_RXSUBC_query_msg
#define Error_RXSUBC_load_msg
#define Error_RXSUBC_drop_msg
RexxReturnCode REXXENTRY RexxQuerySubcom(CONSTANT_STRING, CONSTANT_STRING, unsigned short *, char *)
RexxReturnCode REXXENTRY RexxDeregisterSubcom(CONSTANT_STRING, CONSTANT_STRING)
RexxReturnCode REXXENTRY RexxRegisterSubcomDll(CONSTANT_STRING, CONSTANT_STRING, CONSTANT_STRING, CONSTANT_STRING, size_t)
#define RXSUBCOM_DROPPABLE
int main(int argc, char *argv[], char *envp[])