Hi,

r...@firemail.cc wrote on Mon, Jul 18, 2016 at 08:25:47PM +0300:

> does anyone know why #defines are used instead of enums here in
> src/usr.bin/mandoc/man.h?
> 
> #define MAN_br   0
> #define MAN_TH   1
> #define MAN_SH   2
[...]

Of course, that is well-known and even explained in the commit logs:

  http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/mandoc/man.h#rev1.51

If you have a better idea how to make these enums without having
to define all the macros for both mdoc(7) and man(7) in roff.h
and without having to give up the feature that the same member
roff_node.tok can be used for both macrosets, that would be welcome.

Yours,
  Ingo

Reply via email to