home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 5 / 05.iso / a / a524 / 35.ddi / lib / usrxit.h < prev   
Encoding:
C/C++ Source or Header  |  1991-03-04  |  2.6 KB  |  92 lines

  1. /*
  2.  * $Header: usrxit.h,v 3001300.1 89/12/21 13:37:57 rcs Exp $ usrxit.h Copyr (c) 1989 Oracle
  3.  */
  4. /* SQLFORMS3030013,DUA50:[FREEZE_SQLFORMS30.UTILH.30013] */
  5. /* copyright (c) 1984 by the Oracle Corporation */
  6.  
  7. /*
  8. NAME
  9.   Definitions for IAP User Exits.
  10. FUNCTION
  11.   Should be included in GENXTB.C and IAPPRS.C.
  12. NOTES
  13.   See IAPPRS.C {Parse/Call IAP User Exit};
  14.   and GENXTB.C {Generate iapxtb[] table}.
  15. OWNER
  16.   Friend
  17. DATE
  18.   11/15/84
  19. MODIFIED
  20.     Markari    12/09/89 - Changes to allow forms and report writer to link together
  21.     Markari    05/26/89 - Fold in Unix porting changes
  22.     Fine       01/25/89 - TOUCH
  23.     Rolle      01/14/88 - more XIT types; remove obsolete stuff
  24.     Fine       12/30/87 - Fix preprocessor text
  25.     Morse      09/09/87 - Add Ada exit call
  26. */
  27.  
  28.  
  29. #ifndef extd
  30.  
  31. #ifdef vax11c
  32. /* Defines for extd, extf, externdef */
  33. # define  extd          globalref          /* use for DECLARING global data */
  34. # define  externdef   globaldef          /* use for DEFINING  global data */
  35. # define  extf          extern               /* use for declaring FUNCTIONS */
  36. # define  VOID          void
  37. #else
  38. # define  extd          extern             /* use for DECLARING global data */
  39. # define  externdef                 /* use for DEFINING  global data */
  40. # define  extf          extern               /* use for declaring FUNCTIONS */
  41. #endif
  42.  
  43. #ifdef unix
  44. # define  VOID          void
  45. #endif
  46.  
  47. #ifndef VOID
  48. #define VOID int
  49. #endif /* VOID */
  50.  
  51. #endif
  52. #define SQLFORMS          1
  53. #define SQLREPORTWRITER   2
  54.  
  55. extd int  iapprd;                       /* Product currently running */
  56.  
  57. extd char iaprval[];                 /* This is where IAP returns
  58.                         field values from PUT */
  59.  
  60. struct    exitr                /* Struct definition for exits */
  61. {
  62.      char      *exnam;        /* Name of the user exit */
  63.      int       (*exfp)();        /* Pointer to the exit routine */
  64.      int       extyp;        /* Type code for exit routine  */
  65. #define  XITCC1    1            /* C (for existing exits)      */
  66. #define  XITCC       2            /* C (call-by-reference)       */
  67. #define  XITCOB    3            /* Cobol               */
  68. #define  XITFOR    4            /* Fortran              */
  69. #define  XITPLI    5                    /* PL/I                             */
  70. #define  XITPAS    6                    /* Pascal                           */
  71. #define  XITAda    7                    /* Ada                              */
  72. };
  73.  
  74. typedef struct exitr exitr;
  75.  
  76. /* Failure and Success return codes */
  77.  
  78. #ifdef FATAL_ERR
  79. #undef FATAL_ERR
  80. #endif
  81. #define    FATAL_ERR        535    /* Use this on really bad errors */
  82.  
  83. #ifdef FAILURE
  84. #undef FAILURE
  85. #endif
  86. #define    FAILURE        1403   /* Use this on recoverable error */
  87.  
  88. #ifdef SUCCESS
  89. #undef SUCCESS
  90. #endif
  91. #define    SUCCESS        0      /* Use for success */
  92.