added boolean_free method
This commit is contained in:
parent
44b13fdf84
commit
06f9b82b59
2 changed files with 7 additions and 0 deletions
|
@ -33,6 +33,7 @@ typedef u8 sml_boolean;
|
|||
sml_boolean *sml_boolean_init(u8 b);
|
||||
sml_boolean *sml_boolean_parse(sml_buffer *buf);
|
||||
void sml_boolean_write(sml_boolean *boolean, sml_buffer *buf);
|
||||
void sml_boolean_free(sml_boolean *b);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
|
@ -64,5 +64,11 @@ void sml_boolean_write(sml_boolean *boolean, sml_buffer *buf) {
|
|||
buf->cursor++;
|
||||
}
|
||||
|
||||
void sml_boolean_free(sml_boolean *b) {
|
||||
if (b) {
|
||||
free(b);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue