1 /* Pragma related interfaces.
2 Copyright (C) 1995, 1998, 1999, 2000, 2001, 2002, 2003, 2004
3 Free Software Foundation, Inc.
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
12 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING. If not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #ifndef GCC_C_PRAGMA_H
23 #define GCC_C_PRAGMA_H
25 /* Cause the `yydebug' variable to be defined. */
29 extern struct cpp_reader
* parse_in
;
31 #define HANDLE_PRAGMA_WEAK SUPPORTS_WEAK
33 #ifdef HANDLE_SYSV_PRAGMA
34 /* We always support #pragma pack for SYSV pragmas. */
35 #ifndef HANDLE_PRAGMA_PACK
36 #define HANDLE_PRAGMA_PACK 1
38 #endif /* HANDLE_SYSV_PRAGMA */
41 #ifdef HANDLE_PRAGMA_PACK_PUSH_POP
42 /* If we are supporting #pragma pack(push... then we automatically
43 support #pragma pack(<n>) */
44 #define HANDLE_PRAGMA_PACK 1
45 #endif /* HANDLE_PRAGMA_PACK_PUSH_POP */
47 extern void init_pragma (void);
49 /* Front-end wrapper for pragma registration to avoid dragging
50 cpplib.h in almost everywhere. */
51 extern void c_register_pragma (const char *, const char *,
52 void (*) (struct cpp_reader
*));
53 extern void maybe_apply_pragma_weak (tree
);
54 extern tree
maybe_apply_renaming_pragma (tree
, tree
);
55 extern void add_to_renaming_pragma_list (tree
, tree
);
57 extern int c_lex (tree
*);
58 extern int c_lex_with_flags (tree
*, unsigned char *);
60 /* If true, then lex strings into the execution character set.
61 Otherwise, lex strings into the host character set. */
62 extern bool c_lex_string_translate
;
64 #endif /* GCC_C_PRAGMA_H */