~ubuntu-branches/ubuntu/edgy/ftnchek/edgy

« back to all changes in this revision

Viewing changes to advance.h

  • Committer: Bazaar Package Importer
  • Author(s): Mark Brown
  • Date: 2002-03-28 10:49:50 UTC
  • Revision ID: james.westby@ubuntu.com-20020328104950-kssfxlf8u0qsfelr
Tags: upstream-3.1.2
ImportĀ upstreamĀ versionĀ 3.1.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: advance.h,v 1.2 2001/08/26 16:24:08 moniot Exp $
 
2
 
 
3
   Declarations shared between advance.c and include.c
 
4
 
 
5
Copyright (c) 2001 by Robert K. Moniot.
 
6
 
 
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
 
14
conditions:
 
15
 
 
16
The above copyright notice and this permission notice shall be
 
17
included in all copies or substantial portions of the
 
18
Software.
 
19
 
 
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.
 
28
 
 
29
Acknowledgement: the above permission notice is what is known
 
30
as the "MIT License."
 
31
 */
 
32
 
 
33
#ifdef ADVANCE
 
34
#define ADVANCE_SHARED
 
35
#else
 
36
#define ADVANCE_SHARED extern
 
37
#endif
 
38
 
 
39
ADVANCE_SHARED
 
40
int
 
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. */
 
49
ADVANCE_SHARED
 
50
LINENO_t
 
51
        prev_line_num;          /* line number of previous input line */
 
52
 
 
53
ADVANCE_SHARED
 
54
LINENO_t prev_stmt_line_num;    /* line number of previous noncomment */
 
55
 
 
56
 
 
57
ADVANCE_SHARED
 
58
char
 
59
        lineA[MAXLINE+1],lineB[MAXLINE+1],  /* Buffers holding input lines */
 
60
        *prev_line,*line;                   /* Pointers to input buffers */