diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-23 13:05:06 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-02-23 13:05:06 +0000 |
commit | 3d98b3a7124fecf33babb9857395ae9420f59772 (patch) | |
tree | 202eaf5a27612de68c5b0a7bb12c4f3c1661c490 /README.addmacro | |
parent | 04e65faa724cfa1cdd43042086fef4fc4631fa61 (diff) | |
download | mandoc-3d98b3a7124fecf33babb9857395ae9420f59772.tar.gz |
Added mdoclint.
`make regress' uses mdoclint
Diffstat (limited to 'README.addmacro')
-rw-r--r-- | README.addmacro | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/README.addmacro b/README.addmacro new file mode 100644 index 00000000..f60fe98e --- /dev/null +++ b/README.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. |