shithub: MicroHs

Download patch

ref: e3eaf70c7abfd4c24b494d52e1fa3998b9d07441
parent: 464aac4c5c5c7ef50f4074266327006e84a1c83c
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Sat Aug 19 18:23:51 EDT 2023

Inline node allocation.

--- a/src/runtime/eval.c
+++ b/src/runtime/eval.c
@@ -166,7 +166,7 @@
   return tv.tv_sec + tv.tv_usec * 1e-6;
 }
 
-NODEPTR
+static inline NODEPTR
 alloc_node(enum node_tag t)
 {
   if (num_free <= 0)
@@ -202,7 +202,7 @@
   return n;
 }
 
-NODEPTR
+static inline NODEPTR
 new_ap(NODEPTR f, NODEPTR a)
 {
   NODEPTR n = alloc_node(AP);
--