renamed symbols must be always greater than or equal to 0
This commit is contained in:
+4
-8
@@ -119,14 +119,10 @@ pic_import(pic_state *pic, pic_value spec)
|
||||
for (xh_begin(lib->exports, &it); ! xh_isend(&it); xh_next(&it)) {
|
||||
|
||||
#if DEBUG
|
||||
if (it.e->val >= 0) {
|
||||
printf("* importing %s as %s\n",
|
||||
pic_symbol_name(pic, (long)it.e->key),
|
||||
pic_symbol_name(pic, it.e->val));
|
||||
}
|
||||
else {
|
||||
printf("* importing %s\n", pic_symbol_name(pic, (long)it.e->key));
|
||||
}
|
||||
assert(it.e->val >= 0);
|
||||
printf("* importing %s as %s\n",
|
||||
pic_symbol_name(pic, (long)it.e->key),
|
||||
pic_symbol_name(pic, it.e->val));
|
||||
#endif
|
||||
|
||||
xh_put_int(pic->lib->senv->name, (long)it.e->key, it.e->val);
|
||||
|
||||
Reference in New Issue
Block a user