- ac_Name (STRPTR)
-
The name of the command. By convention this is usually all
uppercase, though a case-insensitive comparisons will be done.
- ac_ID (WORD)
-
A unique number identifying this command.
- ac_Func
-
A pointer (*()(struct ARexxCmd *, struct RexxMsg *)) to the function that will be called when this command is received by your programme. The function will get past a pointer to its ARexxCmd entry and the RexxMsg structure received for the command. You may use this for setting ARexx variables, but please note that is may be NULL
- ac_ArgTemplate (STRPTR)
-
DOS ReadArgs()-style argument template for this command.
- ac_Flags (ULONG)
-
Command flags. Currently unused, but in order to remain compatable, you must ensure that this is NULL.
These fields are ignored in OM_NEW and are set by the class when calling the ac_Func command callback.
- ac_ArgList (ULONG *)
-
Result of ReadArgs() using the arguments received with the
command and ac_ArgTemplate as the template.
- ac_RC (LONG)
-
Primary result, the RC variable. Also causes the RC2
variable to return, and will cause RESULT to NOT be set.
- ac_RC2 (LONG)
-
Secundary result, the RC2 variable. This will not be set
unless RC is non-zero.
- ac_Result (STRPTR)
-
RESULT variable, this should be a string. If you want to
return a number, you will have to convert it to a string first. This string will not be set if RC is non-zero.
The array must be terminated with a NULL ac_Name field.