diff options
author | Aleksey Veresov <aleksey@veresov.pro> | 2021-01-02 19:24:13 +0300 |
---|---|---|
committer | Aleksey Veresov <aleksey@veresov.pro> | 2021-01-02 19:24:13 +0300 |
commit | 0c32a26c9a43b2d45968b9ac59b8916c1d4092d1 (patch) | |
tree | ba7d6ef7f3749a42a6118c35996f2931aa4f83e2 /include | |
parent | 6b08e86c9a16bfac5a208a04926dcc66b861a096 (diff) | |
download | csx-0c32a26c9a43b2d45968b9ac59b8916c1d4092d1.tar csx-0c32a26c9a43b2d45968b9ac59b8916c1d4092d1.tar.xz csx-0c32a26c9a43b2d45968b9ac59b8916c1d4092d1.zip |
.
Diffstat (limited to 'include')
-rw-r--r-- | include/csx.h | 19 | ||||
-rw-r--r-- | include/csx/csx.h | 25 |
2 files changed, 19 insertions, 25 deletions
diff --git a/include/csx.h b/include/csx.h new file mode 100644 index 0000000..90d18c2 --- /dev/null +++ b/include/csx.h @@ -0,0 +1,19 @@ +#ifndef CSX_INCLUDED +#define CSX_INCLUDED + + +typedef void *(csx_list_fn)(void *head, ...); +void *csx_list(void *head, ...); + +typedef int *(csx_num_fn)(int num); +int *csx_num(int num); + +void *csx_eval(void *expression); + +typedef void *(csx_base_data)(void *arg); +void *csx_base(csx_base_data base); + +char *csx_name(const char *name); + + +#endif diff --git a/include/csx/csx.h b/include/csx/csx.h deleted file mode 100644 index db2d1b3..0000000 --- a/include/csx/csx.h +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef CSX_INCLUDED -#define CSX_INCLUDED - - -struct csx_pair { - void *car; - void *cdr; -}; - -typedef struct csx_pair *(csx_type_function_list)(void *head, ...); -struct csx_pair *csx_list(void *head, ...); - -typedef char *(csx_type_function_string)(const char *string); -char *csx_string(const char *string); - -typedef char *(csx_type_function_atom)(const char *name); -char *csx_atom(const char *name); - -typedef void *(csx_type_function_evaluate)(void *expression); -void *csx_evaluate(void *expression); - -void csx_free(); - - -#endif |