home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / the25.zip / thesrc251.zip / defines.h < prev    next >
C/C++ Source or Header  |  1998-04-19  |  6KB  |  177 lines

  1. /*
  2.  * THE - The Hessling Editor. A text editor similar to VM/CMS xedit.
  3.  * Copyright (C) 1991-1997 Mark Hessling
  4.  *
  5.  * This program is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU General Public License as
  7.  * published by the Free Software Foundation; either version 2 of
  8.  * the License, or any later version.
  9.  *
  10.  * This program is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13.  * General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU General Public License
  16.  * along with this program; if not, write to:
  17.  *
  18.  *    The Free Software Foundation, Inc.
  19.  *    675 Mass Ave,
  20.  *    Cambridge, MA 02139 USA.
  21.  *
  22.  *
  23.  * If you make modifications to this software that you feel increases
  24.  * it usefulness for the rest of the community, please email the
  25.  * changes, enhancements, bug fixes as well as any and all ideas to me.
  26.  * This software is going to be maintained and enhanced as deemed
  27.  * necessary by the community.
  28.  *
  29.  * Mark Hessling                 Email:             M.Hessling@qut.edu.au
  30.  * PO Box 203                    Phone:                    +617 3802 0800
  31.  * Bellara                       http://www.gu.edu.au/gext/the/markh.html
  32.  * QLD 4507                      **** Maintainer PDCurses & REXX/SQL ****
  33.  * Australia                     ************* Author of THE ************
  34.  */
  35.  
  36. /*
  37. $Id: defines.h 2.1 1995/06/24 16:29:31 MH Rel MH $
  38. */
  39.  
  40. /*---------------------------------------------------------------------*/
  41. /* Include config.h generated by configure.                            */
  42. /*---------------------------------------------------------------------*/
  43. #ifdef HAVE_CONFIG_H
  44. # include <config.h>
  45. #else
  46. # define BUILD2502 1
  47. # if defined(__OS2__) || defined(__EMX__)
  48. #  define HAVE_BEEP 1
  49. #  define HAVE_CBREAK 1
  50. #  define HAVE_CURS_SET 1
  51. #  define HAVE_DOUPDATE 1
  52. #  define HAVE_KEYPAD 1
  53. #  define HAVE_NOCBREAK 1
  54. #  define HAVE_NOTIMEOUT 1
  55. #  ifndef HAVE_PROTO
  56. #    define HAVE_PROTO 1
  57. #  endif
  58. #  define HAVE_RAW 1
  59. #  define HAVE_RESET_PROG_MODE 1
  60. #  define HAVE_RESET_SHELL_MODE 1
  61. #  define HAVE_SLK_INIT 1
  62. #  define HAVE_TOUCHLINE 1
  63. #  define HAVE_TYPEAHEAD 1
  64. #  define HAVE_WATTRSET 1
  65. #  define HAVE_WNOUTREFRESH 1
  66. #  define HAVE_WVLINE 1
  67. #  define RETSIGTYPE void
  68. #  define TIME_WITH_SYS_TIME 1
  69. #  define HAVE_RENAME 1
  70. #  define HAVE_CTYPE_H 1
  71. #  define HAVE_FCNTL_H 1
  72. #  ifndef HAVE_MEMORY_H
  73. #    define HAVE_MEMORY_H 1
  74. #  endif
  75. #  define HAVE_STDLIB_H 1
  76. #  define HAVE_STRING_H 1
  77. #  define HAVE_SYS_STAT_H 1
  78. #  define HAVE_SYS_TYPES_H 1
  79. #  ifdef EMX
  80. #   define HAVE_UNISTD_H 1
  81. #   define HAVE_SYS_FILE_H 1
  82. #  endif
  83. # endif
  84. # if defined(__MSDOS__) || defined(MSDOS)
  85. #  define HAVE_BEEP 1
  86. #  define HAVE_CBREAK 1
  87. #  define HAVE_CURS_SET 1
  88. #  define HAVE_DOUPDATE 1
  89. #  define HAVE_KEYPAD 1
  90. #  define HAVE_NOCBREAK 1
  91. #  define HAVE_NOTIMEOUT 1
  92. #  ifndef HAVE_PROTO
  93. #    define HAVE_PROTO 1
  94. #  endif
  95. #  define HAVE_RAW 1
  96. #  define HAVE_RESET_PROG_MODE 1
  97. #  define HAVE_RESET_SHELL_MODE 1
  98. #  define HAVE_SLK_INIT 1
  99. #  define HAVE_TOUCHLINE 1
  100. #  define HAVE_TYPEAHEAD 1
  101. #  define HAVE_WATTRSET 1
  102. #  define HAVE_WNOUTREFRESH 1
  103. #  define HAVE_WVLINE 1
  104. #  define RETSIGTYPE void
  105. #  define HAVE_RENAME 1
  106. #  define HAVE_CTYPE_H 1
  107. #  define HAVE_FCNTL_H 1
  108. #  ifndef HAVE_MEMORY_H
  109. #    define HAVE_MEMORY_H 1
  110. #  endif
  111. #  define HAVE_STDLIB_H 1
  112. #  define HAVE_STRING_H 1
  113. #  define HAVE_SYS_STAT_H 1
  114. #  define HAVE_SYS_TYPES_H 1
  115. # endif
  116. # if defined(__NT__) || defined(WIN32)
  117. #  define HAVE_BEEP 1
  118. #  define HAVE_CBREAK 1
  119. #  define HAVE_CURS_SET 1
  120. #  define HAVE_DOUPDATE 1
  121. #  define HAVE_KEYPAD 1
  122. #  define HAVE_NOCBREAK 1
  123. #  define HAVE_NOTIMEOUT 1
  124. #  ifndef HAVE_PROTO
  125. #    define HAVE_PROTO 1
  126. #  endif
  127. #  define HAVE_RAW 1
  128. #  define HAVE_RESET_PROG_MODE 1
  129. #  define HAVE_RESET_SHELL_MODE 1
  130. #  define HAVE_SLK_INIT 1
  131. #  define HAVE_TOUCHLINE 1
  132. #  define HAVE_TYPEAHEAD 1
  133. #  define HAVE_WATTRSET 1
  134. #  define HAVE_WNOUTREFRESH 1
  135. #  define HAVE_WVLINE 1
  136. #  define RETSIGTYPE void
  137. #  define TIME_WITH_SYS_TIME 1
  138. #  define HAVE_RENAME 1
  139. #  define HAVE_CTYPE_H 1
  140. #  define HAVE_FCNTL_H 1
  141. #  ifndef HAVE_MEMORY_H
  142. #    define HAVE_MEMORY_H 1
  143. #  endif
  144. #  define HAVE_STDLIB_H 1
  145. #  define HAVE_STRING_H 1
  146. #  define HAVE_SYS_STAT_H 1
  147. #  define HAVE_SYS_TYPES_H 1
  148. # endif
  149. #endif
  150.  
  151. /*---------------------------------------------------------------------*/
  152. /* The following values can be changed to suit your needs.             */
  153. /*---------------------------------------------------------------------*/
  154. #define MAX_FILE_NAME              255  /* maximum length of fully qualified file */
  155. #define MAX_MACRO_DIRS              20  /* maximum number of directories in THE_MACRO_PATH */
  156. #define MAX_COMMAND_LENGTH         150  /* maximum length of a command */
  157. #define MAX_LENGTH_OF_LINE         512  /* default maximum length of a line */
  158. #define MAX_COMMANDS                10  /* default maximum number of commands allowed on command line */
  159. #define MAX_RECV                    20  /* number of lines that can be recovered */
  160. #define MAX_SAVED_COMMANDS          20  /* number of commands that can be retrieved */
  161. #define MAX_NUMTABS                 32  /* number of tab stops that can be defined */
  162.  
  163. /*---------------------------------------------------------------------*/
  164. /* The following values should not be changed unless you know what you */
  165. /* are doing !                                                         */
  166. /*---------------------------------------------------------------------*/
  167. typedef unsigned char  ROWTYPE;
  168. typedef unsigned char  COLTYPE;
  169. typedef unsigned char  CHARTYPE;
  170. typedef unsigned short LENGTHTYPE;
  171. typedef long           LINETYPE;
  172. typedef unsigned char  SELECTTYPE;
  173. /*---------------------------------------------------------------------*/
  174. /* A default char type to avoid compiler warnings.                     */
  175. /*---------------------------------------------------------------------*/
  176. typedef char           DEFCHAR;
  177.