update benz (pic_open)
This commit is contained in:
parent
230c87d455
commit
0c6ffa3e7b
|
@ -1 +1 @@
|
||||||
Subproject commit 4fd4e15cc196a89e5ed5133896d7b8b9f4b2c10a
|
Subproject commit 2d80522230358a4f3f2a1cd1af56da16d0f612d0
|
|
@ -6,6 +6,9 @@
|
||||||
#include "picrin/pair.h"
|
#include "picrin/pair.h"
|
||||||
#include "picrin/error.h"
|
#include "picrin/error.h"
|
||||||
|
|
||||||
|
void pic_init_contrib(pic_state *);
|
||||||
|
void pic_load_piclib(pic_state *);
|
||||||
|
|
||||||
static pic_value
|
static pic_value
|
||||||
pic_features(pic_state *pic)
|
pic_features(pic_state *pic)
|
||||||
{
|
{
|
||||||
|
@ -34,9 +37,6 @@ pic_libraries(pic_state *pic)
|
||||||
return libs;
|
return libs;
|
||||||
}
|
}
|
||||||
|
|
||||||
void pic_init_contrib(pic_state *);
|
|
||||||
void pic_load_piclib(pic_state *);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
pic_init_picrin(pic_state *pic)
|
pic_init_picrin(pic_state *pic)
|
||||||
{
|
{
|
||||||
|
@ -55,11 +55,10 @@ pic_init_picrin(pic_state *pic)
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[], char **envp)
|
main(int argc, char *argv[], char **envp)
|
||||||
{
|
{
|
||||||
xFILE *stdio[3] = { xstdin, xstdout, xstderr };
|
|
||||||
pic_state *pic;
|
pic_state *pic;
|
||||||
int status = 0;
|
int status = 0;
|
||||||
|
|
||||||
pic = pic_open(argc, argv, envp, stdio);
|
pic = pic_open(argc, argv, envp);
|
||||||
|
|
||||||
pic_init_picrin(pic);
|
pic_init_picrin(pic);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue