From 0c6ffa3e7b427937f43c9151391b489789e60de0 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Tue, 9 Sep 2014 00:09:31 +0900 Subject: [PATCH] update benz (pic_open) --- extlib/benz | 2 +- src/main.c | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/extlib/benz b/extlib/benz index 4fd4e15c..2d805222 160000 --- a/extlib/benz +++ b/extlib/benz @@ -1 +1 @@ -Subproject commit 4fd4e15cc196a89e5ed5133896d7b8b9f4b2c10a +Subproject commit 2d80522230358a4f3f2a1cd1af56da16d0f612d0 diff --git a/src/main.c b/src/main.c index 9bd66a92..33eb7cf4 100644 --- a/src/main.c +++ b/src/main.c @@ -6,6 +6,9 @@ #include "picrin/pair.h" #include "picrin/error.h" +void pic_init_contrib(pic_state *); +void pic_load_piclib(pic_state *); + static pic_value pic_features(pic_state *pic) { @@ -34,9 +37,6 @@ pic_libraries(pic_state *pic) return libs; } -void pic_init_contrib(pic_state *); -void pic_load_piclib(pic_state *); - void pic_init_picrin(pic_state *pic) { @@ -55,11 +55,10 @@ pic_init_picrin(pic_state *pic) int main(int argc, char *argv[], char **envp) { - xFILE *stdio[3] = { xstdin, xstdout, xstderr }; pic_state *pic; int status = 0; - pic = pic_open(argc, argv, envp, stdio); + pic = pic_open(argc, argv, envp); pic_init_picrin(pic);