Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4499202
runtime.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
661 B
Referenced Files
None
Subscribers
None
runtime.c
View Options
#include
<stdio.h>
#include
<stdlib.h>
#include
<runtime.h>
static
struct
ant_runtime
runtime
=
{
0
};
struct
ant_runtime
*
const
rt
=
&
runtime
;
struct
ant_runtime
*
ant_runtime_init
(
struct
js
*
js
,
int
argc
,
char
**
argv
,
struct
arg_file
*
ls_p
)
{
runtime
.
js
=
js
;
runtime
.
ant_obj
=
js_mkobj
(
js
);
runtime
.
flags
=
0
;
runtime
.
argc
=
argc
;
runtime
.
argv
=
argv
;
runtime
.
ls_fp
=
ls_p
->
count
>
0
?
ls_p
->
filename
[
0
]
:
NULL
;
js_set
(
js
,
js_glob
(
js
),
"Ant"
,
runtime
.
ant_obj
);
js_set
(
js
,
js_glob
(
js
),
"global"
,
js_glob
(
js
));
js_set
(
js
,
js_glob
(
js
),
"window"
,
js_glob
(
js
));
js_set
(
js
,
js_glob
(
js
),
"globalThis"
,
js_glob
(
js
));
return
&
runtime
;
}
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, May 3, 7:56 AM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
519476
Default Alt Text
runtime.c (661 B)
Attached To
Mode
rANT Ant
Attached
Detach File
Event Timeline
Log In to Comment