1
/* $Id: advance.h,v 1.2 2001/08/26 16:24:08 moniot Exp $
3
Declarations shared between advance.c and include.c
5
Copyright (c) 2001 by Robert K. Moniot.
7
Permission is hereby granted, free of charge, to any person
8
obtaining a copy of this software and associated documentation
9
files (the "Software"), to deal in the Software without
10
restriction, including without limitation the rights to use,
11
copy, modify, merge, publish, distribute, sublicense, and/or
12
sell copies of the Software, and to permit persons to whom the
13
Software is furnished to do so, subject to the following
16
The above copyright notice and this permission notice shall be
17
included in all copies or substantial portions of the
20
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
21
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
22
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
23
PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
24
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
26
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
27
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
Acknowledgement: the above permission notice is what is known
34
#define ADVANCE_SHARED
36
#define ADVANCE_SHARED extern
41
next_index, /* Index in line of next_char */
42
prev_comment_line, /* True if previous line was comment */
43
curr_comment_line, /* True if current line is comment */
44
noncomment_line_count, /* Number of noncomment lines read so far */
45
line_is_printed, /* True if line has been flushed (printed) */
46
prev_line_is_printed, /* True if line has been flushed (printed) */
47
sticky_EOF; /* Signal to delay EOF a bit for sake
48
of error messages in include files. */
51
prev_line_num; /* line number of previous input line */
54
LINENO_t prev_stmt_line_num; /* line number of previous noncomment */
59
lineA[MAXLINE+1],lineB[MAXLINE+1], /* Buffers holding input lines */
60
*prev_line,*line; /* Pointers to input buffers */