home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 5 Edit
/
05-Edit.zip
/
the25.zip
/
thesrc251.zip
/
defines.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-04-19
|
6KB
|
177 lines
/*
* THE - The Hessling Editor. A text editor similar to VM/CMS xedit.
* Copyright (C) 1991-1997 Mark Hessling
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to:
*
* The Free Software Foundation, Inc.
* 675 Mass Ave,
* Cambridge, MA 02139 USA.
*
*
* If you make modifications to this software that you feel increases
* it usefulness for the rest of the community, please email the
* changes, enhancements, bug fixes as well as any and all ideas to me.
* This software is going to be maintained and enhanced as deemed
* necessary by the community.
*
* Mark Hessling Email: M.Hessling@qut.edu.au
* PO Box 203 Phone: +617 3802 0800
* Bellara http://www.gu.edu.au/gext/the/markh.html
* QLD 4507 **** Maintainer PDCurses & REXX/SQL ****
* Australia ************* Author of THE ************
*/
/*
$Id: defines.h 2.1 1995/06/24 16:29:31 MH Rel MH $
*/
/*---------------------------------------------------------------------*/
/* Include config.h generated by configure. */
/*---------------------------------------------------------------------*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#else
# define BUILD2502 1
# if defined(__OS2__) || defined(__EMX__)
# define HAVE_BEEP 1
# define HAVE_CBREAK 1
# define HAVE_CURS_SET 1
# define HAVE_DOUPDATE 1
# define HAVE_KEYPAD 1
# define HAVE_NOCBREAK 1
# define HAVE_NOTIMEOUT 1
# ifndef HAVE_PROTO
# define HAVE_PROTO 1
# endif
# define HAVE_RAW 1
# define HAVE_RESET_PROG_MODE 1
# define HAVE_RESET_SHELL_MODE 1
# define HAVE_SLK_INIT 1
# define HAVE_TOUCHLINE 1
# define HAVE_TYPEAHEAD 1
# define HAVE_WATTRSET 1
# define HAVE_WNOUTREFRESH 1
# define HAVE_WVLINE 1
# define RETSIGTYPE void
# define TIME_WITH_SYS_TIME 1
# define HAVE_RENAME 1
# define HAVE_CTYPE_H 1
# define HAVE_FCNTL_H 1
# ifndef HAVE_MEMORY_H
# define HAVE_MEMORY_H 1
# endif
# define HAVE_STDLIB_H 1
# define HAVE_STRING_H 1
# define HAVE_SYS_STAT_H 1
# define HAVE_SYS_TYPES_H 1
# ifdef EMX
# define HAVE_UNISTD_H 1
# define HAVE_SYS_FILE_H 1
# endif
# endif
# if defined(__MSDOS__) || defined(MSDOS)
# define HAVE_BEEP 1
# define HAVE_CBREAK 1
# define HAVE_CURS_SET 1
# define HAVE_DOUPDATE 1
# define HAVE_KEYPAD 1
# define HAVE_NOCBREAK 1
# define HAVE_NOTIMEOUT 1
# ifndef HAVE_PROTO
# define HAVE_PROTO 1
# endif
# define HAVE_RAW 1
# define HAVE_RESET_PROG_MODE 1
# define HAVE_RESET_SHELL_MODE 1
# define HAVE_SLK_INIT 1
# define HAVE_TOUCHLINE 1
# define HAVE_TYPEAHEAD 1
# define HAVE_WATTRSET 1
# define HAVE_WNOUTREFRESH 1
# define HAVE_WVLINE 1
# define RETSIGTYPE void
# define HAVE_RENAME 1
# define HAVE_CTYPE_H 1
# define HAVE_FCNTL_H 1
# ifndef HAVE_MEMORY_H
# define HAVE_MEMORY_H 1
# endif
# define HAVE_STDLIB_H 1
# define HAVE_STRING_H 1
# define HAVE_SYS_STAT_H 1
# define HAVE_SYS_TYPES_H 1
# endif
# if defined(__NT__) || defined(WIN32)
# define HAVE_BEEP 1
# define HAVE_CBREAK 1
# define HAVE_CURS_SET 1
# define HAVE_DOUPDATE 1
# define HAVE_KEYPAD 1
# define HAVE_NOCBREAK 1
# define HAVE_NOTIMEOUT 1
# ifndef HAVE_PROTO
# define HAVE_PROTO 1
# endif
# define HAVE_RAW 1
# define HAVE_RESET_PROG_MODE 1
# define HAVE_RESET_SHELL_MODE 1
# define HAVE_SLK_INIT 1
# define HAVE_TOUCHLINE 1
# define HAVE_TYPEAHEAD 1
# define HAVE_WATTRSET 1
# define HAVE_WNOUTREFRESH 1
# define HAVE_WVLINE 1
# define RETSIGTYPE void
# define TIME_WITH_SYS_TIME 1
# define HAVE_RENAME 1
# define HAVE_CTYPE_H 1
# define HAVE_FCNTL_H 1
# ifndef HAVE_MEMORY_H
# define HAVE_MEMORY_H 1
# endif
# define HAVE_STDLIB_H 1
# define HAVE_STRING_H 1
# define HAVE_SYS_STAT_H 1
# define HAVE_SYS_TYPES_H 1
# endif
#endif
/*---------------------------------------------------------------------*/
/* The following values can be changed to suit your needs. */
/*---------------------------------------------------------------------*/
#define MAX_FILE_NAME 255 /* maximum length of fully qualified file */
#define MAX_MACRO_DIRS 20 /* maximum number of directories in THE_MACRO_PATH */
#define MAX_COMMAND_LENGTH 150 /* maximum length of a command */
#define MAX_LENGTH_OF_LINE 512 /* default maximum length of a line */
#define MAX_COMMANDS 10 /* default maximum number of commands allowed on command line */
#define MAX_RECV 20 /* number of lines that can be recovered */
#define MAX_SAVED_COMMANDS 20 /* number of commands that can be retrieved */
#define MAX_NUMTABS 32 /* number of tab stops that can be defined */
/*---------------------------------------------------------------------*/
/* The following values should not be changed unless you know what you */
/* are doing ! */
/*---------------------------------------------------------------------*/
typedef unsigned char ROWTYPE;
typedef unsigned char COLTYPE;
typedef unsigned char CHARTYPE;
typedef unsigned short LENGTHTYPE;
typedef long LINETYPE;
typedef unsigned char SELECTTYPE;
/*---------------------------------------------------------------------*/
/* A default char type to avoid compiler warnings. */
/*---------------------------------------------------------------------*/
typedef char DEFCHAR;