From patchwork Sun Dec 19 01:02:01 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicola Pero X-Patchwork-Id: 76107 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 4C646B70A3 for ; Sun, 19 Dec 2010 12:02:55 +1100 (EST) Received: (qmail 14711 invoked by alias); 19 Dec 2010 01:02:54 -0000 Received: (qmail 14702 invoked by uid 22791); 19 Dec 2010 01:02:53 -0000 X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=AWL, BAYES_50, SARE_SUB_ENC_UTF8, TW_BJ, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 19 Dec 2010 01:02:48 +0000 Received: from eggs.gnu.org ([140.186.70.92]:49605) by fencepost.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PU7ff-00073y-R5 for gcc-patches@gnu.org; Sat, 18 Dec 2010 20:02:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PU7f0-0003p3-LM for gcc-patches@gnu.org; Sat, 18 Dec 2010 20:02:46 -0500 Received: from smtp181.iad.emailsrvr.com ([207.97.245.181]:35700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PU7f0-0003oy-B6 for gcc-patches@gnu.org; Sat, 18 Dec 2010 20:02:02 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp48.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id EB423168517 for ; Sat, 18 Dec 2010 20:02:01 -0500 (EST) Received: from dynamic7.wm-web.iad.mlsrvr.com (dynamic7.wm-web.iad1a.rsapps.net [192.168.2.148]) by smtp48.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id D9EA716850A for ; Sat, 18 Dec 2010 20:02:01 -0500 (EST) Received: from meta-innovation.com (localhost [127.0.0.1]) by dynamic7.wm-web.iad.mlsrvr.com (Postfix) with ESMTP id A7A4E153806A for ; Sat, 18 Dec 2010 20:02:01 -0500 (EST) Received: by www2.webmail.us (Authenticated sender: nicola.pero@meta-innovation.com, from: nicola.pero@meta-innovation.com) with HTTP; Sun, 19 Dec 2010 02:02:01 +0100 (CET) Date: Sun, 19 Dec 2010 02:02:01 +0100 (CET) Subject: =?UTF-8?Q?libobjc:=20header=20cleanup=20for=20new=20API=20(3)?= From: "Nicola Pero" To: "gcc-patches@gnu.org" MIME-Version: 1.0 X-Type: plain Message-ID: <1292720521.685120946@192.168.2.229> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This patch adds missing objc_EXPORT to two header files that were added in GCC 4.6. Committed to trunk. Thanks Index: ChangeLog =================================================================== --- ChangeLog (revision 168040) +++ ChangeLog (working copy) @@ -1,5 +1,11 @@ 2010-12-19 Nicola Pero + * objc/objc-exception.h: Include objc-decls.h. Mark all + functions with objc_EXPORT. + * objc/objc-sync.h: Same change. + +2010-12-19 Nicola Pero + * Protocol.m: Moved all methods, with the exception of -isEqual:, into the 'Deprecated' category. * objc/Protocol.h: Removed all methods, moved to Index: objc/objc-exception.h =================================================================== --- objc/objc-exception.h (revision 168039) +++ objc/objc-exception.h (working copy) @@ -27,6 +27,7 @@ #define __objc_exception_INCLUDE_GNU #include "objc.h" +#include "objc-decls.h" #ifdef __cplusplus extern "C" { @@ -55,14 +56,12 @@ setting an 'objc_uncaught_exception_handler' function (using objc_set_uncaught_exception_handler(), see below); if one is set, it is executed before abort() is called. An uncaught exception - handler is expected to never return. - */ -void objc_exception_throw (id exception); + handler is expected to never return. */ +objc_EXPORT void objc_exception_throw (id exception); /* Compatibility note: the Apple/NeXT runtime seems to also have objc_exception_rethrow(), objc_begin_catch() and objc_end_catch(). - Currently the GNU runtime does not use them. -*/ + Currently the GNU runtime does not use them. */ /* The following functions allow customizing to a certain extent the exception handling. They are not thread safe and should be called @@ -70,8 +69,7 @@ are mostly reserved for "Foundation" libraries; in the case of GNUstep, GNUstep Base may be using these functions to improve the standard exception handling. You probably shouldn't use these - functions unless you are writing your own Foundation library. -*/ + functions unless you are writing your own Foundation library. */ /* Compatibility note: objc_set_exception_preprocessor() (available on the Apple/NeXT runtime) is not available on the GNU runtime. */ @@ -88,7 +86,7 @@ exception matcher function. This function is not safe to call in a multi-threaded environment because other threads may be trying to invoke the exception matcher while you change it! */ -objc_exception_matcher +objc_EXPORT objc_exception_matcher objc_setExceptionMatcher (objc_exception_matcher new_matcher); @@ -100,9 +98,8 @@ previous exception handler function. This function is not safe to call in a multi-threaded environment because other threads may be trying to invoke the uncaught exception handler while you change - it. -*/ -objc_uncaught_exception_handler + it. */ +objc_EXPORT objc_uncaught_exception_handler objc_setUncaughtExceptionHandler (objc_uncaught_exception_handler new_handler); #ifdef __cplusplus Index: objc/objc-sync.h =================================================================== --- objc/objc-sync.h (revision 168039) +++ objc/objc-sync.h (working copy) @@ -27,6 +27,7 @@ #define __objc_sync_INCLUDE_GNU #include "objc.h" +#include "objc-decls.h" #ifdef __cplusplus extern "C" { @@ -41,17 +42,15 @@ values. Note that you should not rely on the behaviour when 'object' is nil - because it could change. - */ -int objc_sync_enter (id object); + because it could change. */ +objc_EXPORT int objc_sync_enter (id object); /* 'objc_sync_exit' is automatically called when exiting from a @synchronized() block. It unlocks the recursive lock associated with 'object'. If 'object' is nil, it does nothing. It returns OBJC_SYNC_SUCCESS on success; see the enumeration below for error - values. - */ -int objc_sync_exit (id object); + values. */ +objc_EXPORT int objc_sync_exit (id object); /* All the possible return values for objc_sync_enter() and objc_sync_exit().