summaryrefslogtreecommitdiffstatshomepage
path: root/argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-12 10:31:53 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-12 10:31:53 +0000
commit569c276460dfd948ab28a199826274e234cf815c (patch)
tree8942f866e4ed15b8efe1fd826e2fab985a867c60 /argv.c
parent66dcb58e3397f627b870f3d66d6d1460bbb1b052 (diff)
downloadmandoc-569c276460dfd948ab28a199826274e234cf815c.tar.gz
mandoc-569c276460dfd948ab28a199826274e234cf815c.tar.zst
mandoc-569c276460dfd948ab28a199826274e234cf815c.zip
*** empty log message ***
Diffstat (limited to 'argv.c')
-rw-r--r--argv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/argv.c b/argv.c
index 9629ba6e..9e884777 100644
--- a/argv.c
+++ b/argv.c
@@ -1,4 +1,4 @@
-/* $Id: argv.c,v 1.10 2009/01/09 15:07:04 kristaps Exp $ */
+/* $Id: argv.c,v 1.11 2009/01/12 10:31:53 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -404,6 +404,9 @@ mdoc_argv(struct mdoc *mdoc, int line, int tok,
i = *pos;
argv = &buf[++(*pos)];
+ v->line = line;
+ v->pos = *pos;
+
while (buf[*pos] && ! isspace(buf[*pos]))
(*pos)++;