home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 211.lha / Spiff / edit.h < prev    next >
C/C++ Source or Header  |  1996-02-14  |  1KB  |  44 lines

  1. /*                        Copyright (c) 1988 Bellcore
  2. **                            All Rights Reserved
  3. **       Permission is granted to copy or use this program, EXCEPT that it
  4. **       may not be sold for profit, the copyright notice must be reproduced
  5. **       on copies, and credit should be given to Bellcore where it is due.
  6. **       BELLCORE MAKES NO WARRANTY AND ACCEPTS NO LIABILITY FOR THIS PROGRAM.
  7. */
  8.  
  9. /*
  10. **    the naming information hiding conventions are incompletely implemented
  11. **     for the edit module. I tried to clean it up once, but kept introducing
  12. **     nasty (ie. core dump) bugs in the miller code.  I give up for now.
  13. */
  14. #ifndef E_INCLUDED
  15.  
  16. #define E_INSERT    1
  17. #define E_DELETE    2
  18.  
  19. typedef struct edt {
  20.     struct edt *link;
  21.     int op;
  22.     int line1;
  23.     int line2;
  24. } _E_struct, *E_edit;
  25.  
  26. #define E_setop(x,y)        ((x)->op = (y))
  27. #define E_setl1(x,y)        ((x)->line1 = (y))
  28. #define E_setl2(x,y)        ((x)->line2 = (y))
  29. #define E_setnext(x,y)        ((x)->link = (y))
  30.  
  31. #define E_getop(x)        ((x)->op)
  32. #define E_getl1(x)        ((x)->line1)
  33. #define E_getl2(x)        ((x)->line2)
  34. #define E_getnext(x)        ((x)->link)
  35.  
  36. #define E_NULL         ((E_edit) 0)
  37. #define E_edit_alloc()    (Z_ALLOC(1,_E_struct))
  38.  
  39. #define E_INCLUDED
  40.  
  41. #endif
  42.  
  43.  
  44.