summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2010-10-03 21:41:28 -0700
committerKaz Kylheku <kaz@kylheku.com>2010-10-03 21:41:28 -0700
commit20bec5ff6a3bfb4ffa7ae475f762a20ac42df41b (patch)
tree02929776a57ea839d6fbf487cb6275dc8db50296 /lib.h
parent85b8ba36fbf879f7dc8304340fb5187735b6cb37 (diff)
downloadtxr-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib.h b/lib.h
index 233e4a0a..f1022c67 100644
--- a/lib.h
+++ b/lib.h
@@ -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 {