summaryrefslogtreecommitdiff
path: root/other/burneye/src/conf/tmp/script.h
diff options
context:
space:
mode:
authorRoot THC2026-02-24 12:42:47 +0000
committerRoot THC2026-02-24 12:42:47 +0000
commitc9cbeced5b3f2bdd7407e29c0811e65954132540 (patch)
treeaefc355416b561111819de159ccbd86c3004cf88 /other/burneye/src/conf/tmp/script.h
parent073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff)
initial
Diffstat (limited to 'other/burneye/src/conf/tmp/script.h')
-rw-r--r--other/burneye/src/conf/tmp/script.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/other/burneye/src/conf/tmp/script.h b/other/burneye/src/conf/tmp/script.h
new file mode 100644
index 0000000..7235218
--- /dev/null
+++ b/other/burneye/src/conf/tmp/script.h
@@ -0,0 +1,50 @@
1/* fornax - distributed network
2 *
3 * by team teso
4 *
5 * scripting capabilities
6 */
7
8#ifndef FNX_SCRIPT_H
9#define FNX_SCRIPT_H
10
11#include "element.h"
12#include "symbol.h"
13
14
15/* scr_exec
16 *
17 * compile and execute a script pointed to by `script'. after execution,
18 * free the compiled script
19 *
20 * return 1 if the execution was successful (ie compilation succeeded)
21 * return 0 on error (compilation/interpreter failed)
22 */
23
24int scr_exec (char *script);
25
26
27/* scr_ns_add
28 *
29 * add a symbol element `elem' to the namespace pointed to by `ns'
30 *
31 * return pointer to modified namespace
32 */
33
34sym_elem ** scr_ns_add (sym_elem **ns, sym_elem *elem);
35
36
37/* scr_compile
38 *
39 * compile a script pointed to by `script'
40 *
41 * return a pointer to the readily compiled parse tree on success
42 * return NULL on failure
43 */
44
45element ** scr_compile (char *script);
46
47
48#endif
49
50