xref: /freebsd/contrib/less/lmsg.h (revision 4523eebc6c1828d4fd41d7f1ab943cf079043bc8)
1 /*
2  * Copyright (C) 1984-2026  Mark Nudelman
3  *
4  * You may distribute under the terms of either the GNU General Public
5  * License or the Less License, as specified in the README file.
6  *
7  * For more information, see the README file.
8  */
9 
10 /*
11  * Define the LM_* symbols.
12  * */
13 #undef  M
14 #define M(sym,msg) LM_##sym,
15 typedef enum lessmsg_id {
16 	LM_NULL = 0,
17 #include "lessmsg.inc"
18 	LM_HELP
19 } lessmsg_id;
20 
21 /*
22  * Use LM(sym) to get the message string for the symbol LM_sym.
23  */
24 #define LM(sym)  lmsg(LM_##sym)
25