xref: /minix3/usr.bin/indent/indent_codes.h (revision 97c7d358ea5970ca59196ed90e975115245f9e76)
1*97c7d358SVivek Prakash /*	$NetBSD: indent_codes.h,v 1.5 2003/08/07 11:14:08 agc Exp $	*/
2*97c7d358SVivek Prakash 
3*97c7d358SVivek Prakash /*
4*97c7d358SVivek Prakash  * Copyright (c) 1980, 1993
5*97c7d358SVivek Prakash  *	The Regents of the University of California.  All rights reserved.
6*97c7d358SVivek Prakash  *
7*97c7d358SVivek Prakash  * Redistribution and use in source and binary forms, with or without
8*97c7d358SVivek Prakash  * modification, are permitted provided that the following conditions
9*97c7d358SVivek Prakash  * are met:
10*97c7d358SVivek Prakash  * 1. Redistributions of source code must retain the above copyright
11*97c7d358SVivek Prakash  *    notice, this list of conditions and the following disclaimer.
12*97c7d358SVivek Prakash  * 2. Redistributions in binary form must reproduce the above copyright
13*97c7d358SVivek Prakash  *    notice, this list of conditions and the following disclaimer in the
14*97c7d358SVivek Prakash  *    documentation and/or other materials provided with the distribution.
15*97c7d358SVivek Prakash  * 3. Neither the name of the University nor the names of its contributors
16*97c7d358SVivek Prakash  *    may be used to endorse or promote products derived from this software
17*97c7d358SVivek Prakash  *    without specific prior written permission.
18*97c7d358SVivek Prakash  *
19*97c7d358SVivek Prakash  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
20*97c7d358SVivek Prakash  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21*97c7d358SVivek Prakash  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22*97c7d358SVivek Prakash  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23*97c7d358SVivek Prakash  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24*97c7d358SVivek Prakash  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25*97c7d358SVivek Prakash  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26*97c7d358SVivek Prakash  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27*97c7d358SVivek Prakash  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28*97c7d358SVivek Prakash  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29*97c7d358SVivek Prakash  * SUCH DAMAGE.
30*97c7d358SVivek Prakash  *
31*97c7d358SVivek Prakash  *	from: @(#)indent_codes.h	8.1 (Berkeley) 6/6/93
32*97c7d358SVivek Prakash  */
33*97c7d358SVivek Prakash 
34*97c7d358SVivek Prakash /*
35*97c7d358SVivek Prakash  * Copyright (c) 1985 Sun Microsystems, Inc.
36*97c7d358SVivek Prakash  * Copyright (c) 1976 Board of Trustees of the University of Illinois.
37*97c7d358SVivek Prakash  * All rights reserved.
38*97c7d358SVivek Prakash  *
39*97c7d358SVivek Prakash  * Redistribution and use in source and binary forms, with or without
40*97c7d358SVivek Prakash  * modification, are permitted provided that the following conditions
41*97c7d358SVivek Prakash  * are met:
42*97c7d358SVivek Prakash  * 1. Redistributions of source code must retain the above copyright
43*97c7d358SVivek Prakash  *    notice, this list of conditions and the following disclaimer.
44*97c7d358SVivek Prakash  * 2. Redistributions in binary form must reproduce the above copyright
45*97c7d358SVivek Prakash  *    notice, this list of conditions and the following disclaimer in the
46*97c7d358SVivek Prakash  *    documentation and/or other materials provided with the distribution.
47*97c7d358SVivek Prakash  * 3. All advertising materials mentioning features or use of this software
48*97c7d358SVivek Prakash  *    must display the following acknowledgement:
49*97c7d358SVivek Prakash  *	This product includes software developed by the University of
50*97c7d358SVivek Prakash  *	California, Berkeley and its contributors.
51*97c7d358SVivek Prakash  * 4. Neither the name of the University nor the names of its contributors
52*97c7d358SVivek Prakash  *    may be used to endorse or promote products derived from this software
53*97c7d358SVivek Prakash  *    without specific prior written permission.
54*97c7d358SVivek Prakash  *
55*97c7d358SVivek Prakash  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
56*97c7d358SVivek Prakash  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
57*97c7d358SVivek Prakash  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
58*97c7d358SVivek Prakash  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
59*97c7d358SVivek Prakash  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
60*97c7d358SVivek Prakash  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
61*97c7d358SVivek Prakash  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
62*97c7d358SVivek Prakash  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
63*97c7d358SVivek Prakash  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
64*97c7d358SVivek Prakash  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
65*97c7d358SVivek Prakash  * SUCH DAMAGE.
66*97c7d358SVivek Prakash  *
67*97c7d358SVivek Prakash  *	from: @(#)indent_codes.h	8.1 (Berkeley) 6/6/93
68*97c7d358SVivek Prakash  */
69*97c7d358SVivek Prakash 
70*97c7d358SVivek Prakash #define newline		1
71*97c7d358SVivek Prakash #define lparen		2
72*97c7d358SVivek Prakash #define rparen		3
73*97c7d358SVivek Prakash #define unary_op	4
74*97c7d358SVivek Prakash #define binary_op	5
75*97c7d358SVivek Prakash #define postop		6
76*97c7d358SVivek Prakash #define question	7
77*97c7d358SVivek Prakash #define casestmt	8
78*97c7d358SVivek Prakash #define colon		9
79*97c7d358SVivek Prakash #define semicolon	10
80*97c7d358SVivek Prakash #define lbrace		11
81*97c7d358SVivek Prakash #define rbrace		12
82*97c7d358SVivek Prakash #define ident		13
83*97c7d358SVivek Prakash #define comma		14
84*97c7d358SVivek Prakash #define comment		15
85*97c7d358SVivek Prakash #define swstmt		16
86*97c7d358SVivek Prakash #define preesc		17
87*97c7d358SVivek Prakash #define form_feed	18
88*97c7d358SVivek Prakash #define decl		19
89*97c7d358SVivek Prakash #define sp_paren	20
90*97c7d358SVivek Prakash #define sp_nparen	21
91*97c7d358SVivek Prakash #define ifstmt		22
92*97c7d358SVivek Prakash #define whilestmt	23
93*97c7d358SVivek Prakash #define forstmt		24
94*97c7d358SVivek Prakash #define stmt		25
95*97c7d358SVivek Prakash #define stmtl		26
96*97c7d358SVivek Prakash #define elselit		27
97*97c7d358SVivek Prakash #define dolit		28
98*97c7d358SVivek Prakash #define dohead		29
99*97c7d358SVivek Prakash #define ifhead		30
100*97c7d358SVivek Prakash #define elsehead	31
101*97c7d358SVivek Prakash #define period		32
102