-/* $OpenBSD: roff.h,v 1.56 2020/04/08 11:54:14 schwarze Exp $ */
+/* $OpenBSD: roff.h,v 1.57 2022/04/30 15:08:56 schwarze Exp $ */
/*
- * Copyright (c) 2013-2015, 2017-2020 Ingo Schwarze <schwarze@openbsd.org>
+ * Copyright (c) 2013-2015,2017-2020,2022 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
* Permission to use, copy, modify, and distribute this software for any
};
enum roff_tok {
- ROFF_br = 0,
+ ROFF_br = 0, /* Beginning of roff(7) requests. */
ROFF_ce,
ROFF_fi,
ROFF_ft,
ROFF_sp,
ROFF_ta,
ROFF_ti,
- ROFF_MAX,
- ROFF_ab,
+ ROFF_MAX, /* End of requests that generate nodes. */
+ ROFF_ab, /* Requests only used during preprocessing. */
ROFF_ad,
ROFF_af,
ROFF_aln,
ROFF_writec,
ROFF_writem,
ROFF_xflag,
- ROFF_cblock,
- ROFF_RENAMED,
- ROFF_USERDEF,
- TOKEN_NONE,
- MDOC_Dd,
+ ROFF_cblock, /* Block end marker "..". */
+ ROFF_RENAMED, /* New name of a renamed request or macro. */
+ ROFF_USERDEF, /* User defined macro. */
+ TOKEN_NONE, /* Undefined macro or text/tbl/eqn/comment node. */
+ MDOC_Dd, /* Beginning of mdoc(7) macros. */
MDOC_Dt,
MDOC_Os,
MDOC_Sh,
MDOC__U,
MDOC_Ta,
MDOC_Tg,
- MDOC_MAX,
- MAN_TH,
+ MDOC_MAX, /* End of mdoc(7) macros. */
+ MAN_TH, /* Beginning of man(7) macros. */
MAN_SH,
MAN_SS,
MAN_TP,
MAN_UE,
MAN_MT,
MAN_ME,
- MAN_MAX
+ MAN_MAX /* End of man(7) macros. */
};
/*