CVSROOT: /cvs Module name: src Changes by: schwa...@cvs.openbsd.org 2010/11/25 15:23:31
Modified files: usr.bin/mandoc : main.c roff.c roff.h Log message: Implement the .de (define macro) roff instruction. This fixes various Xenocara manuals. Do not define your own macros in new manuals, though: this code exists purely to cope with existing and old stuff. Like in both traditional and GNU roff, the .de and .ds (define string) roff instructions share the same string table, so one can abuse strings as macros and vice versa. This implementation supports multi-line user-defined macros and user-defined macros taking up to 9 arguments. Project started near the end of p2k10, now mature for production, but there is still room for future improvements in various respects.