aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-21 09:42:07 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-21 09:42:07 +0000
commit2675acb4389a4c9620cc37de681a6677cbb850c8 (patch)
treeaeab8b730fc954766854e5eb5fd9c55ea9e95c23
parentaa181d8c031d593d0001069e0b7d6b946ceb07fe (diff)
downloadmandoc-2675acb4389a4c9620cc37de681a6677cbb850c8.tar.gz
mandoc-2675acb4389a4c9620cc37de681a6677cbb850c8.tar.zst
mandoc-2675acb4389a4c9620cc37de681a6677cbb850c8.zip
Added %Q macro.
-rw-r--r--action.c3
-rw-r--r--argv.c3
-rw-r--r--macro.c3
-rw-r--r--mdoc.c5
-rw-r--r--mdoc.h5
-rw-r--r--term.c3
-rw-r--r--validate.c3
7 files changed, 16 insertions, 9 deletions
diff --git a/action.c b/action.c
index 122f861b..a1a99e20 100644
--- a/action.c
+++ b/action.c
@@ -1,4 +1,4 @@
-/* $Id: action.c,v 1.46 2009/03/20 19:56:25 kristaps Exp $ */
+/* $Id: action.c,v 1.47 2009/03/21 09:42:07 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -191,6 +191,7 @@ const struct actions mdoc_actions[MDOC_MAX] = {
{ NULL, NULL }, /* Es */
{ NULL, NULL }, /* En */
{ NULL, NULL }, /* Dx */
+ { NULL, NULL }, /* %Q */
};
diff --git a/argv.c b/argv.c
index c0b8e65a..7aa6a029 100644
--- a/argv.c
+++ b/argv.c
@@ -1,4 +1,4 @@
-/* $Id: argv.c,v 1.53 2009/03/16 23:37:28 kristaps Exp $ */
+/* $Id: argv.c,v 1.54 2009/03/21 09:42:07 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -223,6 +223,7 @@ static int mdoc_argflags[MDOC_MAX] = {
0, /* Es */
0, /* En */
0, /* Dx */
+ ARGS_QUOTED, /* %Q */
};
diff --git a/macro.c b/macro.c
index 0c0259f9..9549004d 100644
--- a/macro.c
+++ b/macro.c
@@ -1,4 +1,4 @@
-/* $Id: macro.c,v 1.75 2009/03/21 09:30:52 kristaps Exp $ */
+/* $Id: macro.c,v 1.76 2009/03/21 09:42:07 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -198,6 +198,7 @@ const struct mdoc_macro __mdoc_macros[MDOC_MAX] = {
{ obsolete, 0 }, /* Es */
{ obsolete, 0 }, /* En */
{ in_line_argn, MDOC_CALLABLE | MDOC_PARSED }, /* Dx */
+ { in_line_eoln, 0 }, /* %Q */
};
const struct mdoc_macro * const mdoc_macros = __mdoc_macros;
diff --git a/mdoc.c b/mdoc.c
index dc4c39fb..8603fc15 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.68 2009/03/20 15:14:01 kristaps Exp $ */
+/* $Id: mdoc.c,v 1.69 2009/03/21 09:42:07 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -75,7 +75,8 @@ const char *const __mdoc_macronames[MDOC_MAX] = {
"Lp", "Lk", "Mt", "Brq",
/* LINTED */
"Bro", "Brc", "\%C", "Es",
- "En", "Dx"
+ /* LINTED */
+ "En", "Dx", "\%Q"
};
const char *const __mdoc_argnames[MDOC_ARG_MAX] = {
diff --git a/mdoc.h b/mdoc.h
index 92643120..44dac27e 100644
--- a/mdoc.h
+++ b/mdoc.h
@@ -1,4 +1,4 @@
-/* $Id: mdoc.h,v 1.50 2009/03/19 11:49:00 kristaps Exp $ */
+/* $Id: mdoc.h,v 1.51 2009/03/21 09:42:07 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -149,7 +149,8 @@
#define MDOC_Es 115
#define MDOC_En 116
#define MDOC_Dx 117
-#define MDOC_MAX 118
+#define MDOC__Q 118
+#define MDOC_MAX 119
/* What follows is a list of ALL possible macro arguments. */
diff --git a/term.c b/term.c
index 7b9a3df1..68f65b7d 100644
--- a/term.c
+++ b/term.c
@@ -1,4 +1,4 @@
-/* $Id: term.c,v 1.63 2009/03/20 16:43:28 kristaps Exp $ */
+/* $Id: term.c,v 1.64 2009/03/21 09:42:07 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -300,6 +300,7 @@ const struct termact __termacts[MDOC_MAX] = {
{ NULL, NULL }, /* Es */
{ NULL, NULL }, /* En */
{ termp_dx_pre, NULL }, /* Dx */
+ { NULL, NULL }, /* %Q */
};
const struct termact *termacts = __termacts;
diff --git a/validate.c b/validate.c
index b22b203c..baeee06a 100644
--- a/validate.c
+++ b/validate.c
@@ -1,4 +1,4 @@
-/* $Id: validate.c,v 1.86 2009/03/20 15:14:01 kristaps Exp $ */
+/* $Id: validate.c,v 1.87 2009/03/21 09:42:07 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -315,6 +315,7 @@ const struct valids mdoc_valids[MDOC_MAX] = {
{ NULL, NULL }, /* Es */
{ NULL, NULL }, /* En */
{ NULL, NULL }, /* Dx */
+ { NULL, posts_text }, /* %Q */
};