diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-09-09 23:40:23 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-09-09 23:40:23 -0700 |
commit | ffe675fea6aabfe3428ebec8ff17863aeec98e5e (patch) | |
tree | 44e246982a95aeea768213a0e949be530773d8c6 /stdlib | |
parent | 963e1ea9685f0c28a70635f2ef6450f8a4d1c7c6 (diff) | |
download | txr-ffe675fea6aabfe3428ebec8ff17863aeec98e5e.tar.gz txr-ffe675fea6aabfe3428ebec8ff17863aeec98e5e.tar.bz2 txr-ffe675fea6aabfe3428ebec8ff17863aeec98e5e.zip |
oop: remove repeated code in slot lookup.
* struct.c (lookup_slot): Do not repeat the slot lookup logic
for the case when the symbol's slot_cache must be boostrapped,
which only happens exactly once in the life of a symbol. Just
allocate the cache if necessary and fall through to the
have-cache case.
Diffstat (limited to 'stdlib')
0 files changed, 0 insertions, 0 deletions