home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 6 / FreshFish_September1994.bin / bbs / util / mg-3b.lha / mg / src.LZH / h / region.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-05-23  |  581 b   |  20 lines

  1. #ifndef    MARK_H
  2. #define MARK_H
  3. /*
  4.  * This structure holds the starting position (as a line/offset pair) and the
  5.  * number of characters in a region of a buffer. This makes passing the
  6.  * specification of a region around a little bit easier.
  7.  */
  8.  
  9. struct region {
  10.     struct line    *r_linep;/* Origin LINE address.         */
  11.     short           r_offset;    /* Origin LINE offset.         */
  12.     RSIZE           r_size;    /* Length in characters.     */
  13. };
  14.  
  15. #ifndef    NO_PROTO
  16. int             getregion(struct region * rp);
  17. int             setsize(register struct region * rp, register RSIZE size);
  18. #endif
  19. #endif
  20.