aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorZiemowit Laski <zlaski@apple.com>2002-08-10 02:18:28 +0000
committerZiemowit Laski <zlaski@gcc.gnu.org>2002-08-10 02:18:28 +0000
commit0f7866e7ba109bc68ae2c0d14ec0399765fc144b (patch)
tree9eae3f190177c258108b75e7081a965f0c60e1f2 /gcc/c-common.h
parent9e259dd1ff3f146f89ff4261d9e48685b378b693 (diff)
downloadgcc-0f7866e7ba109bc68ae2c0d14ec0399765fc144b.zip
gcc-0f7866e7ba109bc68ae2c0d14ec0399765fc144b.tar.gz
gcc-0f7866e7ba109bc68ae2c0d14ec0399765fc144b.tar.bz2
c-common.c (flag_objc): New.
2002-08-09 Ziemowit Laski <zlaski@apple.com> * c-common.c (flag_objc): New. * c-common.h (c_language_kind): Get rid of clk_objective_c enum value. (flag_objc): New extern declaration. * c-decl.c (implicitly_declare): Call objc_check_decl instead of maybe_objc_check_decl. (finish_decl): Likewise. (grokfield): Likewise. (finish_struct): Likewise. * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl. (maybe_objc_comptypes): Rename to objc_comptypes. (maybe_building_objc_message_expr): Rename to objc_message_selector. * c-lex.c (lex_charconst): Remove uses of clk_objective_c, replace with flag_objc as needed. * c-opts.c (c_common_init_options): Likewise. (c_common_decode_option): Likewise. * c-parse.in (init_reswords): Likewise. * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl. (maybe_objc_comptypes): Rename to objc_comptypes. (maybe_building_objc_message_expr): Rename to objc_message_selector. * c-typeck.c (comptypes): Call objc_comptypes instead of maybe_objc_comptypes, and/or objc_message_selector instead of (comp_target_types): Likewise. (convert_for_assignment): Likewise. (warn_for_assignment): Likewise. * cppinit.c (init_builtins): Set __OBJC__ manifest constant independently of those for other languages. * objc/objc-act.c (maybe_objc_comptypes): Delete. (maybe_objc_check_decl): Delete. (maybe_building_objc_message_expr): Rename to objc_message_selector. * objc/objc-lang.c (objc_init_options): Use clk_c instead of clk_objective_c; set flag_objc flag. From-SVN: r56173
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 6544694..63a6837 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -240,8 +240,7 @@ typedef enum c_language_kind
{
clk_c, /* A dialect of C: K&R C, ANSI/ISO C89, C2000,
etc. */
- clk_cplusplus, /* ANSI/ISO C++ */
- clk_objective_c /* Objective C */
+ clk_cplusplus /* ANSI/ISO C++ */
}
c_language_kind;
@@ -367,7 +366,6 @@ struct c_lang_decl GTY(()) {
extern c_language_kind c_language;
-
/* Switches common to the C front ends. */
/* Nonzero if prepreprocessing only. */
@@ -377,6 +375,9 @@ extern int flag_preprocess_only;
user's namespace. */
extern int flag_iso;
+/* Nonzero whenever Objective-C functionality is being used. */
+extern int flag_objc;
+
/* Nonzero if -undef was given. It suppresses target built-in macros
and assertions. */
extern int flag_undef;
@@ -794,9 +795,6 @@ extern int warn_deprecated;
extern int max_tinst_depth;
-
-
-
/* C types are partitioned into three subsets: object, function, and
incomplete types. */
#define C_TYPE_OBJECT_P(type) \