58 #define INVALID_ROUTINE 40
59 #define VALID_ROUTINE 0
75 "Aspi_Read_All_Variables_From_REXX_VP",
76 "Aspi_Read_All_Elements_Of_A_Specific_Stem_From_REXX_VP"
94 const char * queuename,
103 for (j = 0; j < entries; j++)
125 const char * queuename,
139 for (j = 0; j < entries; j++)
169 const char * queuename,
176 strcpy(retstr->
strptr,
"0");
182 strcpy(retstr->
strptr,
"Allocation error occured");
199 printf(
"ERROR: shvret is %x hex after var nr. %d \n",rc,i);
203 printf(
"Name of the variable from the Variable Pool: %s, Value: %s \n", prxshv->
shvname.strptr, prxshv->
shvvalue.
strptr);
213 strcpy(retstr->
strptr,
"Allocation error occured");
227 strcpy(retstr->
strptr,
"Allocation error occured");
233 printf(
"ERROR: shvret is %x hex after var nr. %d\n",rc,i);
238 printf(
"Name of the variable from the Variable Pool: %s, Value: %s \n", prxshv->
shvname.strptr, prxshv->
shvvalue.
strptr);
269 const char * queuename,
272 SHVBLOCK *prxshv, *temp, *interim, rxshv;
274 char array[20], value[10];
282 strcpy(retstr->
strptr,
"0");
285 pch = (
char *) malloc(strlen(args[0].strptr) +1);
286 strcpy(pch, args[0].strptr);
289 prxshv->
shvname.strlength = strlen(pch);
297 strcpy(retstr->
strptr,
"ASPIFETCH failed \n");
304 result = strrchr(pch, chars);
310 memset(array, 0x00,
sizeof(array));
311 memset(value, 0x00,
sizeof(value));
312 for (k = 1;k <= j; k++)
318 strcpy(retstr->
strptr,
"Allocation error occured");
323 sprintf(value,
"%d", k);
324 strcat(array, value);
326 temp->
shvname.strlength = strlen(array);
327 temp->
shvname.strptr = (
char *) malloc(strlen(array)+1);
328 strcpy((
char *)(temp->
shvname.strptr), array);
337 strcpy(retstr->
strptr,
"Allocation error occured");
343 printf(
"ERROR: shvret is %x hex \n",rc);
349 for (k = 1;k <= j; k++)
351 printf(
"Name of the Stem-variable from the Rexx Variable Pool: %s, Value: %s \n", temp->
shvname.strptr, temp->
shvvalue.
strptr);
RexxReturnCode RexxEntry RexxVariablePool(PSHVBLOCK pshvblock)
RexxReturnCode REXXENTRY RexxDeregisterFunction(CONSTANT_STRING)
RexxReturnCode REXXENTRY RexxFreeMemory(void *)
RexxReturnCode REXXENTRY RexxRegisterFunctionDll(CONSTANT_STRING, CONSTANT_STRING, CONSTANT_STRING)
RexxReturnCode REXXENTRY Aspi_Read_All_Variables_From_REXX_VP(const char *name, size_t numargs, CONSTRXSTRING args[], const char *queuename, PRXSTRING retstr)
RexxReturnCode REXXENTRY AspiLoadFuncs3(const char *name, size_t numargs, CONSTRXSTRING args[], const char *queuename, PRXSTRING retstr)
RexxReturnCode REXXENTRY Aspi_Read_All_Elements_Of_A_Specific_Stem_From_REXX_VP(const char *name, size_t numargs, CONSTRXSTRING args[], const char *queuename, PRXSTRING retstr)
static const char * AspiFncTable[]
RexxReturnCode REXXENTRY AspiDeregFunc3(const char *name, size_t numargs, CONSTRXSTRING args[], const char *queuename, PRXSTRING retstr)
CONSTANT_RXSTRING shvname
struct _SHVBLOCK * shvnext