Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2919087
runtime.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
707 B
Referenced Files
None
Subscribers
None
runtime.h
View Options
#ifndef RUNTIME_H
#define RUNTIME_H
#include
"ant.h"
#include
<argtable3.h>
#define ANT_RUNTIME_CRYPTO_INIT (1u << 0)
#define ANT_RUNTIME_EXT_EVENT_LOOP (1u << 1)
#define CODE_ARENA_BLOCK_SIZE (64 * 1024)
struct
ant_runtime
{
struct
js
*
js
;
char
**
argv
;
jsval_t
ant_obj
;
int
argc
;
unsigned
int
flags
;
const
char
*
ls_fp
;
};
typedef
struct
code_block
{
struct
code_block
*
next
;
size_t
used
;
size_t
capacity
;
char
data
[];
}
code_block_t
;
extern
struct
ant_runtime
*
const
rt
;
struct
ant_runtime
*
ant_runtime_init
(
struct
js
*
js
,
int
argc
,
char
**
argv
,
struct
arg_file
*
ls_p
);
const
char
*
code_arena_alloc
(
const
char
*
code
,
size_t
len
);
void
code_arena_reset
(
void
);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Mar 27, 2:46 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
512217
Default Alt Text
runtime.h (707 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment