[WIP] add a buffer for ungetc

This commit is contained in:
Yuichi Nishiwaki
2014-01-16 18:42:10 +09:00
parent 9897f7581f
commit 4e495c6fcc
2 changed files with 10 additions and 0 deletions
+2
View File
@@ -94,6 +94,8 @@ pic_funopen(void *cookie,
file->buf = NULL;
file->mode = _IONBF;
file->bufsiz = 0;
file->us = PIC_UBUFSIZ;
file->ur = 0;
/* set vtable */
file->vtable.cookie = cookie;
file->vtable.read = read;