1 /* MD reader definitions.
2 Copyright (C) 1987, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010
4 Free Software Foundation, Inc.
6 This file is part of GCC.
8 GCC is free software; you can redistribute it and/or modify it under
9 the terms of the GNU General Public License as published by the Free
10 Software Foundation; either version 3, or (at your option) any later
13 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14 WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 You should have received a copy of the GNU General Public License
19 along with GCC; see the file COPYING3. If not see
20 <http://www.gnu.org/licenses/>. */
24 extern FILE *read_md_file
;
25 extern int read_md_lineno
;
26 extern const char *read_md_filename
;
27 extern struct obstack string_obstack
;
29 /* Read the next character from the MD file. */
34 return getc (read_md_file
);
37 /* Put back CH, which was the last character read from the MD file. */
42 ungetc (ch
, read_md_file
);
45 extern void copy_md_ptr_loc (const void *, const void *);
46 extern void print_md_ptr_loc (const void *);
47 extern const char *join_c_conditions (const char *, const char *);
48 extern void print_c_condition (const char *);
49 extern void message_with_line (int, const char *, ...) ATTRIBUTE_PRINTF_2
;
50 extern void error_with_line (int, const char *, ...) ATTRIBUTE_PRINTF_2
;
51 extern void fatal_with_file_and_line (const char *, ...)
52 ATTRIBUTE_PRINTF_1 ATTRIBUTE_NORETURN
;
53 extern void fatal_expected_char (int, int) ATTRIBUTE_NORETURN
;
54 extern int read_skip_spaces (void);
55 extern char *read_quoted_string (void);
56 extern char *read_string (int);
57 extern int n_comma_elts (const char *);
58 extern const char *scan_comma_elt (const char **);
59 extern void init_md_reader (void);