OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [objcp/] [objcp-decl.h] - Diff between revs 816 and 826

Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 826
/* Process the ObjC-specific declarations and variables for
/* Process the ObjC-specific declarations and variables for
   the Objective-C++ compiler.
   the Objective-C++ compiler.
   Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc.
   Copyright (C) 2005, 2007, 2009 Free Software Foundation, Inc.
   Contributed by Ziemowit Laski  <zlaski@apple.com>
   Contributed by Ziemowit Laski  <zlaski@apple.com>
 
 
This file is part of GCC.
This file is part of GCC.
 
 
GCC is free software; you can redistribute it and/or modify it under
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
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
Software Foundation; either version 3, or (at your option) any later
version.
version.
 
 
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.
for more details.
 
 
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.  */
<http://www.gnu.org/licenses/>.  */
 
 
 
 
#ifndef GCC_OBJCP_DECL_H
#ifndef GCC_OBJCP_DECL_H
#define GCC_OBJCP_DECL_H
#define GCC_OBJCP_DECL_H
 
 
extern tree objcp_start_struct (location_t, enum tree_code, tree);
extern tree objcp_start_struct (location_t, enum tree_code, tree);
extern tree objcp_finish_struct (location_t, tree, tree, tree);
extern tree objcp_finish_struct (location_t, tree, tree, tree);
extern void objcp_finish_function (void);
extern void objcp_finish_function (void);
extern tree objcp_build_function_call (tree, tree);
extern tree objcp_build_function_call (tree, tree);
extern tree objcp_xref_tag (enum tree_code, tree);
extern tree objcp_xref_tag (enum tree_code, tree);
extern int objcp_comptypes (tree, tree);
extern int objcp_comptypes (tree, tree);
extern tree objcp_begin_compound_stmt (int);
extern tree objcp_begin_compound_stmt (int);
extern tree objcp_end_compound_stmt (tree, int);
extern tree objcp_end_compound_stmt (tree, int);
 
 
/* Now "cover up" the corresponding C++ functions if required (NB: the
/* Now "cover up" the corresponding C++ functions if required (NB: the
   OBJCP_ORIGINAL_FUNCTION macro, shown below, can still be used to
   OBJCP_ORIGINAL_FUNCTION macro, shown below, can still be used to
   invoke the original C++ functions if needed).  */
   invoke the original C++ functions if needed).  */
#ifdef OBJCP_REMAP_FUNCTIONS
#ifdef OBJCP_REMAP_FUNCTIONS
 
 
#define start_struct(loc, code, name, struct_info) \
#define start_struct(loc, code, name, struct_info) \
        objcp_start_struct (loc, code, name)
        objcp_start_struct (loc, code, name)
#define finish_struct(loc, t, fieldlist, attributes, struct_info) \
#define finish_struct(loc, t, fieldlist, attributes, struct_info) \
        objcp_finish_struct (loc, t, fieldlist, attributes)
        objcp_finish_struct (loc, t, fieldlist, attributes)
#define finish_function() \
#define finish_function() \
        objcp_finish_function ()
        objcp_finish_function ()
#define finish_decl(decl, loc, init, origtype, asmspec) \
#define finish_decl(decl, loc, init, origtype, asmspec) \
        cp_finish_decl (decl, init, false, asmspec, 0)
        cp_finish_decl (decl, init, false, asmspec, 0)
#define xref_tag(code, name) \
#define xref_tag(code, name) \
        objcp_xref_tag (code, name)
        objcp_xref_tag (code, name)
#define comptypes(type1, type2) \
#define comptypes(type1, type2) \
        objcp_comptypes (type1, type2)
        objcp_comptypes (type1, type2)
#define c_begin_compound_stmt(flags) \
#define c_begin_compound_stmt(flags) \
        objcp_begin_compound_stmt (flags)
        objcp_begin_compound_stmt (flags)
