summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2001-10-25 12:48:13 +0000
committerSimon Tatham <anakin@pobox.com>2001-10-25 12:48:13 +0000
commit723d65d543161171f01ca6d28129bb70b7e6ec99 (patch)
tree5aabe49be42d4237cf440721a538c578ffbe1c39 /misc.c
parentb5d3d7e36e39743dcee33408d99d5c3d09609fa8 (diff)
downloadhalibut-723d65d543161171f01ca6d28129bb70b7e6ec99.zip
halibut-723d65d543161171f01ca6d28129bb70b7e6ec99.tar.gz
halibut-723d65d543161171f01ca6d28129bb70b7e6ec99.tar.bz2
halibut-723d65d543161171f01ca6d28129bb70b7e6ec99.tar.xz
Fixes to allow the text back end to wrap long headings. (These sound
like a typographical Bad Plan, but they work OK in some types of document such as a FAQ.) [originally from svn r1324]
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 7a1c59d..4243954 100644
--- a/misc.c
+++ b/misc.c
@@ -44,6 +44,9 @@ void *stk_pop(stack s) {
/*
* Small routines to amalgamate a string from an input source.
*/
+const rdstring empty_rdstring = {0, 0, NULL};
+const rdstringc empty_rdstringc = {0, 0, NULL};
+
void rdadd(rdstring *rs, wchar_t c) {
if (rs->pos >= rs->size-1) {
rs->size = rs->pos + 128;