beattie@netxcom.UUCP (Brian Beattie) (06/20/87)
Boy is my face red. here are the .h files that I forgot. ---------------------- cut here ---------------------- #! /bin/sh # This is a shell archive, meaning: # 1. Remove everything above the #! /bin/sh line. # 2. Save the resulting text in a file. # 3. Execute the file with /bin/sh (not csh) to create the files: # ed.h # tools.h # This archive created: Fri Jun 19 19:18:21 1987 export PATH; PATH=/bin:$PATH if test -f 'ed.h' then echo shar: will not over-write existing file "'ed.h'" else cat << \SHAR_EOF > 'ed.h' /* ed.h */ #define FATAL (ERR-1) struct line { int l_stat; /* empty, mark */ struct line *l_prev; struct line *l_next; char l_buff[1]; }; typedef struct line LINE; #define LINFREE 1 /* entry not in use */ #define LGLOB 2 /* line marked global */ #define LEXCL 4 /* line marked exclude */ #define MAXLINE 256 /* max number of chars per line */ #define MAXPAT 256 /* max number of chars per replacement pattern */ #define MAXFNAME 256 /* max file name size */ extern LINE line0; extern int curln, lastln, line1, line2, nlines; extern int nflg; /* print line number flag */ extern int lflg; /* print line in verbose mode */ extern int pflg; /* print current line after each command */ extern char *inptr; /* tty input buffer */ extern char linbuf[], *linptr; /* current line */ extern int truncflg; /* truncate long line flag */ extern int eightbit; /* save eighth bit */ extern int nonascii; /* count of non-ascii chars read */ extern int nullchar; /* count of null chars read */ extern int truncated; /* count of lines truncated */ extern int fchanged; /* file changed */ #define nextln(l) ((l)+1 > lastln ? 0 : (l)+1) #define prevln(l) ((l)-1 < 0 ? lastln : (l)-1) extern char *getfn(); extern LINE *getptr(); extern char *gettxt(); extern char *maksub(); extern TOKEN *optpat(); extern char *catsub(); extern char *strcpy(); extern int *malloc(); /*********************************************************************/ SHAR_EOF fi # end of overwriting check if test -f 'tools.h' then echo shar: will not over-write existing file "'tools.h'" else cat << \SHAR_EOF > 'tools.h' static char tools_h[] = "$Header: tools.h,v 2.1 85/11/14 11:30:00 beattie Exp $"; /* * #defines for non-printing ASCII characters */ #define NUL 0x00 /* ^@ */ #define EOS 0x00 /* end of string */ #define SOH 0x01 /* ^A */ #define STX 0x02 /* ^B */ #define ETX 0x03 /* ^C */ #define EOT 0x04 /* ^D */ #define ENQ 0x05 /* ^E */ #define ACK 0x06 /* ^F */ #define BEL 0x07 /* ^G */ #define BS 0x08 /* ^H */ #define HT 0x09 /* ^I */ #define LF 0x0a /* ^J */ #define NL '\n' #define VT 0x0b /* ^K */ #define FF 0x0c /* ^L */ #define CR 0x0d /* ^M */ #define SO 0x0e /* ^N */ #define SI 0x0f /* ^O */ #define DLE 0x10 /* ^P */ #define DC1 0x11 /* ^Q */ #define DC2 0x12 /* ^R */ #define DC3 0x13 /* ^S */ #define DC4 0x14 /* ^T */ #define NAK 0x15 /* ^U */ #define SYN 0x16 /* ^V */ #define ETB 0x17 /* ^W */ #define CAN 0x18 /* ^X */ #define EM 0x19 /* ^Y */ #define SUB 0x1a /* ^Z */ #define ESC 0x1b /* ^[ */ #define FS 0x1c /* ^\ */ #define GS 0x1d /* ^] */ #define RS 0x1e /* ^^ */ #define US 0x1f /* ^_ */ #define SP 0x20 /* space */ #define DEL 0x7f /* DEL*/ #define TRUE 1 #define FALSE 0 #define ERR -2 /* Definitions of meta-characters used in pattern matching * routines. LITCHAR & NCCL are only used as token identifiers; * all the others are also both token identifier and actual symbol * used in the regular expression. */ #define BOL '^' #define EOL '$' #define ANY '.' #define LITCHAR 'L' #define ESCAPE '\\' #define CCL '[' /* Character class: [...] */ #define CCLEND ']' #define NEGATE '~' #define NCCL '!' /* Negative character class [^...] */ #define CLOSURE '*' #define OR_SYM '|' #define DITTO '&' /* Largest permitted size for an expanded character class. (i.e. the class * [a-z] will expand into 26 symbols; [a-z0-9] will expand into 36.) */ #define CLS_SIZE 128 /* * Tokens are used to hold pattern templates. (see makepat()) */ typedef char BITMAP; typedef struct token { char tok; char lchar; BITMAP *bitmap; struct token *next; } TOKEN; #define TOKSIZE sizeof (TOKEN) /* * An absolute maximun for strings. */ #define MAXSTR 132 /* Maximum numbers of characters in a line */ extern char *matchs(); extern char *amatch(); extern char *in_string(); extern TOKEN *getpat(); extern int esc(); extern char *dodash(); extern TOKEN *makepat(); extern int unmakepat(); extern int insert(); extern int delete(); extern int isalphanum(); extern char *stoupper(); extern int pr_tok(); extern int pr_line(); extern BITMAP *makebitmap(); /* macros */ #define max(a,b) ((a>b)?a:b) #define min(a,b) ((a<b)?a:b) #define toupper(c) (c>='a'&&c<='z'?c-32:c) SHAR_EOF fi # end of overwriting check # End of shell archive exit 0 -- ----------------------------------------------------------------------- Brian Beattie | Phone: (703)749-2365 NetExpress Communications, Inc. | uucp: seismo!sundc!netxcom!beattie 1953 Gallows Road, Suite 300 | Vienna,VA 22180 |