home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / YADME10.LHA / YADME10 / src / rexx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-19  |  2.8 KB  |  93 lines

  1. /*
  2.  *  REXX.H
  3.  *
  4.  *    (c) Copyright 1988 Kim DeVaughn, All Rights Reserved
  5.  *
  6.  *  Definitions for the ARexx interface, in addition to the ARexx includes.
  7.  *
  8.  */
  9.  
  10. #ifndef REXX_STORAGE_H
  11. #include <rexx/storage.h>
  12. #endif
  13.  
  14. #ifndef REXX_H
  15. #define REXX_H
  16.  
  17.  
  18.  
  19. #define RXSVERS 0
  20. /*  More RexxMsg field definitions, to make life a little easier.         */
  21.  
  22. #define  ACTION(rmp)     (rmp->rm_Action)    /* command (action) code        */
  23. #define  RESULT1(rmp)    (rmp->rm_Result1)   /* primary result (return code) */
  24. #define  RESULT2(rmp)    (rmp->rm_Result2)   /* secondary result             */
  25. #define  COMM_ADDR(rmp)  (rmp->rm_CommAddr)  /* host address (port name)     */
  26. #define  FILE_EXT(rmp)   (rmp->rm_FileExt)   /* file extension               */
  27.  
  28.  
  29.  
  30. /*
  31.  *  Error Level Definitions   [ PRELIMINARY - SUBJECT TO CHANGE ]
  32.  *
  33.  *  Definitions for internal  (dme)  error reporting begin with CMD_
  34.  *  Definitions for external (ARexx) error reporting begin with MAC_
  35.  *
  36.  *
  37.  *         0 - command execution successful [normal]       (i.e., title = OK)
  38.  *         1 - command execution successful [alternate]  (i.e., title = OK)
  39.  *         2 - command execution successful [normal]       (don't alter title)
  40.  *         3 - command execution successful [alternate]  (don't alter title)
  41.  *         4 - reserved
  42.  *         5 - command could not complete requested function
  43.  *        10 - command was unable to process correctly
  44.  *        20 - command failure detected - data integrity in question
  45.  *        50 - internal error detected by  dme  or  ARexx
  46.  *
  47.  *  Only levels 0 and 1 allow the ARexx interface code to explicitly set title.
  48.  *
  49.  *
  50.  *  Eg:      0 - the normal case ("OK")
  51.  *         1 - a secondary succeeful result ("OK")
  52.  *         2 - normal, but may have put up an informational message
  53.  *         3 - secondary normal, but may have informational message
  54.  *         4 -
  55.  *         5 - "find" didn't find, "file not found", "block not marked", etc.
  56.  *        10 - "command not found", "syntax error", etc.
  57.  *        15 - a sever failure; "write failed", "unable to open write file", etc.
  58.  *        20 - maybe a sequence of commands that failed; may have modified data
  59.  *        50 - dunno, but definitely bad shit
  60.  */
  61.  
  62. #define  CMD_VALID0        0
  63. #define  CMD_VALID1        1
  64. #define  CMD_VALID2        2
  65. #define  CMD_VALID3        3
  66. #define  CMD_VALID4        4
  67. #define  CMD_FAILED        5
  68. #define  CMD_ERROR       10
  69. #define  CMD_SEVERE       15
  70. #define  CMD_ABORT       20
  71. #define  CMD_MALFUNCTION   50
  72.  
  73.  
  74. /*  Similar to the internal command error levels above, for the moment. */
  75.  
  76. #define  MAC_VALID0        0
  77. #define  MAC_VALID1        1
  78. #define  MAC_VALID2        2
  79. #define  MAC_VALID3        3
  80. #define  MAC_VALID4        4
  81. #define  MAC_FAILED        5
  82. #define  MAC_ERROR       10
  83. #define  MAC_SEVERE       15
  84. #define  MAC_ABORT       20
  85. #define  MAC_MALFUNCTION   50
  86.  
  87.  
  88. #define  CMD_INITIAL       0
  89. #define  TITLE_THRESHHOLD  CMD_VALID1
  90.  
  91. #endif
  92.  
  93.