Refactor to encapsulate all state in a 'ucl'
This commit is contained in:
@@ -3,12 +3,15 @@
|
||||
|
||||
struct ucl_scope;
|
||||
struct ucl_object;
|
||||
struct ucl;
|
||||
|
||||
struct ucl_object *ucl_tokenize(const char *source);
|
||||
struct ucl_object *ucl_parse(const char *sexp);
|
||||
struct ucl_object *ucl_evaluate(struct ucl_scope *state, struct ucl_object *sexp);
|
||||
struct ucl* ucl_create(void);
|
||||
void ucl_delete(struct ucl* state);
|
||||
|
||||
// TODO: State encapsulation is all wonky here)
|
||||
void ucl_gc();
|
||||
struct ucl_object *ucl_tokenize(struct ucl* state, const char *source);
|
||||
struct ucl_object *ucl_parse(struct ucl* state, const char *sexp);
|
||||
struct ucl_object *ucl_evaluate(struct ucl* state, struct ucl_object *sexp);
|
||||
|
||||
void ucl_gc(struct ucl* ucl);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user