Yuichi Nishiwaki
|
114e445901
|
get rid of doubled semicolons
|
2014-07-13 11:07:42 +09:00 |
Yuichi Nishiwaki
|
05309a1d38
|
don't use pic_defvar
|
2014-07-13 11:07:42 +09:00 |
Sunrim KIM (keen)
|
8d9b7e9bf3
|
ensure flush contents into the port made in `open-input-bytevector`
|
2014-06-29 13:46:46 +09:00 |
Yuichi Nishiwaki
|
b646948e9b
|
allocate buffer in +1 size
|
2014-06-25 17:22:15 +09:00 |
Yuichi Nishiwaki
|
0e66144a4d
|
add pic_open_input_string
|
2014-06-25 15:39:40 +09:00 |
Sunrim KIM (keen)
|
6ccfa7ad69
|
some bug fixes
|
2014-05-29 03:58:04 +09:00 |
Sunrim KIM (keen)
|
c8de0ad4ce
|
fix misaligned assertion
|
2014-05-29 01:10:59 +09:00 |
Sunrim KIM (keen)
|
fc6a919914
|
fix errer message of `u8-ready?`
|
2014-05-29 01:04:37 +09:00 |
Sunrim KIM (keen)
|
a73a92cfdb
|
make `read-bytevector(!)` efficint, export `u8-ready?`.
|
2014-05-26 04:08:39 +09:00 |
Sunrim KIM (keen)
|
cffaccf8ef
|
implement the rest procedures of `input` but `u8-ready?` is incomlete like `char-ready?`
|
2014-05-26 03:21:26 +09:00 |
Yuichi Nishiwaki
|
8586dc9057
|
xrope is now the internal representation of pic_str
|
2014-02-27 21:54:37 +09:00 |
Yuichi Nishiwaki
|
bb93a8be14
|
catch up to XFILE changes
|
2014-02-25 21:07:32 +09:00 |
Yuichi Nishiwaki
|
0fa61b6a4a
|
change pic_get_args API. 'z' now returns a pointer to null terminated
cstr, 's' a pointer to pic_str
|
2014-02-23 11:52:15 +09:00 |
Yuichi Nishiwaki
|
56f5f4a1f5
|
move sturct definitions for basic types to type-specific headers respectively
|
2014-02-22 15:21:55 +09:00 |
Yuichi Nishiwaki
|
d5e27e0949
|
add char-ready?
|
2014-02-18 19:20:29 +09:00 |
Yuichi Nishiwaki
|
cc97f857e1
|
add read-line
|
2014-02-18 18:56:14 +09:00 |
Yuichi Nishiwaki
|
c42090f0b7
|
cleanup
|
2014-02-18 04:40:19 +09:00 |
Yuichi Nishiwaki
|
34c10b0054
|
unify includes of stdio and assert
|
2014-02-11 23:25:25 +09:00 |
Yuichi Nishiwaki
|
fc7b59100d
|
add some user functions to manipulate ports
|
2014-02-11 13:45:41 +09:00 |
Yuichi Nishiwaki
|
687706eaee
|
fix error message
|
2014-02-09 14:29:51 +09:00 |
Yuichi Nishiwaki
|
241012d2f9
|
add output-bytevector
|
2014-02-09 14:29:28 +09:00 |
Yuichi Nishiwaki
|
7187e4e982
|
add open-input-bytevector
|
2014-02-09 02:41:52 +09:00 |
Yuichi Nishiwaki
|
3d0657074f
|
first argument of get-output-string is optinoal
|
2014-02-09 02:41:20 +09:00 |
Yuichi Nishiwaki
|
a666951f21
|
add open-output-string and get-output-string
|
2014-02-09 01:49:55 +09:00 |
Yuichi Nishiwaki
|
0e464b2f75
|
[bugfix] write-string doesn't detect given port
|
2014-02-09 01:21:44 +09:00 |
Yuichi Nishiwaki
|
8d067f66ed
|
add open-input-string
|
2014-02-08 23:23:53 +09:00 |
Yuichi Nishiwaki
|
dd0ed6bfea
|
add write-string/write-u8/write-bytevector
|
2014-02-08 17:31:54 +09:00 |
Yuichi Nishiwaki
|
ae85bbf60e
|
refactor std port
|
2014-02-02 11:23:23 +09:00 |
Yuichi Nishiwaki
|
b19631f18f
|
use submodule
|
2014-02-01 22:16:09 +09:00 |
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 |