home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / gened10.zip / GDSRCODS.H < prev    next >
Text File  |  1996-04-03  |  8KB  |  202 lines

  1. /*** $PROLOG(C,INCLUDE) **********************************************/
  2. /*                                                                   */
  3. /*  INCLUDE NAME : GDSRCODS                                          */
  4. /*                                                                   */
  5. /*  DESCRIPTIVE NAME : return codes                                  */
  6. /*                                                                   */
  7. /*  STATUS :                                                         */
  8. /*                                                                   */
  9. /*    RELEASE : 1.0.0                                                */
  10. /*    MODIFICATION : 0                                               */
  11. /*    DATE : 930930                                                  */
  12. /*                                                                   */
  13. /*  DESCRIPTION :  return codes of functions of GDSEDLIB library     */
  14. /*                                                                   */
  15. /*  MODULE TYPE : INCLUDE FILE                                       */
  16. /*                                                                   */
  17. /*      SIZE :                                                       */
  18. /*                                                                   */
  19. /*  CHANGE ACTIVITY :                                                */
  20. /*                                                                   */
  21. /*  $INC(GDSRCODS),COMP(GDS),    PROD(GDS)    : MODULE DESCRIPTOR    */
  22. /*                                                                   */
  23. /*  FLAG REASON   RLSE     DATE   ORIGIN  FLAG DESCRIPTOR            */
  24. /*  ---- -------- -------- ------ ------  -------------------------  */
  25. /*  $X0= GDSED    100      930930   RNSL: IMPLICIT FLAG, ORIGINAL    */
  26. /*  $Y1= xxxxxxxx nnn      yymmdd _logo_: _____Description_______    */
  27. /*                                                                   */
  28. /*                                                                   */
  29. /*** $EPROLOG(C,INCLUDE) *********************************************/
  30. /*********************************************************************/
  31. /*  Licensed Materials - Property of IBM                             */
  32. /*                                                                   */
  33. /*  GenE/D version 1.00 - 5648-075                                   */
  34. /*  Copyright (C) International Business Machines Corp., 1993        */
  35. /*  All rights reserved                                              */
  36. /*********************************************************************/
  37.  
  38. /* return codes from GDSaddmodule */
  39. #define ADDMODULE_DUP_MODULE -1
  40. #define ADDMODULE_OK 0
  41.  
  42. /* return codes from GDSallocateContentsArray */
  43. #define ALLOCATECONT_OK 0
  44. #define ALLOCATECONT_NO_ENOUGH_STORAGE -1
  45. #define ALLOCATECONT_INVALID_MODULE -2
  46.  
  47. /* return codes from GDSallocateContListArray */
  48. #define ALLOCATECONTLIST_OK 0
  49. #define ALLOCATECONTLIST_NO_ENOUGH_STORAGE -1
  50.  
  51. /* return codes from GDSallocateGdsTreeArray */
  52. #define ALLOCATEGDSTREE_OK 0
  53. #define ALLOCATEGDSTREE_NO_ENOUGH_STORAGE -1
  54. #define ALLOCATEGDSTREE_INVALID_MODULE -2
  55.  
  56. /* return codes from GDSbasetype */
  57. #define BASETYPE_OK 0
  58. #define BASETYPE_WRONG_TOKEN 1
  59. #define BASETYPE_UNRESOLVED_EXTERN_REF 2
  60.  
  61. /* return codes from GDSdecber */
  62. #define DECBER_OK 0
  63. #define DECBER_SYNTAX_ERROR -1
  64. #define DECBER_NO_ENOUGH_STORAGE -2
  65. #define DECBER_BUFFER_EMPTY -3
  66. #define DECBER_BUFFER_TOO_SMALL -4
  67.  
  68. /* return codes from GDSdecgdsd */
  69. #define DECGDSD_NO_MATCH 1
  70. #define DECGDSD_MATCH 0
  71. #define DECGDSD_SYNTAX_ERROR -1
  72. #define DECGDSD_INTERNAL_ERROR -2
  73. #define DECGDSD_UNRESOLVED_REFERENCE -3
  74. #define DECGDSD_BUFFER_EMPTY -4
  75. #define DECGDSD_INVALID_ID -5
  76. #define DECGDSD_INVALID_UNIQUE_ITEM -6
  77. #define DECGDSD_INVALID_LENGTH -7
  78. #define DECGDSD_NO_ENOUGH_STORAGE -8
  79. #define DECGDSD_INVALID_SEG_ID_PREFIX -9
  80. #define DECGDSD_INVALID_SEG_SEQ_NUM -10
  81. #define DECGDSD_INVALID_SEG_IDF_PREFIX -11
  82. #define DECGDSD_LAST_SEG_BEFORE_EOD -12
  83. #define DECGDSD_MISSING_MANDATORY_ELEMENT -13
  84. #define DECGDSD_BUFFER_TOO_SMALL -14
  85. #define DECGDSD_USR_DEC_FUN_FAILED -15
  86. #define DECGDSD_SUBTYPE_CONSTRNTS_NO_MATCH -16
  87.  
  88. /* return codes from GDSdecode */
  89. #define DECODE_MATCH 0
  90. #define DECODE_NO_MATCH 1
  91. #define DECODE_SYNTAX_ERROR -1
  92. #define DECODE_INTERNAL_ERROR -2
  93. #define DECODE_UNRESOLVED_REFERENCE -3
  94. #define DECODE_USR_DEC_FUN_FAILED -4
  95. #define DECODE_SUBTYPE_CONSTRNTS_NO_MATCH -5
  96.  
  97. /* return codes from GDSencber */
  98. #define ENCBER_OK 0
  99. #define ENCBER_NO_ENOUGH_STORAGE -1
  100. #define ENCBER_GDSUSRWRT_FAILED -2
  101. #define ENCBER_USER_EXIT_FAILED -3
  102. #define ENCBER_PRIM_TYPE_CONTENT_MISSING -4
  103. #define ENCBER_INTERNAL_ERROR -5
  104. #define ENCBER_UNDEFLEN_NOT_PERMITTED -6
  105. #define ENCBER_BUFFER_TOO_SMALL -7
  106.  
  107. /* return codes from GDSencgdsd */
  108. #define ENCGDSD_OK 0
  109. #define ENCGDSD_INTERNAL_ERROR -1
  110. #define ENCGDSD_BUFFER_TOO_SMALL -2
  111. #define ENCGDSD_GDSUSRWRT_FAILED -3
  112. #define ENCGDSD_INVALID_CLASS -4
  113. #define ENCGDSD_INVALID_FIXED_ITEM_LENGTH -5
  114. #define ENCGDSD_NO_ENOUGH_STORAGE -6
  115. #define ENCGDSD_INVALID_LENGTH -7
  116. #define ENCGDSD_INVALID_LL_LENGTH -8
  117. #define ENCGDSD_UNDEFLEN_NOT_PERMITTED -9
  118. #define ENCGDSD_SEGMENT_TOO_SHORT -10
  119. #define ENCGDSD_PRIM_TYPE_CONTENT_MISSING -11
  120. #define ENCGDSD_USER_EXIT_FAILED -12
  121. #define ENCGDSD_NESTED_SEGMENT -13
  122.  
  123. /* return codes from GDSencode */
  124. #define ENCODE_MATCH 0
  125. #define ENCODE_NO_MATCH 1
  126. #define ENCODE_SYNTAX_ERROR -1
  127. #define ENCODE_INTERNAL_ERROR -2
  128. #define ENCODE_UNRESOLVED_REFERENCE -3
  129. #define ENCODE_INVALID_GDSD_FIXED_LENGTH -4
  130. #define ENCODE_INVALID_ENCODING_TYPE -5
  131. #define ENCODE_UNDEFLENGTH_NOT_PERMITTED -6
  132. #define ENCODE_INVALID_LL_LENGTH -7
  133. #define ENCODE_INVALID_LENGTH -8
  134. #define ENCODE_INVALID_UNIQUE_ITEM_LENGTH -9
  135. #define ENCODE_INVALID_SEGMENT_LENGTH -10
  136. #define ENCODE_INVALID_NUMBER_OF_SSOF_ITEMS -11
  137. #define ENCODE_DEFAULT_FUNCTION -12
  138. #define ENCODE_MISSING_MANDATORY_ELEMENT -13
  139. #define ENCODE_NO_ENOUGH_STORAGE -14
  140. #define ENCODE_USER_EXIT_FAILED -15
  141.  
  142. /* return codes from GDSfindtbl */
  143. #define FIND_TABLE_FAIL -1
  144. #define FIND_TABLE_OK 0
  145.  
  146. /* return codes from GDSfindtype */
  147. #define FIND_TYPE_FAIL -1
  148. #define FIND_TYPE_OK 0
  149.  
  150. /* return codes from GDSfindval */
  151. #define FIND_VALUE_FAIL -1
  152. #define FIND_VALUE_OK 0
  153.  
  154. /* return codes from GDSfirstmodule */
  155. #define FIRST_MOD_OK 0
  156. #define FIRST_MOD_FAIL -5
  157.  
  158. /* return codes from GDSinitEnvironment */
  159. #define INIT_ENV_OK 0
  160. #define INIT_ENV_FAILED -1
  161.  
  162. /* return codes from GDSINTEGERtolong */
  163. #define INTG2LNG_ERROR -1
  164. #define INTG2LNG_OK    0
  165.  
  166. /* return codes from GDSlongs2OID */
  167. #define LNGS2OID_OK 0
  168. #define LNGS2OID_ERROR -1
  169.  
  170. /* return codes from GDSlongtoINTEGER */
  171. #define LONG2INTEGER_OK 0
  172.  
  173. /* return codes from GDSnewgds */
  174. #define NEWGDS_OK 0
  175. #define NEWGDS_NO_ENOUGH_STORAGE -1
  176.  
  177. /* return codes from GDSOIDtolngs */
  178. #define OID2LNGS_ERROR -1
  179. #define OID2LNGS_OK 0
  180.  
  181. /* return codes from GDSprintgds */
  182. #define PRINT_GDS_OK 0
  183. #define PRINT_GDS_ERROR -1
  184. #define PRINT_GDS_NO_ENOUGH_STORAGE -2
  185.  
  186. /* return codes from GDSPrintUresolvedImports */
  187. #define PRTUNRES_BAD_FILE -1
  188. #define PRTUNRES_OK 0
  189.  
  190. /* return codes from GDSreaddatfile */
  191. #define READ_DAT_OK 0
  192. #define READ_DAT_OPEN -3
  193. #define READ_DAT_VERSION -4
  194.  
  195. /* return codes from GDSresolveimports */
  196. #define RESOLVE_IMPORTS_OK 0
  197. #define UNRESOLVED_REFERENCE -2
  198.  
  199. /* return codes from GDSunloadmodule */
  200. #define UNLOAD_MOD_OK 0
  201. #define UNLOAD_MOD_NOT_FOUND -6
  202.