#define c_end_compound_stmt(loc, stmt, flags)   \
#define c_end_compound_stmt(loc, stmt, flags)   \
        objcp_end_compound_stmt (stmt, flags)
        objcp_end_compound_stmt (stmt, flags)
 
 
#undef OBJC_TYPE_NAME
#undef OBJC_TYPE_NAME
#define OBJC_TYPE_NAME(type) \
#define OBJC_TYPE_NAME(type) \
  (TYPE_NAME (type) && TREE_CODE (TYPE_NAME (type)) == TYPE_DECL \
  (TYPE_NAME (type) && TREE_CODE (TYPE_NAME (type)) == TYPE_DECL \
   ? DECL_NAME (TYPE_NAME (type)) \
   ? DECL_NAME (TYPE_NAME (type)) \
   : TYPE_NAME (type))
   : TYPE_NAME (type))
#undef OBJC_SET_TYPE_NAME
#undef OBJC_SET_TYPE_NAME
#define OBJC_SET_TYPE_NAME(type, name) \
#define OBJC_SET_TYPE_NAME(type, name) \
  if(TYPE_NAME (type) && TREE_CODE (TYPE_NAME (type)) == TYPE_DECL) \
  if(TYPE_NAME (type) && TREE_CODE (TYPE_NAME (type)) == TYPE_DECL) \
    DECL_NAME (TYPE_NAME (type)) = name; \
    DECL_NAME (TYPE_NAME (type)) = name; \
  else \
  else \
    TYPE_NAME (type) = name;
    TYPE_NAME (type) = name;
 
 
#undef TYPE_OBJC_INFO
#undef TYPE_OBJC_INFO
#define TYPE_OBJC_INFO(TYPE) LANG_TYPE_CLASS_CHECK (TYPE)->objc_info
#define TYPE_OBJC_INFO(TYPE) LANG_TYPE_CLASS_CHECK (TYPE)->objc_info
#undef SIZEOF_OBJC_TYPE_LANG_SPECIFIC
#undef SIZEOF_OBJC_TYPE_LANG_SPECIFIC
#define SIZEOF_OBJC_TYPE_LANG_SPECIFIC sizeof (struct lang_type_class)
#define SIZEOF_OBJC_TYPE_LANG_SPECIFIC sizeof (struct lang_type_class)
#undef ALLOC_OBJC_TYPE_LANG_SPECIFIC
#undef ALLOC_OBJC_TYPE_LANG_SPECIFIC
#define ALLOC_OBJC_TYPE_LANG_SPECIFIC(NODE)                             \
#define ALLOC_OBJC_TYPE_LANG_SPECIFIC(NODE)                             \
  do {                                                                  \
  do {                                                                  \
    TYPE_LANG_SPECIFIC (NODE) = GGC_CNEWVAR                             \
    TYPE_LANG_SPECIFIC (NODE) = GGC_CNEWVAR                             \
      (struct lang_type, sizeof (struct lang_type_class));              \
      (struct lang_type, sizeof (struct lang_type_class));              \
    TYPE_LANG_SPECIFIC (NODE)->u.c.h.is_lang_type_class = 1;            \
    TYPE_LANG_SPECIFIC (NODE)->u.c.h.is_lang_type_class = 1;            \
  } while (0)
  } while (0)
 
 
#define OBJCP_ORIGINAL_FUNCTION(name, args)     (name)args
#define OBJCP_ORIGINAL_FUNCTION(name, args)     (name)args
 
 
/* C++ marks ellipsis-free function parameters differently from C.  */
/* C++ marks ellipsis-free function parameters differently from C.  */
#undef OBJC_VOID_AT_END
#undef OBJC_VOID_AT_END
#define OBJC_VOID_AT_END        void_list_node
#define OBJC_VOID_AT_END        void_list_node
 
 
#endif  /* OBJCP_REMAP_FUNCTIONS */
#endif  /* OBJCP_REMAP_FUNCTIONS */
 
 
#endif /* ! GCC_OBJCP_DECL_H */
#endif /* ! GCC_OBJCP_DECL_H */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.