-
Notifications
You must be signed in to change notification settings - Fork 0
/
ext.h
35 lines (28 loc) · 1.08 KB
/
ext.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "ext/fs/fs.h"
//#include "ext/curl.h"
set_extensions() {
array_set1( &ext, "exit", &do_exit);
array_set1( &ext, "print", &do_print);
array_set1( &ext, "typeof", &do_typeof);
array_set1( &ext, "array_init", &array_init);
array_set1( &ext, "array_key", &array_key);
array_set1( &ext, "array_value", &array_value);
array_set1( &ext, "array_len", &array_len);
array_set1( &ext, "array_set", &array_set);
array_set1( &ext, "array_get", &array_get);
array_set1( &ext, "array_set_val", &array_set_val);
array_set1( &ext, "strcat", &mstrcat);
array_set1( &ext, "microtime", &do_microtime);
array_set1( &ext, "sleep", &do_sleep);
array_set1( &ext, "fopen", &do_fopen);
array_set1( &ext, "feof", &do_feof);
array_set1( &ext, "fgetc", &do_fgetc);
array_set1( &ext, "fsize", &do_fsize);
array_set1( &ext, "fread", &do_fread);
/* array_set1( &ext, "curl_init", &do_curl_init);
array_set1( &ext, "curl_setopt", &do_curl_setopt);
//array_set1( &ext, "curl_perform", &do_curl_perform);
array_set1( &ext, "curl_exec", &do_curl_exec);
array_set1( &ext, "curl_close", &do_curl_close);
*/
}