aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/argv.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-01-20 13:44:05 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-01-20 13:44:05 +0000
commitf0efcfb7750a1c0ab3108c5a759de5c050166035 (patch)
tree42c4f3dfff406eb906a633e4b8588959e74dd9ae /argv.c
parentd7fbb7d096f24634fd2aa0c5146e6fbf55acb09e (diff)
downloadmandoc-f0efcfb7750a1c0ab3108c5a759de5c050166035.tar.gz
mandoc-f0efcfb7750a1c0ab3108c5a759de5c050166035.tar.zst
mandoc-f0efcfb7750a1c0ab3108c5a759de5c050166035.zip
Re-merged old port-building routines.
Diffstat (limited to 'argv.c')
-rw-r--r--argv.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/argv.c b/argv.c
index 40a4d12f..b7b4f8e0 100644
--- a/argv.c
+++ b/argv.c
@@ -1,4 +1,4 @@
-/* $Id: argv.c,v 1.19 2009/01/20 13:05:28 kristaps Exp $ */
+/* $Id: argv.c,v 1.20 2009/01/20 13:44:05 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -25,9 +25,14 @@
#include "private.h"
+/*
+ * Parse arguments and parameters of macros. Arguments follow the
+ * syntax of `-arg [val [valN...]]', while parameters are free-form text
+ * following arguments (if any). This file must correctly handle the
+ * strange punctuation rules dictated by groff.
+ */
+
/* FIXME: .It called with -column and quoted arguments. */
-/* FIXME: if arguments are quoted, they should not be later parsed for
- * macros. */
static int lookup(int, const char *);
static int parse(struct mdoc *, int,