Skip to content

Commit 744467c

Browse files
committed
1 parent 286d3a4 commit 744467c

File tree

18 files changed

+2760
-1256
lines changed

18 files changed

+2760
-1256
lines changed

src/main/c/yarp/include/prism.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void pm_serialize_comment_list(pm_parser_t *parser, pm_list_t *list, pm_buffer_t
9191
* @param encoding The encoding to serialize.
9292
* @param buffer The buffer to serialize to.
9393
*/
94-
void pm_serialize_encoding(pm_encoding_t *encoding, pm_buffer_t *buffer);
94+
void pm_serialize_encoding(const pm_encoding_t *encoding, pm_buffer_t *buffer);
9595

9696
/**
9797
* Serialize the encoding, metadata, nodes, and constant pool.
@@ -211,7 +211,7 @@ PRISM_EXPORTED_FUNCTION const char * pm_token_type_to_str(pm_token_type_t token_
211211
* pm_node_t *root = pm_parse(&parser);
212212
* printf("PARSED!\n");
213213
*
214-
* pm_node_destroy(root);
214+
* pm_node_destroy(&parser, root);
215215
* pm_parser_free(&parser);
216216
* }
217217
* ```
@@ -263,7 +263,7 @@ PRISM_EXPORTED_FUNCTION const char * pm_token_type_to_str(pm_token_type_t token_
263263
* printf("*.s%\n", (int) buffer.length, buffer.value);
264264
*
265265
* pm_buffer_free(&buffer);
266-
* pm_node_destroy(root);
266+
* pm_node_destroy(&parser, root);
267267
* pm_parser_free(&parser);
268268
* }
269269
* ```

0 commit comments

Comments
 (0)