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 / winder.h < prev    next >
C/C++ Source or Header  |  1999-01-02  |  2KB  |  61 lines

  1. /* -*-C-*-
  2.  
  3. $Id: winder.h,v 9.26 1999/01/02 06:11:34 cph Exp $
  4.  
  5. Copyright (c) 1987, 1988, 1989, 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. /* Header file for dynamic winder. */
  23.  
  24. #define STATE_SPACE_P(object)                        \
  25.   ((VECTOR_P (object)) &&                        \
  26.    ((VECTOR_LENGTH (object)) == STATE_SPACE_LENGTH) &&            \
  27.    ((MEMORY_REF ((object), STATE_SPACE_TAG)) ==                \
  28.     (Get_Fixed_Obj_Slot (State_Space_Tag))))
  29.  
  30. #define STATE_SPACE_TAG            1
  31. #define STATE_SPACE_NEAREST_POINT    2
  32. #define STATE_SPACE_LENGTH        2
  33.  
  34. #define STATE_POINT_P(object)                        \
  35.   ((VECTOR_P (object)) &&                        \
  36.    ((VECTOR_LENGTH (object)) == STATE_POINT_LENGTH) &&            \
  37.    ((MEMORY_REF ((object), STATE_POINT_TAG)) ==                \
  38.     (Get_Fixed_Obj_Slot (State_Point_Tag))))
  39.  
  40. #define STATE_POINT_TAG            1
  41. #define STATE_POINT_BEFORE_THUNK    2
  42. #define STATE_POINT_AFTER_THUNK        3
  43. #define STATE_POINT_NEARER_POINT    4
  44. #define STATE_POINT_DISTANCE_TO_ROOT    5
  45. #define STATE_POINT_LENGTH        5
  46.  
  47.  
  48. #ifdef butterfly
  49.  
  50. #define guarantee_state_point()                        \
  51. {                                    \
  52.   if (Current_State_Point == SHARP_F)                    \
  53.     Current_State_Point = (Get_Fixed_Obj_Slot (State_Space_Root));    \
  54. }
  55.  
  56. #else
  57.  
  58. #define guarantee_state_point()
  59.  
  60. #endif
  61.