summaryrefslogtreecommitdiff
path: root/prism/util/pm_buffer.h
diff options
context:
space:
mode:
authorKevin Newton <[email protected]>2024-02-22 15:53:28 -0500
committerKevin Newton <[email protected]>2024-02-22 22:42:44 -0500
commit5e0589cf52113e012b48044e7e8773a2ab3ee58d (patch)
tree5a03a0a4f59b567b1a4e28c6ac8c3fb7f4bb8c76 /prism/util/pm_buffer.h
parent3b3def5db7c27e985c12d8d2cf0f77ef3eb63744 (diff)
[ruby/prism] Parse float values
https://github.com/ruby/prism/commit/9137226a52
Diffstat (limited to 'prism/util/pm_buffer.h')
-rw-r--r--prism/util/pm_buffer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/prism/util/pm_buffer.h b/prism/util/pm_buffer.h
index a798dd1d17..d8ec8180e7 100644
--- a/prism/util/pm_buffer.h
+++ b/prism/util/pm_buffer.h
@@ -130,6 +130,14 @@ void pm_buffer_append_varuint(pm_buffer_t *buffer, uint32_t value);
void pm_buffer_append_varsint(pm_buffer_t *buffer, int32_t value);
/**
+ * Append a double to the buffer.
+ *
+ * @param buffer The buffer to append to.
+ * @param value The double to append.
+ */
+void pm_buffer_append_double(pm_buffer_t *buffer, double value);
+
+/**
* The different types of escaping that can be performed by the buffer when
* appending a slice of Ruby source code.
*/