From 04e65faa724cfa1cdd43042086fef4fc4631fa61 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 23 Feb 2009 12:45:19 +0000 Subject: More in-file documentation and Linux-isation. Moved mdoc_macros table definition into macro.c, where it belongs. --- READE.addmacro | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 READE.addmacro (limited to 'READE.addmacro') diff --git a/READE.addmacro b/READE.addmacro new file mode 100644 index 00000000..f60fe98e --- /dev/null +++ b/READE.addmacro @@ -0,0 +1,21 @@ +$Id$ + +This documents how to go about adding a macro to mdoc.3. + +(1) Add the macro to the #define list in mdoc.h. +(2) Add the macro to __mdoc_macronames in mdoc.c. +(3) Add the macro to __mdoc_macros in mdoc.c. +(4) Add the macro to mdoc_valids in validate.c. +(5) Add the macro to mdoc_actions in action.c. +(6) Add the macro to mdoc_argflags in argv.c. +(7) Modify the hash routine in hash.c (may not be required). + +If the macro has arguments: + +(1) Add arguments to the #define list in mdoc.h. +(2) Add the arguments to __mdoc_argnames in mdoc.c. +(3) Modify parts of argv.c (lookup() and mdoc_args()). + +You'll certainly want to change the front-ends: + +(1) Add the macro to __termacts in term.c. -- cgit