home *** CD-ROM | disk | FTP | other *** search
/ Informática Multimedia: Special Games (Alt) / INFESPGAMES.iso / os2 / backgam / source / tf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-08  |  2.9 KB  |  87 lines

  1. /*************************************************************
  2.  *    ______                                                 *
  3.  *   /     /\  TinyFugue was derived from a client initially *
  4.  *  /   __/  \ written by Anton Rang (Tarrant) and later     *
  5.  *  |  / /\  | modified by Leo Plotkin (Grod).  The early    *
  6.  *  |  |/    | versions of TinyFugue written by Greg Hudson  *
  7.  *  |  X__/  | (Explorer_Bob).  The current version is       *
  8.  *  \ /      / written and maintained by Ken Keys (Hawkeye), *
  9.  *   \______/  who can be reached at kkeys@ucsd.edu.         *
  10.  *                                                           *
  11.  *             No copyright 1992, no rights reserved.        *
  12.  *             Fugue is in the public domain.                *
  13.  *************************************************************/
  14.  
  15. /****************************************
  16.  * TinyFugue global types and variables. *
  17.  ****************************************/
  18.  
  19. #include "prototype.h"
  20.  
  21. #ifdef __STDC__
  22. # if __STDC__
  23. #  define STANDARD_C_YES_SIREE
  24. # endif
  25. #endif
  26.  
  27. /* standard stuff */
  28. #ifdef STANDARD_C_YES_SIREE
  29. # include <stdlib.h>
  30. #else
  31. #if 0
  32. extern char *FDECL(getenv,(char *envvar));
  33. extern FILE *FDECL(popen,(char *command, char *type));
  34. extern char *FDECL(malloc,(long unsigned size));
  35. extern char *FDECL(realloc,(char *ptr, long unsigned size));
  36. extern void  FDECL(free,(char *ptr));
  37. #endif
  38. #endif
  39.  
  40. #ifndef hpux
  41. # ifndef SYSVTTY
  42. #  define BSD
  43. # endif
  44. #endif
  45.  
  46. typedef void NDECL((NFunc));
  47. typedef void FDECL((Handler),(char *arguments));
  48. #define HANDLER(name) void FDECL(name,(char *arguments))
  49.  
  50. /* This works if you cast all time_t's to TIME_T. */
  51. # define TIME_T         unsigned long
  52.  
  53. #define TRUE 1
  54. #define FALSE 0
  55.  
  56. #ifndef TFLIBRARY
  57. #define TFLIBRARY      "/usr/local/lib/tfrc"
  58. #endif
  59. #define PRIVATEINIT    "tfrc"
  60. #define CONFIGFILE     "tinytalk"          /* for backward compatibility */
  61. #define MAILDIR        "/usr/spool/mail/"
  62.  
  63. #define SAVEGLOBAL    1000     /* global history size */
  64. #define SAVEWORLD     1000     /* world history size */
  65. #define SAVELOCAL      100     /* local history size */
  66. #define SAVEINPUT       50     /* command history buffer size */
  67. #define WATCHLINES       5     /* number for watchdog to change */
  68. #define NAMEMATCHNUM     4     /* ask to gag if this many last lines by same */
  69. #define STRINGMATCHNUM   2     /* ignore if this many of last lines identical */
  70. #define MAXQUIET        25     /* max # of lines to suppress during login */
  71.  
  72. typedef char smallstr[65];     /* Short buffer */
  73.  
  74. #define F_NORM       00001
  75. #define F_GAG        00002
  76. #define F_NORECORD   00004
  77. #define F_SUPERGAG   (F_GAG | F_NORECORD)
  78. #define F_UNDERLINE  00010
  79. #define F_REVERSE    00020
  80. #define F_FLASH      00040
  81. #define F_DIM        00100
  82. #define F_HILITE     00200
  83. #define F_BELL       00400
  84. #define F_ALL        00777
  85. #define F_NEWLINE    01000
  86.  
  87.