revert pic_open API

This commit is contained in:
Yuichi Nishiwaki 2014-09-09 00:08:15 +09:00
parent 4fd4e15cc1
commit 2d80522230
2 changed files with 5 additions and 5 deletions

View File

@ -134,7 +134,7 @@ void pic_gc_arena_restore(pic_state *, size_t);
pic_gc_arena_restore(pic, ai); \
} 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_define(pic_state *, const char *, pic_value); /* automatic export */

View File

@ -16,7 +16,7 @@
void pic_init_core(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);
char t;
@ -156,9 +156,9 @@ pic_open(int argc, char *argv[], char **envp, xFILE *stdio[3])
pic->lib = pic->PICRIN_USER;
/* standard I/O */
pic->xSTDIN = pic_port_make_stdport(pic, stdio[0], PIC_PORT_IN);
pic->xSTDOUT = pic_port_make_stdport(pic, stdio[1], PIC_PORT_OUT);
pic->xSTDERR = pic_port_make_stdport(pic, stdio[2], PIC_PORT_OUT);
pic->xSTDIN = pic_port_make_stdport(pic, xstdin, PIC_PORT_IN);
pic->xSTDOUT = pic_port_make_stdport(pic, xstdout, PIC_PORT_OUT);
pic->xSTDERR = pic_port_make_stdport(pic, xstderr, PIC_PORT_OUT);
pic_init_core(pic);