summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-02-26 22:42:09 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-02-26 22:42:09 -0800
commit4f14d3a2ded6137c5dd6449f4ec2d566947c4157 (patch)
tree549a19452aa66c2b60b1529333b82007ed3127ca /Makefile
parent875c0c2d16fbcaa61bfc46da58533ab0890bf513 (diff)
downloadtxr-4f14d3a2ded6137c5dd6449f4ec2d566947c4157.tar.gz
txr-4f14d3a2ded6137c5dd6449f4ec2d566947c4157.tar.bz2
txr-4f14d3a2ded6137c5dd6449f4ec2d566947c4157.zip
Place C standard I/O based streams into subtype.
* lib.c (subtypep): Handle subtype check here between stream and stdio-stream as a special case, since streams aren't structures related by inheritance, but built-ins. (class_check): If the type of obj doesn't match the class exactly, use a subtypep check. We need this because stream functions use this check, and stdio streams are not of the stream type now. * stream.c (stdio_stream_s): New global symbol variable. (make_stdio_stream_common): Use stdio_stream_s symbol for the type of stdio streams. (stream_init): Intern the stdio-stream symbol, and store in stdio_stream_s variable. (streamp): Replace exact check with typep. * stream.h (stdio_stream_s): Declared.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions