Commit Graph

76 Commits

Author SHA1 Message Date
Yuichi Nishiwaki ca068f560b clarify license information 2014-01-17 20:58:31 +09:00
Yuichi Nishiwaki 41dea6c5d2 split functions related to 'write' procedure into files 2014-01-16 21:31:46 +09:00
Yuichi Nishiwaki 73ad915fcf set 0 to file->flags by default 2014-01-16 21:00:45 +09:00
Yuichi Nishiwaki 8709ada140 replace fpos_t with long since old versions of clang and gcc seem claim
that fpos_t and long are not convertible
2014-01-16 20:13:13 +09:00
Yuichi Nishiwaki 31adf248af suppress warnings 2014-01-16 20:08:22 +09:00
Yuichi Nishiwaki 6f32cbdea3 handle end-of-file while reading file object 2014-01-16 19:56:45 +09:00
Yuichi Nishiwaki 74be43195d cosmetic fixes 2014-01-16 19:56:02 +09:00
Yuichi Nishiwaki 1b45536fe2 [bugfix] ungetc enters infinite loop 2014-01-16 19:54:19 +09:00
Yuichi Nishiwaki 44be26b36f want reader and writer to return the actual byte count, not item count 2014-01-16 19:53:46 +09:00
Yuichi Nishiwaki 2ff0a5061b wrong timing and offset for buffer shifting in reading 2014-01-16 19:52:42 +09:00
Yuichi Nishiwaki 9aef0cdac0 get rid of a small redundant code 2014-01-16 19:51:40 +09:00
Yuichi Nishiwaki f564626556 pic_fflush and pic_ffill should change cursor positions 2014-01-16 19:51:03 +09:00
Yuichi Nishiwaki a5f478a7d5 currently pic_file don't support _IONBF mode 2014-01-16 19:49:41 +09:00
Yuichi Nishiwaki 5ee9539e9b impl pic_ungetc 2014-01-16 18:42:25 +09:00
Yuichi Nishiwaki 4e495c6fcc [WIP] add a buffer for ungetc 2014-01-16 18:42:10 +09:00
Yuichi Nishiwaki 9897f7581f impl pic_fread with buffering 2014-01-16 18:41:10 +09:00
Yuichi Nishiwaki fc506674c0 add missing includes 2014-01-16 18:39:38 +09:00
Yuichi Nishiwaki ce21353d50 impl pic_fwrite with simple buffering 2014-01-16 18:39:03 +09:00
Yuichi Nishiwaki 14b73501c4 [bugfix] call setvbuf in pic_file constructor 2014-01-16 18:37:54 +09:00
Yuichi Nishiwaki 3d72464e80 impl pic_fflush 2014-01-16 18:36:59 +09:00
Yuichi Nishiwaki eca456f875 add IO buffering (setvbuf) 2014-01-16 18:36:47 +09:00
Yuichi Nishiwaki 4d0a448a44 impl char/string IO functions 2014-01-16 18:35:22 +09:00
Yuichi Nishiwaki f043fbb0a7 impl pic_fopen and pic_close. add FILE*-pic_file* adapter functions. 2014-01-16 18:34:04 +09:00
Yuichi Nishiwaki 392549b315 replace old stdio functions with picrin's wrapper impls 2014-01-16 18:32:05 +09:00
Yuichi Nishiwaki 63d23bdeda [WIP] add generic file object constructor (pic_funopen) 2014-01-16 18:27:05 +09:00
Yuichi Nishiwaki 9d54244424 match the order of functions with R7RS 2014-01-13 02:07:38 +09:00
Yuichi Nishiwaki 4a14531702 add write-char and flush-output-port 2014-01-13 02:06:09 +09:00
Yuichi Nishiwaki a232defd00 newline can take an optional argument 2014-01-13 01:47:46 +09:00
Yuichi Nishiwaki 19a561132e fix assert_port_profile to show clearer error message 2014-01-13 01:47:15 +09:00
Yuichi Nishiwaki ec9305e9a5 current write implementation in fact behaves as same as write-simple 2014-01-13 01:34:59 +09:00
Yuichi Nishiwaki 70f6b59856 add peek-char 2014-01-13 01:34:26 +09:00
Yuichi Nishiwaki 4a87120eb6 add read-char procedure 2014-01-13 00:51:30 +09:00
Yuichi Nishiwaki 1c14feffa4 add accessors of stdio ports 2014-01-13 00:51:19 +09:00
Yuichi Nishiwaki 4a7a32829d use the new feature of pic_get_args (port specifier) 2014-01-13 00:50:18 +09:00
Yuichi Nishiwaki d9911cabc8 publish pic_eof_object() 2014-01-13 00:49:25 +09:00
Yuichi Nishiwaki dbf73ecd7a refactor std ports 2014-01-13 00:02:58 +09:00
Yuichi Nishiwaki 0af0ecafb6 add standard io ports 2014-01-12 23:57:50 +09:00
Yuichi Nishiwaki a6fafd6422 add missing 'static' modifier 2014-01-12 16:15:04 +09:00
Yuichi Nishiwaki 9513ae6a7a [bugfix] wrong external representation for syntax type 2014-01-11 13:00:21 +09:00
Yuichi Nishiwaki a9f4eff13e add parameter primitives: (picrin parameter) library 2014-01-09 00:39:13 +09:00
Yuichi Nishiwaki 33cbf5ff6a configurable none value 2014-01-08 15:22:23 +09:00
OGINO Masanori ceffd8a3bd Cast to `void *` for '%p' format specifiers.
Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
2014-01-05 18:10:33 +09:00
Yuichi Nishiwaki 76f5cbf0b3 ENDLIBRARY requires a trailing semicolon 2013-12-10 07:26:43 -08:00
Yuichi Nishiwaki d23f686485 newline is not an element of (scheme write) 2013-12-10 05:59:03 -08:00
Yuichi Nishiwaki dda8ad367c split built-in functins into libraries 2013-12-07 23:17:28 -08:00
Yuichi Nishiwaki 931565d4ce add pic_lib 2013-12-07 03:58:18 -08:00
Yuichi Nishiwaki 7e69ae1878 add port-close procedure 2013-12-03 08:16:13 -08:00
Yuichi Nishiwaki bedc5dc6be revise output format of syntactic closure object 2013-11-27 15:56:29 +09:00
Yuichi Nishiwaki ab74920a6f add pic_sc (syntactic closure) structure 2013-11-27 15:04:02 +09:00
Yuichi Nishiwaki c59d8f601b add PIC_TT_SENV and PIC_TT_SYNTAX 2013-11-26 04:05:02 -08:00