Start development on 386BSD 0.0
[unix-history] / .ref-BSD-4_3_Net_2 / usr / src / usr.bin / gas / read.h
CommitLineData
515eb9d8
C
1/* read.h - of read.c
2 Copyright (C) 1986 Free Software Foundation, Inc.
3
4This file is part of GAS, the GNU Assembler.
5
6GAS is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 1, or (at your option)
9any later version.
10
11GAS is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GAS; see the file COPYING. If not, write to
18the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19
20extern char * input_line_pointer; /* -> char we are parsing now. */
21
22#define PERMIT_WHITESPACE /* Define to make whitespace be allowed in */
23 /* many syntactically unnecessary places. */
24 /* Normally undefined. For compatibility */
25 /* with ancient GNU cc. */
26#undef PERMIT_WHITESPACE
27
28#ifdef PERMIT_WHITESPACE
29#define SKIP_WHITESPACE() {if (* input_line_pointer == ' ') ++ input_line_pointer;}
30#else
31#define SKIP_WHITESPACE() ASSERT( * input_line_pointer != ' ' )
32#endif
33
34
35#define LEX_NAME (1) /* may continue a name */
36#define LEX_BEGIN_NAME (2) /* may begin a name */
37
38#define is_name_beginner(c) ( lex_type[c] & LEX_BEGIN_NAME )
39#define is_part_of_name(c) ( lex_type[c] & LEX_NAME )
40
41extern const char lex_type[];
42
43void read_begin();
44void read_end();
45void read_a_source_file();
46
47/* end: read.h */