diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-13 10:02:30 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-13 10:02:30 +0000 |
commit | 8774a9171ed6eb03f8171c271e7deeace86a1093 (patch) | |
tree | d7c3197ecf431aa96d0496c9039fafecf407d3b2 /gcc/objcp | |
parent | e5317c8c9d08bdccca6b30791af6d1f8be92097d (diff) | |
download | gcc-8774a9171ed6eb03f8171c271e7deeace86a1093.tar.gz |
objcp:
* plugin/lex.h: Plugify.
cp:
* lex.c: Plugify.
* Make-lang.in (objcp/plugin/lex.h): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170104 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objcp')
-rw-r--r-- | gcc/objcp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/objcp/plugin/lex.h | 32 | ||||
-rw-r--r-- | gcc/objcp/plugin/parser.c | 2 | ||||
-rw-r--r-- | gcc/objcp/plugin/parser.h | 2 |
4 files changed, 38 insertions, 2 deletions
diff --git a/gcc/objcp/ChangeLog b/gcc/objcp/ChangeLog index d3bae1c95dc..92f6b7d32e1 100644 --- a/gcc/objcp/ChangeLog +++ b/gcc/objcp/ChangeLog @@ -1,3 +1,7 @@ +2011-02-13 Mike Stump <mikestump@comcast.net> + + * plugin/lex.h: Plugify. + 2011-02-12 Mike Stump <mikestump@comcast.net> * Make-lang.in (obj-c++.tags): Plugify Objective-C++. diff --git a/gcc/objcp/plugin/lex.h b/gcc/objcp/plugin/lex.h new file mode 100644 index 00000000000..a13024a5b2d --- /dev/null +++ b/gcc/objcp/plugin/lex.h @@ -0,0 +1,32 @@ +/* Objective-C++ Parser plugin + Copyright (C) 2011 Free Software Foundation, Inc. + + This file is part of GCC. + + GCC 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 3, or (at your option) + any later version. + + GCC 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. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING3. If not see +<http://www.gnu.org/licenses/>. */ + + +#ifndef HIDE_OBJC + +#include "c-family/c-objc.h" + +#define PLUGIN_UNQUALIFIED_NAME_LOOKUP_ERROR(name) @( + objc_diagnose_private_ivar (name)@) + +#else + +#define PLUGIN_UNQUALIFIED_NAME_LOOKUP_ERROR(name) 0 + +#endif diff --git a/gcc/objcp/plugin/parser.c b/gcc/objcp/plugin/parser.c index 964c69768de..a2481f1859c 100644 --- a/gcc/objcp/plugin/parser.c +++ b/gcc/objcp/plugin/parser.c @@ -19,7 +19,7 @@ along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>. */ -#ifdef HIDE_OBJC +#ifndef HIDE_OBJC /* Objective-C++ Productions */ diff --git a/gcc/objcp/plugin/parser.h b/gcc/objcp/plugin/parser.h index e18142e0862..e41e30ba67a 100644 --- a/gcc/objcp/plugin/parser.h +++ b/gcc/objcp/plugin/parser.h @@ -21,7 +21,7 @@ along with GCC; see the file COPYING3. If not see /* This isn't defined anywhere, yet, but it could be. This will turn off the entire C++ Objective-C++ plugin. */ -#ifdef HIDE_OBJC +#ifndef HIDE_OBJC #include "c-family/c-objc.h" |