From 2d9c04fc3fa3d639b1959f85e7b9b26e4cf8941d Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Wed, 20 Jan 2016 09:34:23 -0700 Subject: [PATCH] src/microcode/stack.h (STACK_LOCATIVE_LESS_P): Rename _ABOVE_P. 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 | 2 +- src/microcode/stack.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/microcode/interp.h b/src/microcode/interp.h index 242fa13a1..68ebec5c2 100644 --- a/src/microcode/interp.h +++ b/src/microcode/interp.h @@ -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 (); \ } \ diff --git a/src/microcode/stack.h b/src/microcode/stack.h index 9b1db848d..ef894bcab 100644 --- a/src/microcode/stack.h +++ b/src/microcode/stack.h @@ -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))) -- 2.25.1