diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-12-04 06:01:22 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-12-04 06:01:22 -0800 |
commit | a4d8692c9d23fed82f6f594ead826af83608f1c2 (patch) | |
tree | 610d817c1a8d830d769de209295858345fb389ec /parser.l | |
parent | c790707d517dbf4fa6a8b2695a35b3bc3b784556 (diff) | |
download | txr-a4d8692c9d23fed82f6f594ead826af83608f1c2.tar.gz txr-a4d8692c9d23fed82f6f594ead826af83608f1c2.tar.bz2 txr-a4d8692c9d23fed82f6f594ead826af83608f1c2.zip |
Large file support.
* stream.h (struct strm_ops): seek operation's second argument
is now just a val.
* stream.c (unimpl_seek, null_seek): Second argument is a val,
not cnum, to conform with function pointer in stream
structure.
(stdio_seek): Accept offset as val, which could be a fixnum
or bignum. Use new stdio_ftell and stdio_fseek functions
so large values work.
(seek_stream): No need to convert offset argument to cnum;
pass the val directly to seek virtual function.
* sysif.c (off_t_num, num_off_t, stdio_ftell,
stdio_fseek): New functions.
* sysif.h (OFF_T_MAX, OFF_T_MIN): New preprocessor symbols.
(off_t_num, num_off_t, stdio_ftell, stdio_fseek): Declared.
Diffstat (limited to 'parser.l')
0 files changed, 0 insertions, 0 deletions