CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2014/11/28 20:37:28
Modified files: usr.bin/mandoc : libmdoc.h mdoc_argv.c mdoc_macro.c Log message: Provide a helper function macro_or_word() and use it to prune the same chunk of argument parsing code out of five of the eight callback functions. The other three have too much special handling to participate. As a bonus, let lookup() and mdoc_args() deal with line macros and retire the lookup_raw() helper and the mdoc_zargs() internal interface function. No functional change, minus 40 lines of code.