summaryrefslogtreecommitdiff
path: root/prism/node.h
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-02-26 22:11:33 -0500
committergit <[email protected]>2024-02-27 04:22:39 +0000
commit3ca8b4aee0bf99b34c392b4b449541db82781284 (patch)
treed7fc52e0300a18e5afc188fa7e5f4f839d2cf037 /prism/node.h
parentbfb2dc8acfd7d7c825b7ba0f1eb50ec92631362c (diff)
[ruby/prism] Support -p, -n, -a, and -l command line options
https://github.com/ruby/prism/commit/959eb506ca
Diffstat (limited to 'prism/node.h')
-rw-r--r--prism/node.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/prism/node.h b/prism/node.h
index 9c37c9decc..76eb720978 100644
--- a/prism/node.h
+++ b/prism/node.h
@@ -30,6 +30,15 @@ bool pm_node_list_grow(pm_node_list_t *list);
void pm_node_list_append(pm_node_list_t *list, pm_node_t *node);
/**
+ * Prepend a new node onto the beginning of the node list.
+ *
+ * @param list The list to prepend to.
+ * @param node The node to prepend.
+ */
+void
+pm_node_list_prepend(pm_node_list_t *list, pm_node_t *node);
+
+/**
* Free the internal memory associated with the given node list.
*
* @param list The list to free.