home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / discs / shareware / share_43 / source / h / I < prev    next >
Text File  |  1991-08-22  |  3KB  |  84 lines

  1. /*****************************************************************************
  2. *
  3. *                                   ibmconf.h
  4. *
  5. *   from DKBTrace (c) 1990  David Buck
  6. *
  7. *  This file contains ibm-specific defines, types, etc.
  8. *
  9. * This software is freely distributable. The source and/or object code may be
  10. * copied or uploaded to communications services so long as this notice remains
  11. * at the top of each file.  If any changes are made to the program, you must
  12. * clearly indicate in the documentation and in the programs startup message
  13. * who it was who made the changes. The documentation should also describe what
  14. * those changes were. This software may not be included in whole or in
  15. * part into any commercial package without the express written consent of the
  16. * author.  It may, however, be included in other public domain or freely
  17. * distributed software so long as the proper credit for the software is given.
  18. *
  19. * This software is provided as is without any guarantees or warranty. Although
  20. * the author has attempted to find and correct any bugs in the software, he
  21. * is not responsible for any damage caused by the use of the software.  The
  22. * author is under no obligation to provide service, corrections, or upgrades
  23. * to this package.
  24. *
  25. * Despite all the legal stuff above, if you do find bugs, I would like to hear
  26. * about them.  Also, if you have any comments or questions, you may contact me
  27. * at the following address:
  28. *
  29. *     David Buck
  30. *     22C Sonnet Cres.
  31. *     Nepean Ontario
  32. *     Canada, K2H 8W7
  33. *
  34. *  I can also be reached on the following bulleton boards:
  35. *
  36. *     ATX              (613) 526-4141
  37. *     OMX              (613) 731-3419
  38. *     Mystic           (613) 731-0088 or (613) 731-6698
  39. *
  40. *  Fidonet:   1:163/109.9
  41. *  Internet:  David_Buck@Carleton.CA
  42. *
  43. *  IBM Port by Aaron A. Collins. Aaron may be reached on the following BBS'es:
  44. *
  45. *     Lattice BBS                      (708) 916-1200
  46. *     The Information Exchange BBS     (708) 945-5575
  47. *     Stillwaters BBS                  (708) 403-2826
  48. *
  49. *****************************************************************************/
  50.  
  51.  
  52. #include <conio.h>
  53. #include <stdarg.h>
  54. #include <stdlib.h>
  55.  
  56.  
  57. #ifndef TURBOC
  58. void _cdecl main(int, char **);    /* so MSC can use FASTCALL's... */
  59. #define main (_cdecl main)
  60.  
  61. #define    MK_FP(seg,ofs)    ((void far *)(((unsigned long)(seg) << 16) | (unsigned)(ofs)))
  62. #endif
  63.  
  64. /* #define MATH_CO TRUE     * Feed this option through CC's comnd line! */
  65.  
  66. #ifdef MATH_CO
  67. #define DBL long double
  68. #else
  69. #define DBL double
  70. #endif
  71.  
  72. #ifdef MATH_CO
  73. #define DBL_FORMAT_STRING "%Lf"
  74. #else
  75. #define DBL_FORMAT_STRING "%lf"
  76. #endif
  77.  
  78. #define MAX_BITMAP_SIZE 65535L    /* 320 x 200 plus a little */
  79.  
  80. #define TEST_ABORT if (Options & EXITENABLE) if (kbhit()) { Stop_Flag = TRUE; getch(); }
  81.  
  82. /* This gives us ANSI prototyping */
  83. #define PARAMS(x) x
  84.