chiark / gitweb /
Upgrade licence to GPLv3+.
[userv.git] / tokens.h.m4
1 dnl  userv - tokens.h.m4
2 dnl  token values, passed through m4 with defs from langauge.i4
3 /*  
4  * userv is
5  * Copyright 1996-2017 Ian Jackson <ian@davenant.greenend.org.uk>.
6  * Copyright 2000      Ben Harris <bjh21@cam.ac.uk>
7  * Copyright 2016-2017 Peter Benie <pjb1008@cam.ac.uk>
8  *
9  * This is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with userv; if not, see <http://www.gnu.org/licenses/>.
21  */
22
23 include(language.i4)
24
25 #ifndef TOKENS_H
26 #define TOKENS_H
27
28 enum tokens {
29   tokm_instance=           0x000000ff,
30   tokm_repres=             0x00000f00,
31   tokm_type=               0xfffff000,
32   tokr_nonstring=          0x00000100,
33   tokr_word=               0x00000200,
34   tokr_punct=              0x00000300,
35   tokr_string=             0x00000400,
36 undivert(4)
37 undivert(1)
38 undivert(2)
39 };
40
41 #endif
42
43 divert(-1)
44 undivert