src/microcode/stack.h (STACK_LOCATIVE_LESS_P): Rename _ABOVE_P.
authorMatt Birkholz <puck@birchwood-abbey.net>
Wed, 20 Jan 2016 16:34:23 +0000 (09:34 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Wed, 20 Jan 2016 17:03:58 +0000 (10:03 -0700)
The stack direction neutral name STACK_LOCATIVE_ABOVE_P(a,b) makes
more sense next to STACK_BOTTOM and STACK_TOP.

src/microcode/interp.h
src/microcode/stack.h

index 242fa13a162e374a7a97b87f9fdb7f845e1c8f82..68ebec5c20db5702c83205d3294768b864ad8c0d 100644 (file)
@@ -85,7 +85,7 @@ USA.
   Will_Push_Limit = (STACK_LOC (- (N)))
 
 #define Pushed()                                                       \
-  if (STACK_LOCATIVE_LESS_P (stack_pointer, Will_Push_Limit))          \
+  if (STACK_LOCATIVE_ABOVE_P (stack_pointer, Will_Push_Limit))         \
     {                                                                  \
       Stack_Death ();                                                  \
     }                                                                  \
index 9b1db848db42424009f8da6f8d096740eca082b0..ef894bcab2a063e11fa4d6e80150670828e3b0d3 100644 (file)
@@ -73,7 +73,7 @@ USA.
 #define STACK_LOCATIVE_OFFSET(locative, offset) ((locative) + (offset))
 #define STACK_LOCATIVE_REFERENCE(locative, offset) ((locative) [(offset)])
 #define STACK_LOCATIVE_DIFFERENCE(newer, older) ((older) - (newer))
-#define STACK_LOCATIVE_LESS_P(loc1, loc2) ((loc1) < (loc2))
+#define STACK_LOCATIVE_ABOVE_P(loc1, loc2) ((loc1) < (loc2))
 
 #define ADDRESS_IN_STACK_REGION_P(address, lower_limit, upper_limit)   \
   (((address) >= (lower_limit)) && ((address) < (upper_limit)))