summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2004-08-20 09:20:38 +0000
committerSimon Tatham <anakin@pobox.com>2004-08-20 09:20:38 +0000
commitf7ec9cb92caf8a57e144a4b3feb9c0f1f586feea (patch)
tree4beff9bbbb18cce41b96531171613ce1f4898176
parent5c0cedb48e1891127a6bc545560e62b2cbcb35f2 (diff)
downloadhalibut-f7ec9cb92caf8a57e144a4b3feb9c0f1f586feea.zip
halibut-f7ec9cb92caf8a57e144a4b3feb9c0f1f586feea.tar.gz
halibut-f7ec9cb92caf8a57e144a4b3feb9c0f1f586feea.tar.bz2
halibut-f7ec9cb92caf8a57e144a4b3feb9c0f1f586feea.tar.xz
Forgot to set a file position on characters being returned from
macro expansions. [originally from svn r4489]
-rw-r--r--input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/input.c b/input.c
index 365fec0..98a3034 100644
--- a/input.c
+++ b/input.c
@@ -103,6 +103,8 @@ static int get(input *in, filepos *pos, rdstringc *rsc) {
}
else if (in->stack) {
wchar_t c = in->stack->text[in->stack->ptr];
+ if (pos)
+ *pos = in->stack->pos;
if (in->stack->text[++in->stack->ptr] == L'\0') {
macrostack *tmp = in->stack;
in->stack = tmp->next;