add pic_cstr

This commit is contained in:
Yuichi Nishiwaki
2017-05-10 00:49:15 +09:00
parent 0de045c79a
commit ee59df9300
11 changed files with 89 additions and 29 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ pic_system_getenvs(pic_state *pic)
;
key = pic_str_value(pic, *envp, i);
val = pic_cstr_value(pic, getenv(pic_str(pic, key, NULL)));
val = pic_cstr_value(pic, getenv(pic_cstr(pic, key, NULL)));
/* push */
data = pic_cons(pic, pic_cons(pic, key, val), data);