home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Product / Product.zip / DBDEMO.ZIP / DEMOFLS.ZIP / DB.H < prev    next >
Text File  |  1991-06-03  |  2KB  |  34 lines

  1. /************************************************************************/
  2. /* DATABASE PERFORMANCE CONCEPTS AND TECHNIQUE DEMONSTRATION PROGRAM    */
  3. /* HEADER FILE                                                          */
  4. /* SOURCE - DB.H                                                        */
  5. /*  This file contains variable and function declarations used  by      */
  6. /*  the imbedded SQL modules:                                           */
  7. /*                        indices.sqc                                   */
  8. /*                        stat_dyn.sqc                                  */
  9. /*                        ari.sqc                                       */
  10. /*                        rblock.sqc                                    */
  11. /*                        rblockno.sqc                                  */
  12. /************************************************************************/
  13. /*****************************-DIRECTIVES-**********************************/
  14. #include <stdio.h>     // standard input output -c
  15. #include <stdlib.h>    // C language standard library
  16. #include <string.h>    // C language string functions
  17. #include <doscalls.h>   //
  18. #include <sys\timeb.h>  // declarations for time_b  structure used by ftime()
  19.                         // and delta function
  20.  
  21. #include <sql.h>       // error message retreival
  22. #include <sqlenv.h>    // dbm environment functions
  23. #include <sqlca.h>     // communication area (sqlca) support
  24.  
  25. #include "dbcomm.h"    // variables connecting PM driver and db modules
  26. /*****************************-END DIRECTIVES-******************************/
  27. #define CODEPAGE_US 437
  28. #define QUERYLENGTH 80
  29. struct sqlca sqlca;
  30.      /* delta find difference in values of two timeb structs */
  31.      /* and returns a double */
  32. extern void far pascal get_error(struct sqlca *, char *);
  33. extern double delta(a, b, c, d);
  34.