ref: 199f056146a2d21313c822c8a6f23417602d386d
parent: 71f4b3b17eb0c36ec3ea368e4f76d4e6fadfcd12
author: cancel <cancel@cancel.fm>
date: Tue Nov 27 08:12:50 EST 2018
Cleanup port macro flag names
--- a/sim.c
+++ b/sim.c
@@ -140,9 +140,9 @@
if (!oper_has_neighboring_bang(gbuffer, height, width, y, x)) \
return
-#define PORT_LOCKED Mark_flag_lock
-#define PORT_UNLOCKED Mark_flag_none
-#define PORT_HASTE Mark_flag_haste_input
+#define LOCKING Mark_flag_lock
+#define NONLOCKING Mark_flag_none
+#define HASTE Mark_flag_haste_input
#define REALIZE_DUAL \
bool const Dual_is_active = \
@@ -218,9 +218,9 @@
BEGIN_DUAL_PHASE_0(add)
REALIZE_DUAL;
BEGIN_DUAL_PORTS
- I_PORT(0, 1, PORT_LOCKED);
- I_PORT(0, 2, PORT_LOCKED);
- O_PORT(1, 0, PORT_LOCKED);
+ I_PORT(0, 1, LOCKING);
+ I_PORT(0, 2, LOCKING);
+ O_PORT(1, 0, LOCKING);
END_PORTS
END_PHASE
BEGIN_DUAL_PHASE_1(add)
@@ -235,9 +235,9 @@
BEGIN_DUAL_PHASE_0(modulo)
REALIZE_DUAL;
BEGIN_DUAL_PORTS
- I_PORT(0, 1, PORT_LOCKED);
- I_PORT(0, 2, PORT_LOCKED);
- O_PORT(1, 0, PORT_LOCKED);
+ I_PORT(0, 1, LOCKING);
+ I_PORT(0, 2, LOCKING);
+ O_PORT(1, 0, LOCKING);
END_PORTS
END_PHASE
BEGIN_DUAL_PHASE_1(modulo)
@@ -252,9 +252,9 @@
BEGIN_DUAL_PHASE_0(increment)
REALIZE_DUAL;
BEGIN_DUAL_PORTS
- I_PORT(0, 1, PORT_LOCKED);
- I_PORT(0, 2, PORT_LOCKED);
- O_PORT(1, 0, PORT_LOCKED);
+ I_PORT(0, 1, LOCKING);
+ I_PORT(0, 2, LOCKING);
+ O_PORT(1, 0, LOCKING);
END_PORTS
END_PHASE
BEGIN_DUAL_PHASE_1(increment)