home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.1 (Developer) [x86] / NeXT Step 3.1 Intel dev.cdr.dmg / usr / sybase / include / sybfront.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-22  |  2.3 KB  |  118 lines

  1. /*
  2.  *    sybfront.h    62.3    26/6/90
  3.  *
  4.  *    Sybase DB-LIBRARY Version 4.0
  5.  *    Confidential Property of Sybase, Inc.
  6.  *    (c) Copyright Sybase, Inc. 1988, 1989
  7.  *    All rights reserved
  8.  *
  9.  *
  10.  * Use, duplication, or disclosure by the United States Government
  11.  * is subject to restrictions as set forth in subparagraph (c) (1) (ii)
  12.  * of the Rights in Technical Data and Computer Software clause
  13.  * at CFR 52.227-7013. Sybase, Inc. 6475 Christie Avenue, Emeryville,
  14.  * CA 94608.
  15.  *
  16.  */
  17.  
  18. /*
  19. **    Languages
  20. */
  21.  
  22. #define    SYB_C        0
  23. #define    SYB_FORTRAN    1
  24. #define    SYB_COBOL    2
  25. #define SYB_ADA        3
  26. #define    SYB_VERDIX_ADA    4
  27.  
  28. /*
  29. **    Return types
  30. */
  31.  
  32.  
  33. typedef int        RETCODE;    /* SUCCEED or FAIL */
  34. typedef    int        STATUS;        /* OK or condition code */
  35.  
  36. #ifndef NULL
  37. #define NULL        0
  38. #endif    /*  NULL  */
  39.  
  40. #ifndef FALSE
  41. #define FALSE        0
  42. #endif    /*  FALSE  */
  43.  
  44. #ifndef TRUE
  45. #define TRUE        1
  46. #endif    /*  TRUE  */
  47.  
  48. #define    SUCCEED        1
  49. #define    FAIL        0
  50.  
  51. /*
  52. **    Defines for exit
  53. */
  54.  
  55. #ifndef STDEXIT
  56. #define    STDEXIT        0
  57. #endif  /*  ifndef STDEXIT  */
  58.  
  59. #ifndef ERREXIT
  60. #define    ERREXIT        -1
  61. #endif  /*  ifndef ERREXIT  */
  62.  
  63. /*
  64. **     Defines for the "answer" in interrupt pop-ups 
  65. */
  66.  
  67. #define INT_EXIT    0
  68. #define INT_CONTINUE    1
  69. #define INT_CANCEL    2
  70.  
  71.  
  72. /* DataServer variable typedefs */
  73. typedef    unsigned char    DBTINYINT;    /* DataServer 1 byte integer */
  74. typedef    short        DBSMALLINT;    /* DataServer 2 byte integer */
  75. typedef    long        DBINT;        /* DataServer 4 byte integer */
  76. typedef    char        DBCHAR;        /* DataServer char type */
  77. typedef    unsigned char    DBBINARY;    /* DataServer binary type */
  78. typedef    unsigned char    DBBIT;        /* DataServer bit type */
  79. typedef struct datetime            /* DataServer datetime type */
  80. {
  81.     long    dtdays;            /* number of days since 1/1/1900 */
  82.     long    dttime;            /* number 300th second since mid */
  83. } DBDATETIME;
  84. typedef struct money            /* DataServer money type */
  85. {
  86.     long        mnyhigh;
  87.     unsigned long    mnylow;
  88. } DBMONEY;
  89. typedef    double        DBFLT8;        /* DataServer float type */
  90.  
  91. /*    
  92. **    Typedefs
  93. */
  94.  
  95. typedef unsigned char    BYTE;
  96. typedef unsigned char    DBBOOL;    /* Less likely to collide than "BOOL". */
  97. typedef BYTE        *POINTER;
  98.  
  99. /*
  100. **    Pointers to functions returning ...
  101. */
  102.  
  103. typedef    int        (*INTFUNCPTR)();
  104. typedef    DBBOOL        (*BOOLFUNCPTR)();
  105.  
  106.  
  107. /*
  108. **    REGION - Rectangular Area.
  109. */
  110.  
  111. typedef    struct    region
  112. {
  113.     short        rgx;        /* Starting (upper left) coordinates */
  114.     short        rgy;
  115.     short        rgwidth;    /* Width (horizontal extent) */
  116.     short        rgheight;    /* Height (vertical extent) */
  117. } REGION;
  118.