Refactor to encapsulate all state in a 'ucl'
This commit is contained in:
16
src/memory.h
16
src/memory.h
@@ -3,14 +3,14 @@
|
||||
|
||||
#include "types.h"
|
||||
|
||||
struct ucl_object *ucl_cell_create(struct ucl_object *car, struct ucl_object *cdr);
|
||||
struct ucl_object *ucl_int_create(int integer);
|
||||
struct ucl_object *ucl_symbol_create(const char* symbol);
|
||||
struct ucl_object *ucl_string_create(const char* string);
|
||||
struct ucl_object *ucl_error_create(const char* error);
|
||||
struct ucl_object *ucl_builtin_create(ucl_lisp builtin);
|
||||
struct ucl_object *ucl_special_create(ucl_lisp special);
|
||||
struct ucl_object *ucl_cell_create(struct ucl* ucl, struct ucl_object *car, struct ucl_object *cdr);
|
||||
struct ucl_object *ucl_int_create(struct ucl* ucl, int integer);
|
||||
struct ucl_object *ucl_symbol_create(struct ucl* ucl, const char* symbol);
|
||||
struct ucl_object *ucl_string_create(struct ucl* ucl, const char* string);
|
||||
struct ucl_object *ucl_error_create(struct ucl* ucl, const char* error);
|
||||
struct ucl_object *ucl_builtin_create(struct ucl* ucl, ucl_lisp builtin);
|
||||
struct ucl_object *ucl_special_create(struct ucl* ucl, ucl_lisp special);
|
||||
|
||||
void ucl_object_delete(struct ucl_object *obj);
|
||||
void ucl_object_delete(struct ucl* ucl, struct ucl_object *obj);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user