diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2010-10-03 21:41:28 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2010-10-03 21:41:28 -0700 |
commit | 20bec5ff6a3bfb4ffa7ae475f762a20ac42df41b (patch) | |
tree | 02929776a57ea839d6fbf487cb6275dc8db50296 /lib.h | |
parent | 85b8ba36fbf879f7dc8304340fb5187735b6cb37 (diff) | |
download | txr-20bec5ff6a3bfb4ffa7ae475f762a20ac42df41b.tar.gz txr-20bec5ff6a3bfb4ffa7ae475f762a20ac42df41b.tar.bz2 txr-20bec5ff6a3bfb4ffa7ae475f762a20ac42df41b.zip |
* lib.h (lazy_string): Fix incorrect comment.
* lib.c (split_str, split_str_set): It is necessary to protect input
parameters against GC, because we cache their internal pointers,
after which we no longer refer to the objects themselves. Moreover,
we perform object allocation, and then keep using the internal
pointers.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -137,7 +137,7 @@ struct lazy_string { type_t type; val prefix; /* actual string part */ val list; /* remaining list */ - val opts; /* ( limit . sepstring ) */ + val opts; /* ( separator . limit ) */ }; struct cobj { |