home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume5 / rsed / defs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-02-03  |  984 b   |  36 lines

  1. /*
  2.  * This code copyright 1988 by Doug Davis (doug@letni.lawnet.com) 
  3.  *  You are free to modify, hack, fold, spindle, or mutlate this code in
  4.  *  any maner provided you give credit where credit is due and don't pretend
  5.  *  you wrote it.
  6.  *  If you do my lawyers (and I have a lot of lawyers) will teach you a lesson
  7.  *  in copyright law that you will never ever forget.
  8.  */
  9. #include <sys/types.h>
  10. #include <signal.h>
  11. #include <fcntl.h>
  12. #include <ctype.h>
  13. #include <sys/stat.h>
  14. #include <stdio.h>
  15. #include <errno.h>
  16. #include "curses.h"
  17.  
  18. #define WSEDHELP    "/usr/lib/rsedhelp";
  19. #define    MAXREPLACE    4096 /* biggest tmp line size for global replacement */
  20. #define    BEGINDOTS    24L * 1024L /* size of file to warrent dots to show
  21.                     that we are doing something */
  22.  
  23. typedef struct line {
  24.     struct line *previous;
  25.     struct line *next;
  26.     char text[1]; /* has to be end */
  27. } LINE;
  28.  
  29. #ifndef MSDOS
  30.     #ifdef CBREAK
  31.     #define One_Char()    crmode();
  32.     #else
  33.     #define One_Char()    cbreak();
  34.     #endif
  35. #endif MSDOS
  36.