1993-06-29 09:51:23 +00:00
|
|
|
/* read.h - of read.c
|
|
|
|
|
1993-11-03 00:56:24 +00:00
|
|
|
Copyright (C) 1986, 1990, 1992 Free Software Foundation, Inc.
|
1995-05-30 05:05:38 +00:00
|
|
|
|
1993-11-03 00:56:24 +00:00
|
|
|
This file is part of GAS, the GNU Assembler.
|
1995-05-30 05:05:38 +00:00
|
|
|
|
1993-11-03 00:56:24 +00:00
|
|
|
GAS is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
any later version.
|
1995-05-30 05:05:38 +00:00
|
|
|
|
1993-11-03 00:56:24 +00:00
|
|
|
GAS is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
1995-05-30 05:05:38 +00:00
|
|
|
|
1993-11-03 00:56:24 +00:00
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with GAS; see the file COPYING. If not, write to
|
|
|
|
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
|
|
|
/*
|
1999-08-27 23:37:10 +00:00
|
|
|
* $FreeBSD$
|
1993-11-03 00:56:24 +00:00
|
|
|
*/
|
1993-06-29 09:51:23 +00:00
|
|
|
|
|
|
|
|
1993-11-03 00:56:24 +00:00
|
|
|
extern char *input_line_pointer; /* -> char we are parsing now. */
|
1993-06-29 09:51:23 +00:00
|
|
|
|
|
|
|
#define PERMIT_WHITESPACE /* Define to make whitespace be allowed in */
|
1993-11-03 00:56:24 +00:00
|
|
|
/* many syntactically unnecessary places. */
|
|
|
|
/* Normally undefined. For compatibility */
|
|
|
|
/* with ancient GNU cc. */
|
|
|
|
/* #undef PERMIT_WHITESPACE */
|
1993-06-29 09:51:23 +00:00
|
|
|
|
|
|
|
#ifdef PERMIT_WHITESPACE
|
|
|
|
#define SKIP_WHITESPACE() {if (* input_line_pointer == ' ') ++ input_line_pointer;}
|
|
|
|
#else
|
1993-11-03 00:56:24 +00:00
|
|
|
#define SKIP_WHITESPACE() know(*input_line_pointer != ' ' )
|
1993-06-29 09:51:23 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
1995-05-30 05:05:38 +00:00
|
|
|
#define LEX_NAME (1) /* may continue a name */
|
|
|
|
#define LEX_BEGIN_NAME (2) /* may begin a name */
|
1993-11-03 00:56:24 +00:00
|
|
|
|
1993-06-29 09:51:23 +00:00
|
|
|
#define is_name_beginner(c) ( lex_type[c] & LEX_BEGIN_NAME )
|
|
|
|
#define is_part_of_name(c) ( lex_type[c] & LEX_NAME )
|
|
|
|
|
1993-11-03 00:56:24 +00:00
|
|
|
#ifndef is_a_char
|
|
|
|
#define CHAR_MASK (0xff)
|
|
|
|
#define NOT_A_CHAR (CHAR_MASK+1)
|
|
|
|
#define is_a_char(c) (((unsigned)(c)) <= CHAR_MASK)
|
|
|
|
#endif /* is_a_char() */
|
|
|
|
|
|
|
|
#ifdef PIC
|
|
|
|
/* We change some of the entries in lex_type on some archs */
|
|
|
|
extern char lex_type[];
|
|
|
|
#else
|
1993-06-29 09:51:23 +00:00
|
|
|
extern const char lex_type[];
|
1993-11-03 00:56:24 +00:00
|
|
|
#endif
|
|
|
|
extern char is_end_of_line[];
|
|
|
|
|
1994-12-23 22:37:45 +00:00
|
|
|
/* These are initialized by the CPU specific target files (tc-*.c). */
|
|
|
|
extern const char comment_chars[];
|
|
|
|
extern const char line_comment_chars[];
|
|
|
|
extern const char line_separator_chars[];
|
1995-05-30 05:05:38 +00:00
|
|
|
|
1993-11-03 00:56:24 +00:00
|
|
|
#if __STDC__ == 1
|
|
|
|
|
|
|
|
char *demand_copy_C_string(int *len_pointer);
|
|
|
|
char get_absolute_expression_and_terminator(long *val_pointer);
|
|
|
|
long get_absolute_expression(void);
|
|
|
|
void add_include_dir(char *path);
|
|
|
|
void big_cons(int nbytes);
|
|
|
|
void cons(unsigned int nbytes);
|
|
|
|
void demand_empty_rest_of_line(void);
|
|
|
|
void equals(char *sym_name);
|
|
|
|
void float_cons(int float_type);
|
|
|
|
void ignore_rest_of_line(void);
|
|
|
|
void pseudo_set(symbolS *symbolP);
|
|
|
|
void read_a_source_file(char *name);
|
|
|
|
void read_begin(void);
|
|
|
|
void s_abort(void);
|
|
|
|
void s_align_bytes(int arg);
|
|
|
|
void s_align_ptwo(void);
|
1994-12-23 22:37:45 +00:00
|
|
|
void s_app_file(int);
|
|
|
|
void s_app_line(int);
|
1993-11-03 00:56:24 +00:00
|
|
|
void s_comm(void);
|
|
|
|
void s_data(void);
|
|
|
|
void s_else(int arg);
|
|
|
|
void s_end(int arg);
|
|
|
|
void s_endif(int arg);
|
|
|
|
void s_fill(void);
|
|
|
|
void s_globl(void);
|
|
|
|
void s_if(int arg);
|
|
|
|
void s_ifdef(int arg);
|
|
|
|
void s_ifeqs(int arg);
|
|
|
|
void s_ignore(int arg);
|
|
|
|
void s_include(int arg);
|
|
|
|
void s_lcomm(int needs_align);
|
|
|
|
void s_lsym(void);
|
|
|
|
void s_org(void);
|
|
|
|
void s_set(void);
|
|
|
|
void s_size(void);
|
|
|
|
void s_space(void);
|
|
|
|
void s_text(void);
|
1993-11-30 20:57:41 +00:00
|
|
|
void s_type(void);
|
1996-10-01 00:13:54 +00:00
|
|
|
void s_weak(void);
|
1993-11-03 00:56:24 +00:00
|
|
|
|
|
|
|
#else /* not __STDC__ */
|
|
|
|
|
|
|
|
char *demand_copy_C_string();
|
|
|
|
char get_absolute_expression_and_terminator();
|
|
|
|
long get_absolute_expression();
|
|
|
|
void add_include_dir();
|
|
|
|
void big_cons();
|
|
|
|
void cons();
|
|
|
|
void demand_empty_rest_of_line();
|
|
|
|
void equals();
|
|
|
|
void float_cons();
|
|
|
|
void ignore_rest_of_line();
|
|
|
|
void pseudo_set();
|
|
|
|
void read_a_source_file();
|
|
|
|
void read_begin();
|
|
|
|
void s_abort();
|
|
|
|
void s_align_bytes();
|
|
|
|
void s_align_ptwo();
|
|
|
|
void s_app_file();
|
1994-12-23 22:37:45 +00:00
|
|
|
void s_app_line();
|
1993-11-03 00:56:24 +00:00
|
|
|
void s_comm();
|
|
|
|
void s_data();
|
|
|
|
void s_else();
|
|
|
|
void s_end();
|
|
|
|
void s_endif();
|
|
|
|
void s_fill();
|
|
|
|
void s_globl();
|
|
|
|
void s_if();
|
|
|
|
void s_ifdef();
|
|
|
|
void s_ifeqs();
|
|
|
|
void s_ignore();
|
|
|
|
void s_include();
|
|
|
|
void s_lcomm();
|
|
|
|
void s_lsym();
|
|
|
|
void s_org();
|
|
|
|
void s_set();
|
|
|
|
void s_size();
|
|
|
|
void s_space();
|
|
|
|
void s_text();
|
1993-11-30 20:57:41 +00:00
|
|
|
void s_type();
|
1996-10-01 00:13:54 +00:00
|
|
|
void s_weak();
|
1993-11-03 00:56:24 +00:00
|
|
|
|
|
|
|
#endif /* not __STDC__ */
|
1993-06-29 09:51:23 +00:00
|
|
|
|
1993-11-03 00:56:24 +00:00
|
|
|
/*
|
|
|
|
* Local Variables:
|
|
|
|
* comment-column: 0
|
|
|
|
* fill-column: 131
|
|
|
|
* End:
|
|
|
|
*/
|
1993-06-29 09:51:23 +00:00
|
|
|
|
1993-11-03 00:56:24 +00:00
|
|
|
/* end of read.h */
|