home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 May / PCWK5A99.ISO / Os2 / PDAY100.ZIP / SRC.ZIP / COMMON.H next >
Encoding:
C/C++ Source or Header  |  1997-10-26  |  2.5 KB  |  108 lines

  1. /*
  2.  * my common stuff
  3.  *
  4.  */
  5.  
  6. #ifndef COMMON__H
  7. #define COMMON__H
  8.  
  9. /* --- address and such of mine -------------------------------------- */
  10.  
  11. #define MY_BBSNAME         "Psychosis"
  12. #define MY_BBSPHONE        "+1 (719) 532-0053"
  13. #define MY_FIDOADR         "1:128/234"
  14. #define MY_EMAIL1          "psych0o@juno.com"
  15. #define MY_EMAIL2          "psych0o@aol.com"
  16. #define MY_FTP             "members.aol.com/psych0o/"
  17. #define MY_WWW             "members.aol.com/psych0o/psoft.htm"
  18.  
  19. #define CONTACT "\nPsych0Soft can be contacted via\n" \
  20.         " BBS: " MY_BBSNAME ", " MY_BBSPHONE "\n" \
  21.         " FidoNet: " MY_FIDOADR "\n" \
  22.         " E-mail: " MY_EMAIL1 " or " MY_EMAIL2 "\n" \
  23.         " FTP: " MY_FTP "\n" \
  24.         " WWW: " MY_WWW "\n"
  25.  
  26.  
  27. /* --- compiler generalizations -------------------------------------- */
  28.  
  29. #ifndef DOS
  30. #if defined(_QC) || defined(__DOS__) || defined(MSDOS) || defined(__MSDOS__)
  31. #define DOS
  32. #endif
  33. #endif
  34.  
  35. #ifndef OS2
  36. #if defined(__OS2__) || defined(OS_2)
  37. #define OS2
  38. #endif
  39. #endif
  40.  
  41. #if !defined(EMX) || !defined(OS2)
  42. #if defined(__EMX__)
  43. #define EMX
  44. #define OS2
  45. #endif
  46. #endif
  47.  
  48. /* needs WINNT, WIN31, WIN95, Unix, Amiga */
  49.  
  50.  
  51. /* --- includes ------------------------------------------------------ */
  52.  
  53. #include <stdio.h>
  54. #include <stdlib.h>
  55. #include <string.h>
  56. #include <malloc.h>    /* p2c, others */
  57.  
  58. #if defined(INC_CRITERR)
  59. #include <stdarg.h>
  60. #endif
  61.  
  62. #if defined(DOS)
  63. #include <dos.h>       /* share_loaded */
  64. #include <dir.h>       /* exist */
  65. #endif /* DOS */
  66.  
  67.  
  68. /* --- more defines -------------------------------------------------- */
  69.  
  70. #define ANSI_CLRSCR "\x1b[2J"
  71. #define ANSI_1      "\x1b[0;34m"
  72. #define ANSI_2      "\x1b[0;32m"
  73. #define ANSI_3      "\x1b[0;36m"
  74. #define ANSI_4      "\x1b[0;31m"
  75. #define ANSI_5      "\x1b[0;35m"
  76. #define ANSI_6      "\x1b[0;33m"
  77. #define ANSI_7      "\x1b[0;37m"
  78. #define ANSI_8      "\x1b[1;30m"
  79. #define ANSI_9      "\x1b[1;34m"
  80. #define ANSI_10     "\x1b[1;32m"
  81. #define ANSI_11     "\x1b[1;36m"
  82. #define ANSI_12     "\x1b[1;31m"
  83. #define ANSI_13     "\x1b[1;35m"
  84. #define ANSI_14     "\x1b[1;33m"
  85. #define ANSI_15     "\x1b[1;37m"
  86.  
  87. #ifndef NUL
  88. #define NUL '\0'
  89. #endif
  90.  
  91. /* --- typedef ------------------------------------------------------- */
  92.  
  93. #if defined(DOS)
  94. typedef long INT32;
  95. typedef int INT16;
  96. #if !defined(unixtime)
  97. typedef unsigned long unixtime;
  98. #endif
  99. #endif
  100.  
  101. /* --- function prototypes ------------------------------------------- */
  102.  
  103. void criterr(char const *errmsg, ...);
  104.  
  105.  
  106.  
  107. #endif /* not COMMON__H */
  108.