home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mitsch75.zip / scheme-7_5_17-src.zip / scheme-7.5.17 / src / microcode / edwin.h < prev    next >
Text File  |  1999-01-02  |  2KB  |  45 lines

  1. /* -*-C-*-
  2.  
  3. $Id: edwin.h,v 1.9 1999/01/02 06:11:34 cph Exp $
  4.  
  5. Copyright (c) 1987-1999 Massachusetts Institute of Technology
  6.  
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or (at
  10. your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful, but
  13. WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21.  
  22. /* Definitions for Edwin data structures.
  23.    This MUST match the definitions in the Edwin source code. */
  24.  
  25. #define GROUP_P VECTOR_P
  26. #define GROUP_TEXT(group) (VECTOR_REF ((group), 1))
  27.  
  28. #define GROUP_GAP_START(group)                        \
  29.   (UNSIGNED_FIXNUM_TO_LONG (VECTOR_REF ((group), 2)))
  30.  
  31. #define GROUP_GAP_LENGTH(group)                        \
  32.   (UNSIGNED_FIXNUM_TO_LONG (VECTOR_REF ((group), 3)))
  33.  
  34. #define GROUP_GAP_END(group)                        \
  35.   (UNSIGNED_FIXNUM_TO_LONG (VECTOR_REF ((group), 4)))
  36.  
  37. #define GROUP_START_MARK(group) (VECTOR_REF ((group), 6))
  38. #define GROUP_END_MARK(group) (VECTOR_REF ((group), 7))
  39. #define GROUP_MODIFIED_P(group) (VECTOR_REF ((group), 16))
  40.  
  41. #define MARK_P RECORD_P
  42. #define MARK_GROUP(mark) (VECTOR_REF ((mark), 1))
  43. #define MARK_INDEX(mark) (UNSIGNED_FIXNUM_TO_LONG (VECTOR_REF ((mark), 2)))
  44. #define MARK_LEFT_INSERTING(mark) ((VECTOR_REF ((mark), 3)) != SHARP_F)
  45.