summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-02-02 19:50:07 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-02-02 19:50:07 -0800
commitfe917350c75980d68cd435554fbdca149aeaf323 (patch)
treef57825ebfa428b197057609c2e2268535d9e41ac /share
parent0be51ece438ea98a7b4f27f3f75b5ffc90fd6663 (diff)
downloadtxr-fe917350c75980d68cd435554fbdca149aeaf323.tar.gz
txr-fe917350c75980d68cd435554fbdca149aeaf323.tar.bz2
txr-fe917350c75980d68cd435554fbdca149aeaf323.zip
lib: code review of get_special_slot uses.
* lib.c (seq_info): Streamline code. Initialize ret.kind to SEQ_NOTSEQ to avoid repeating that in multiple else clauses. Make sure that if the nullify method returns nil, we also return in that case, and don't call get_special_slot on nil. (rplaca, rplacd): Change the default case to COBJ, so that the obj_struct_p inline can be used instead of structp. Put the default: label on the error case which the struct check falls through to; NIL now goes there. (sub): Use obj_struct_p, not structp, in a case where we already know we have a COBJ.
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions