revert pic_open API
This commit is contained in:
parent
4fd4e15cc1
commit
2d80522230
|
@ -134,7 +134,7 @@ void pic_gc_arena_restore(pic_state *, size_t);
|
||||||
pic_gc_arena_restore(pic, ai); \
|
pic_gc_arena_restore(pic, ai); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
pic_state *pic_open(int argc, char *argv[], char **envp, xFILE *stdio[3]);
|
pic_state *pic_open(int argc, char *argv[], char **envp);
|
||||||
void pic_close(pic_state *);
|
void pic_close(pic_state *);
|
||||||
|
|
||||||
void pic_define(pic_state *, const char *, pic_value); /* automatic export */
|
void pic_define(pic_state *, const char *, pic_value); /* automatic export */
|
||||||
|
|
8
state.c
8
state.c
|
@ -16,7 +16,7 @@
|
||||||
void pic_init_core(pic_state *);
|
void pic_init_core(pic_state *);
|
||||||
|
|
||||||
pic_state *
|
pic_state *
|
||||||
pic_open(int argc, char *argv[], char **envp, xFILE *stdio[3])
|
pic_open(int argc, char *argv[], char **envp)
|
||||||
{
|
{
|
||||||
struct pic_port *pic_port_make_stdport(pic_state *, xFILE *, short);
|
struct pic_port *pic_port_make_stdport(pic_state *, xFILE *, short);
|
||||||
char t;
|
char t;
|
||||||
|
@ -156,9 +156,9 @@ pic_open(int argc, char *argv[], char **envp, xFILE *stdio[3])
|
||||||
pic->lib = pic->PICRIN_USER;
|
pic->lib = pic->PICRIN_USER;
|
||||||
|
|
||||||
/* standard I/O */
|
/* standard I/O */
|
||||||
pic->xSTDIN = pic_port_make_stdport(pic, stdio[0], PIC_PORT_IN);
|
pic->xSTDIN = pic_port_make_stdport(pic, xstdin, PIC_PORT_IN);
|
||||||
pic->xSTDOUT = pic_port_make_stdport(pic, stdio[1], PIC_PORT_OUT);
|
pic->xSTDOUT = pic_port_make_stdport(pic, xstdout, PIC_PORT_OUT);
|
||||||
pic->xSTDERR = pic_port_make_stdport(pic, stdio[2], PIC_PORT_OUT);
|
pic->xSTDERR = pic_port_make_stdport(pic, xstderr, PIC_PORT_OUT);
|
||||||
|
|
||||||
pic_init_core(pic);
|
pic_init_core(pic);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue