shithub: orca

Download patch

ref: 71f4b3b17eb0c36ec3ea368e4f76d4e6fadfcd12
parent: 4c2209f0860c61de26b06453f334314638e0d99c
author: cancel <cancel@cancel.fm>
date: Tue Nov 27 08:09:05 EST 2018

Cleanup naming

--- a/sim.c
+++ b/sim.c
@@ -182,7 +182,7 @@
   oper_move_relative_or_explode(gbuffer, mbuffer, height, width,               \
                                 This_oper_char, y, x, _delta_y, _delta_x)
 
-#define OPER_DEFINE_DIRECTIONAL(_oper_name, _delta_y, _delta_x)                \
+#define MOVING_OPERATOR(_oper_name, _delta_y, _delta_x)                        \
   BEGIN_DUAL_PHASE_0(_oper_name)                                               \
     BEGIN_HASTE                                                                \
       REALIZE_DUAL;                                                            \
@@ -210,10 +210,10 @@
 
 //////// Behavior
 
-OPER_DEFINE_DIRECTIONAL(north, -1, 0)
-OPER_DEFINE_DIRECTIONAL(east, 0, 1)
-OPER_DEFINE_DIRECTIONAL(south, 1, 0)
-OPER_DEFINE_DIRECTIONAL(west, 0, -1)
+MOVING_OPERATOR(north, -1, 0)
+MOVING_OPERATOR(east, 0, 1)
+MOVING_OPERATOR(south, 1, 0)
+MOVING_OPERATOR(west, 0, -1)
 
 BEGIN_DUAL_PHASE_0(add)
   REALIZE_DUAL;