X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=gcc%2Fobjcp%2Fobjcp-decl.h;h=50d98287662b12a89fd4b4ae440d9a1a5495fc9e;hb=3db273fd22e60de1e90479283b0ff7bf134c86dc;hp=3f6c4321e7fab095f85a9abe50ff78c8c1d2e03b;hpb=0b09525fe1a511596c389a7094c6cb1b0b281339;p=pf3gnuchains%2Fgcc-fork.git diff --git a/gcc/objcp/objcp-decl.h b/gcc/objcp/objcp-decl.h index 3f6c4321e7f..50d98287662 100644 --- a/gcc/objcp/objcp-decl.h +++ b/gcc/objcp/objcp-decl.h @@ -23,8 +23,8 @@ along with GCC; see the file COPYING3. If not see #ifndef GCC_OBJCP_DECL_H #define GCC_OBJCP_DECL_H -extern tree objcp_start_struct (enum tree_code, tree); -extern tree objcp_finish_struct (tree, tree, tree); +extern tree objcp_start_struct (location_t, enum tree_code, tree); +extern tree objcp_finish_struct (location_t, tree, tree, tree); extern void objcp_finish_function (void); extern tree objcp_build_function_call (tree, tree); extern tree objcp_xref_tag (enum tree_code, tree); @@ -37,19 +37,21 @@ extern tree objcp_end_compound_stmt (tree, int); invoke the original C++ functions if needed). */ #ifdef OBJCP_REMAP_FUNCTIONS -#define start_struct(code, name, in_struct, struct_types, loc) \ - objcp_start_struct (code, name) -#define finish_struct(t, fieldlist, attributes, in_struct, struct_types) \ - objcp_finish_struct (t, fieldlist, attributes) +#define start_struct(loc, code, name, struct_info) \ + objcp_start_struct (loc, code, name) +#define finish_struct(loc, t, fieldlist, attributes, struct_info) \ + objcp_finish_struct (loc, t, fieldlist, attributes) #define finish_function() \ objcp_finish_function () +#define finish_decl(decl, loc, init, origtype, asmspec) \ + cp_finish_decl (decl, init, false, asmspec, 0) #define xref_tag(code, name) \ objcp_xref_tag (code, name) #define comptypes(type1, type2) \ objcp_comptypes (type1, type2) #define c_begin_compound_stmt(flags) \ objcp_begin_compound_stmt (flags) -#define c_end_compound_stmt(stmt, flags) \ +#define c_end_compound_stmt(loc, stmt, flags) \ objcp_end_compound_stmt (stmt, flags) #undef OBJC_TYPE_NAME