aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/csx.h19
-rw-r--r--include/csx/csx.h25
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