Refactor to encapsulate all state in a 'ucl'

This commit is contained in:
2022-11-22 15:50:46 -05:00
parent 13062a5b86
commit 5320c70dea
23 changed files with 641 additions and 663 deletions

View File

@@ -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