home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / usr / sybase / include4_0 / sybfront.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-19  |  2.3 KB  |  116 lines

  1. /*
  2.  *    sybfront.h    62.1    4/10/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. #define FALSE        0
  41. #define TRUE        1
  42.  
  43. #define    SUCCEED        1
  44. #define    FAIL        0
  45.  
  46. /*
  47. **    Defines for exit
  48. */
  49.  
  50. #ifndef STDEXIT
  51. #define    STDEXIT        0
  52. #endif  /*  ifndef STDEXIT  */
  53.  
  54. #ifndef ERREXIT
  55. #define    ERREXIT        -1
  56. #endif  /*  ifndef ERREXIT  */
  57.  
  58. /*
  59. **     Defines for the "answer" in interrupt pop-ups 
  60. */
  61.  
  62. #define INT_EXIT    0
  63. #define INT_CONTINUE    1
  64. #define INT_CANCEL    2
  65.  
  66.  
  67. /* DataServer variable typedefs */
  68. typedef    unsigned char    DBTINYINT;    /* DataServer 1 byte integer */
  69. typedef    short        DBSMALLINT;    /* DataServer 2 byte integer */
  70. typedef    long        DBINT;        /* DataServer 4 byte integer */
  71. typedef    char        DBCHAR;        /* DataServer char type */
  72. typedef    unsigned char    DBBINARY;    /* DataServer binary type */
  73. typedef    unsigned char    DBBIT;        /* DataServer bit type */
  74. typedef struct datetime            /* DataServer datetime type */
  75. {
  76.     long    dtdays;            /* number of days since 1/1/1900 */
  77.     long    dttime;            /* number 300th second since mid */
  78. } DBDATETIME;
  79. typedef struct money            /* DataServer money type */
  80. {
  81.     long        mnyhigh;
  82.     unsigned long    mnylow;
  83. } DBMONEY;
  84. typedef    double        DBFLT8;        /* DataServer float type */
  85.  
  86. /*    
  87. **    Typedefs
  88. */
  89.  
  90. typedef unsigned char    BYTE;
  91. typedef unsigned char    DBBOOL;    /* Less likely to collide than "BOOL". */
  92. #if    SYBASE_CLIENT_LIB
  93. typedef unsigned char    BOOL;
  94. #endif    SYBASE_CLIENT_LIB
  95. typedef BYTE        *POINTER;
  96.  
  97. /*
  98. **    Pointers to functions returning ...
  99. */
  100.  
  101. typedef    int        (*INTFUNCPTR)();
  102. typedef    BOOL        (*BOOLFUNCPTR)();
  103.  
  104.  
  105. /*
  106. **    REGION - Rectangular Area.
  107. */
  108.  
  109. typedef    struct    region
  110. {
  111.     short        rgx;        /* Starting (upper left) coordinates */
  112.     short        rgy;
  113.     short        rgwidth;    /* Width (horizontal extent) */
  114.     short        rgheight;    /* Height (vertical extent) */
  115. } REGION;
  116.