Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4449355
runtime.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
798 B
Referenced Files
None
Subscribers
None
runtime.h
View Options
#ifndef RUNTIME_H
#define RUNTIME_H
#include
"types.h"
struct
arg_file
;
#define ANT_RUNTIME_CRYPTO_INIT (1u << 0)
#define CODE_ARENA_BLOCK_SIZE (64 * 1024)
struct
ant_runtime
{
ant_t
*
js
;
char
**
argv
;
ant_value_t
ant_obj
;
int
argc
;
int
pid
;
unsigned
int
flags
;
const
char
*
ls_fp
;
};
typedef
struct
{
void
*
block
;
size_t
used
;
}
code_arena_mark_t
;
extern
struct
ant_runtime
*
const
rt
;
struct
ant_runtime
*
ant_runtime_init
(
ant_t
*
js
,
int
argc
,
char
**
argv
,
struct
arg_file
*
ls_p
);
size_t
code_arena_get_memory
(
void
);
const
char
*
code_arena_alloc
(
const
char
*
code
,
size_t
len
);
code_arena_mark_t
code_arena_mark
(
void
);
void
code_arena_rewind
(
code_arena_mark_t
mark
);
void
code_arena_reset
(
void
);
void
destroy_runtime
(
ant_t
*
js
);
void
*
code_arena_bump
(
size_t
size
);
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sat, May 2, 12:12 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
528901
Default Alt Text
runtime.h (798 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment