shithub: orca

Download patch

ref: da0d05078bc663b957b04318e1e9cccb7ee3942c
parent: 784f9c56a12f093c6836775898e53d0671527ace
author: cancel <cancel@cancel.fm>
date: Mon Nov 26 08:30:00 EST 2018

Cleanup

--- a/sim.c
+++ b/sim.c
@@ -69,12 +69,6 @@
   gbuf[y * width + x] = '.';
 }
 
-static inline void oper_lock_relative(Mbuffer mbuf, Usz height, Usz width,
-                                      Usz y, Usz x, Isz delta_y, Isz delta_x) {
-  mbuffer_poke_relative_flags_or(mbuf, height, width, y, x, delta_y, delta_x,
-                                 Mark_flag_lock);
-}
-
 #define ORCA_EXPAND_OPER_CHARS(_oper_name, _oper_char)                         \
   Orca_oper_char_##_oper_name = _oper_char,
 #define ORCA_DEFINE_OPER_CHARS(_defs)                                          \
@@ -111,7 +105,8 @@
   return
 
 #define OPER_LOCK_RELATIVE(_delta_y, _delta_x)                                 \
-  oper_lock_relative(mbuffer, height, width, y, x, _delta_y, _delta_x)
+  mbuffer_poke_relative_flags_or(mbuffer, height, width, y, x, _delta_y,       \
+                                 _delta_x, Mark_flag_lock);
 
 #define OPER_MOVE_OR_EXPLODE(_delta_y, _delta_x)                               \
   oper_move_relative_or_explode(gbuffer, mbuffer, height, width,               \