From patchwork Sun Dec 19 18:01:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicola Pero X-Patchwork-Id: 76148 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 5A634B7082 for ; Mon, 20 Dec 2010 05:02:07 +1100 (EST) Received: (qmail 32241 invoked by alias); 19 Dec 2010 18:02:05 -0000 Received: (qmail 32229 invoked by uid 22791); 19 Dec 2010 18:02:04 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL, BAYES_05, 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 18:01:57 +0000 Received: from eggs.gnu.org ([140.186.70.92]:52149) by fencepost.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PUNZw-0000mQ-Sf for gcc-patches@gnu.org; Sun, 19 Dec 2010 13:01:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUNZy-0000id-3a for gcc-patches@gnu.org; Sun, 19 Dec 2010 13:01:55 -0500 Received: from smtp181.iad.emailsrvr.com ([207.97.245.181]:50530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUNZx-0000iH-Vp for gcc-patches@gnu.org; Sun, 19 Dec 2010 13:01:54 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp48.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 37319168382 for ; Sun, 19 Dec 2010 13:01:53 -0500 (EST) Received: from dynamic9.wm-web.iad.mlsrvr.com (dynamic9.wm-web.iad1a.rsapps.net [192.168.2.216]) by smtp48.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 2639F168368 for ; Sun, 19 Dec 2010 13:01:53 -0500 (EST) Received: from meta-innovation.com (localhost [127.0.0.1]) by dynamic9.wm-web.iad.mlsrvr.com (Postfix) with ESMTP id 0663F320088 for ; Sun, 19 Dec 2010 13:01:53 -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 19:01:53 +0100 (CET) Date: Sun, 19 Dec 2010 19:01:53 +0100 (CET) Subject: =?UTF-8?Q?libobjc:=20header=20cleanup=20for=20new=20API=20(13)?= From: "Nicola Pero" To: "gcc-patches@gnu.org" MIME-Version: 1.0 X-Type: plain Message-ID: <1292781713.02524390@192.168.2.227> 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 removes 3 un-needed declarations from objc-private/runtime.h. Committed to trunk. Thanks Index: sendmsg.c =================================================================== --- sendmsg.c (revision 168065) +++ sendmsg.c (working copy) @@ -980,7 +980,7 @@ } void -__objc_print_dtable_stats () +__objc_print_dtable_stats (void) { int total = 0; Index: objc-private/runtime.h =================================================================== --- objc-private/runtime.h (revision 168065) +++ objc-private/runtime.h (working copy) @@ -66,7 +66,6 @@ extern int __objc_init_thread_system(void); /* thread.c */ extern int __objc_fini_thread_system(void); /* thread.c */ -extern void __objc_print_dtable_stats(void); /* sendmsg.c */ extern void __objc_init_class (Class class); /* init.c */ extern void class_add_method_list(Class, struct objc_method_list *); @@ -77,9 +76,6 @@ extern void __objc_update_classes_with_methods (struct objc_method *method_a, struct objc_method *method_b); /* class.c */ -/* True when class links has been resolved */ -extern BOOL __objc_class_links_resolved; - /* Number of selectors stored in each of the selector tables */ extern unsigned int __objc_selector_max_index; @@ -96,8 +92,6 @@ #endif BOOL __objc_responds_to (id object, SEL sel); /* for internal use only! */ -SEL __sel_register_typed_name (const char*, const char*, - struct objc_selector*, BOOL is_const); extern void __objc_generate_gc_type_description (Class); #ifdef __cplusplus Index: ChangeLog =================================================================== --- ChangeLog (revision 168065) +++ ChangeLog (working copy) @@ -1,5 +1,12 @@ 2010-12-19 Nicola Pero + * objc-private/runtime.h (__objc_class_links_resolved): Removed. + (__objc_print_dtable_stats): Removed. + (__sel_register_typed_name): Removed. + * sendmsg.c (__objc_print_dtable_stats): Use 'void' as argument. + +2010-12-19 Nicola Pero + * init.c (__objc_exec_class): Call __objc_resolve_class_links (), if appropriate, after loading the module.