add mini-picrin

This commit is contained in:
Yuichi Nishiwaki
2017-04-14 23:58:02 +09:00
parent d99c460451
commit 342ed57507
12 changed files with 125 additions and 475 deletions
-1
View File
@@ -11,7 +11,6 @@
/** enable specific features */
/* #define PIC_USE_WRITE 1 */
/* #define PIC_USE_EVAL 1 */
/* #define PIC_USE_LIBRARY 1 */
/** essential external functions */
/* #define PIC_JMPBUF jmp_buf */
+2
View File
@@ -334,6 +334,8 @@ void pic_defvar(pic_state *, const char *name, pic_value v);
pic_value pic_funcall(pic_state *, const char *name, int n, ...);
pic_value pic_values(pic_state *, int n, ...);
pic_value pic_vvalues(pic_state *, int n, va_list);
pic_value pic_load(pic_state *, pic_value irep); /* TODO */
void pic_load_native(pic_state *pic, const char *); /* TODO */
/*
-14
View File
@@ -17,20 +17,6 @@ pic_value pic_fopen(pic_state *, FILE *, const char *mode);
pic_value pic_read(pic_state *, pic_value port);
pic_value pic_load(pic_state *, pic_value irep);
void pic_load_native(pic_state *pic, const char *);
/*
* library
*/
#if PIC_USE_LIBRARY
void pic_deflibrary(pic_state *, const char *lib);
void pic_in_library(pic_state *, const char *lib);
void pic_export(pic_state *, int n, ...);
#endif
/* for debug */
#if PIC_USE_WRITE
-4
View File
@@ -20,10 +20,6 @@
# define PIC_USE_EVAL 1
#endif
#ifndef PIC_USE_LIBRARY
# define PIC_USE_LIBRARY 1
#endif
#ifndef PIC_JMPBUF
# include <setjmp.h>
# define PIC_JMPBUF jmp_buf