lookup global variable by name

This commit is contained in:
Yuichi Nishiwaki
2014-07-29 16:09:04 +09:00
parent c646c4e0ed
commit 38076e738e
6 changed files with 44 additions and 74 deletions
+1 -4
View File
@@ -88,10 +88,7 @@ typedef struct {
int sym_cnt;
int uniq_sym_cnt;
xhash global_tbl;
pic_value *globals;
size_t glen, gcapa;
xhash globals;
xhash macros;
pic_value lib_tbl;
-6
View File
@@ -26,8 +26,6 @@
/* #define PIC_RESCUE_SIZE 30 */
/* #define PIC_GLOBALS_SIZE 1024 */
/* #define PIC_SYM_POOL_SIZE 128 */
/* #define PIC_IREP_SIZE 8 */
@@ -93,10 +91,6 @@
# define PIC_RESCUE_SIZE 30
#endif
#ifndef PIC_GLOBALS_SIZE
# define PIC_GLOBALS_SIZE 1024
#endif
#ifndef PIC_SYM_POOL_SIZE
# define PIC_SYM_POOL_SIZE 128
#endif