home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d191 / ispell.lha / ISpell / src.zoo / config.h < prev    next >
C/C++ Source or Header  |  1989-02-22  |  5KB  |  179 lines

  1. /*
  2.  * This is the configuration file for ispell.  Thanks to Bob McQueer
  3.  * for creating it and making the necessary changes elsewhere to
  4.  * support it.
  5.  * Look through this file from top to bottom, and edit anything that
  6.  * needs editing.  There are also five or six variables in the
  7.  * Makefile that you must edit.  Note that the Makefile edits this
  8.  * file (config.X) to produce config.h.  If you are looking at
  9.  * config.h, you're in the wrong file.
  10.  *
  11.  * Don't change the funny-looking lines with !!'s in them;  see the
  12.  * Makefile!
  13.  */
  14.  
  15. /*
  16. ** library directory for hash table(s) / default hash table name
  17. ** If you intend to use multiple dictionary files, I would suggest
  18. ** LIBDIR be a directory which will contain nothing else, so sensible
  19. ** names can be constructed for the -d option without conflict.
  20. */
  21. #ifndef LIBDIR
  22. #define LIBDIR "/tools/sources/ispell"
  23. #endif
  24. #ifndef DEFHASH
  25. #define DEFHASH "ispell.hash"
  26. #endif
  27.  
  28. #ifdef USG
  29. #define index strchr
  30. #define rindex strchr
  31. #endif
  32.  
  33. /* environment variable for user's word list */
  34. #ifndef PDICTVAR
  35. #define PDICTVAR "WORDLIST"
  36. #endif
  37.  
  38. /* default word list */
  39. #ifndef DEFPDICT
  40. #define DEFPDICT ".ispell_words"
  41. #endif
  42.  
  43. /* environment variable for include file string */
  44. #ifndef INCSTRVAR
  45. #define INCSTRVAR "INCLUDE_STRING"
  46. #endif
  47.  
  48. /* default include string */
  49. #ifndef DEFINCSTR
  50. #define DEFINCSTR "&Include_File&"
  51. #endif
  52.  
  53. /* mktemp template for temporary file - MUST contain 6 consecutive X's */
  54. #ifndef TEMPNAME
  55. #define TEMPNAME "/tmp/ispellXXXXXX"
  56. #endif
  57.  
  58. /* default dictionary file */
  59. #ifndef DEFDICT
  60. #define DEFDICT "dict.2"
  61. #endif
  62.  
  63. /* text dictionary used for regexp look up of words */
  64. #ifndef WORDS
  65. #define WORDS    "/usr/dict/words"   /* "/usr/dict/{words,web2}" */
  66. #endif
  67.  
  68. /* buffer size to use for file names if not in sys/param.h */
  69. #ifndef MAXPATHLEN
  70. #define MAXPATHLEN 240
  71. #endif
  72.  
  73. /* word length allowed in dictionary by buildhash */
  74. #define WORDLEN 30
  75.  
  76. /* suppress the 8-bit character feature */
  77. #ifndef NO8BIT
  78. #define NO8BIT
  79. #endif
  80.  
  81. /* maximum number of include files supported by xgets;  set to 0 to disable */
  82. #ifndef MAXINCLUDEFILES
  83. #define MAXINCLUDEFILES    5
  84. #endif
  85.  
  86. /* Approximate number of words in the full dictionary, after munching.
  87. ** Err on the high side unless you are very short on memory, in which
  88. ** case you might want to change the tables in tree.c and also increase
  89. ** MAXPCT.
  90. **
  91. ** (Note:  dict.191 is a bit over 15000 words.  dict.191 munched with
  92. ** /usr/dict/words is a little over 28000).
  93. */
  94. #ifndef BIG_DICT
  95. #define BIG_DICT    29000
  96. #endif
  97.  
  98. /*
  99. ** Maximum hash table fullness percentage.  Larger numbers trade space
  100. ** for time.
  101. **/
  102. #ifndef MAXPCT
  103. #define MAXPCT    70        /* Expand table when 70% full */
  104. #endif
  105.  
  106. /*
  107. ** the isXXXX macros normally only check ASCII range.  These are used
  108. ** instead for text characters, which we assume may be 8 bit.  The
  109. ** NO8BIT ifdef shuts off significance of 8 bit characters.  If you are
  110. ** using this, and your ctype.h already masks, you can simplify.
  111. */
  112. #ifdef NO8BIT
  113. #define myupper(X) isupper((X)&0x7f)
  114. #define mylower(X) islower((X)&0x7f)
  115. #define myspace(X) isspace((X)&0x7f)
  116. #define myalpha(X) isalpha((X)&0x7f)
  117. #else
  118. #define myupper(X) (!((X)&0x80) && isupper(X))
  119. #define mylower(X) (!((X)&0x80) && islower(X))
  120. #define myspace(X) (!((X)&0x80) && isspace(X))
  121. #define myalpha(X) (!((X)&0x80) && isalpha(X))
  122. #endif
  123.  
  124. /*
  125. ** the NOPARITY mask is applied to user input characters from the terminal
  126. ** in order to mask out the parity bit.
  127. */
  128. #ifdef NO8BIT
  129. #define NOPARITY 0x7f
  130. #else
  131. #define NOPARITY 0xff
  132. #endif
  133.  
  134.  
  135. /*
  136. ** the terminal mode for ispell, set to CBREAK or RAW
  137. **
  138. */
  139. #ifndef TERM_MODE
  140. #define TERM_MODE    CBREAK
  141. #endif
  142.  
  143. /*
  144. ** Define this if you want your columns of words to be of equal length.
  145. ** This will spread short word lists across the screen instead of down it.
  146. */
  147. #ifndef EQUAL_COLUMNS
  148. #undef EQUAL_COLUMNS
  149. #endif
  150.  
  151. /*
  152. ** This is the extension that will be added to backup files
  153. */
  154. #ifndef    BAKEXT
  155. #define    BAKEXT    ".bak"
  156. #endif
  157.  
  158. /*
  159. ** Define this if you want the capitalization feature.  This will increase
  160. ** the size of the hashed dictionary on most 16-bit and some 32-bit machines.
  161. */
  162. #ifndef CAPITALIZE
  163. #undef CAPITALIZE
  164. #endif
  165.  
  166. /*
  167. ** Define this if you want your personal dictionary sorted.  This may take
  168. ** a long time for very large dictionaries.  Dictionaries larger than
  169. ** SORTPERSONAL words will not be sorted.
  170. */
  171. /* Commented out because 'I' doesn't work the second time if you have
  172.    this - clobbers dictionary leaving only latest word there (why?)
  173. #define SORTPERSONAL    1000
  174. */
  175. #ifndef SORTPERSONAL
  176. #undef SORTPERSONAL
  177. #endif
  178.  
  179.