From patchwork Sun Dec 19 18:14:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicola Pero X-Patchwork-Id: 76149 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 A2949B7088 for ; Mon, 20 Dec 2010 05:14:19 +1100 (EST) Received: (qmail 4416 invoked by alias); 19 Dec 2010 18:14:17 -0000 Received: (qmail 4407 invoked by uid 22791); 19 Dec 2010 18:14:16 -0000 X-SWARE-Spam-Status: No, hits=0.1 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 18:14:11 +0000 Received: from eggs.gnu.org ([140.186.70.92]:39780) by fencepost.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PUNlm-0001UW-3P for gcc-patches@gnu.org; Sun, 19 Dec 2010 13:14:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUNln-0002yw-NL for gcc-patches@gnu.org; Sun, 19 Dec 2010 13:14:08 -0500 Received: from smtp131.iad.emailsrvr.com ([207.97.245.131]:57889) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUNln-0002yj-Ky for gcc-patches@gnu.org; Sun, 19 Dec 2010 13:14:07 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp33.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 1FCCC30225 for ; Sun, 19 Dec 2010 13:14:07 -0500 (EST) Received: from dynamic8.wm-web.iad.mlsrvr.com (dynamic8.wm-web.iad1a.rsapps.net [192.168.2.149]) by smtp33.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 069E1301A4 for ; Sun, 19 Dec 2010 13:14:07 -0500 (EST) Received: from meta-innovation.com (localhost [127.0.0.1]) by dynamic8.wm-web.iad.mlsrvr.com (Postfix) with ESMTP id EC521305006C for ; Sun, 19 Dec 2010 13:14:06 -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:14:06 +0100 (CET) Date: Sun, 19 Dec 2010 19:14:06 +0100 (CET) Subject: =?UTF-8?Q?libobjc:=20header=20cleanup=20for=20new=20API=20(14)?= From: "Nicola Pero" To: "gcc-patches@gnu.org" MIME-Version: 1.0 X-Type: plain Message-ID: <1292782446.966520847@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 moves a few declarations from objc-private/runtime.h to objc-private/selector.h. Really minor. Committed to trunk. Thanks Index: objc-private/selector.h =================================================================== --- objc-private/selector.h (revision 168066) +++ objc-private/selector.h (working copy) @@ -32,6 +32,18 @@ /* Private runtime functions that may go away or be rewritten or replaced. */ +/* Number of selectors stored in each of the selector tables. */ +extern unsigned int __objc_selector_max_index; + +/* Initialize the selector tables. This must be called by init.c. */ +void __objc_init_selector_tables(void); + +/* Various private functions to register selectors. */ +void __objc_register_selectors_from_class(Class); +void __objc_register_selectors_from_list (struct objc_method_list *); +void __objc_register_selectors_from_description_list +(struct objc_method_description_list *method_list); + /* Return whether a selector is mapped or not ("mapped" meaning that it has been inserted into the selector table). This is private as only the runtime should ever encounter or need to know about Index: objc-private/runtime.h =================================================================== --- objc-private/runtime.h (revision 168066) +++ objc-private/runtime.h (working copy) @@ -53,15 +53,10 @@ #endif /* __cplusplus */ extern void __objc_add_class_to_hash(Class); /* (objc-class.c) */ -extern void __objc_init_selector_tables(void); /* (objc-sel.c) */ extern void __objc_init_class_tables(void); /* (objc-class.c) */ extern void __objc_init_dispatch_tables(void); /* (objc-dispatch.c) */ extern void __objc_install_premature_dtable(Class); /* (objc-dispatch.c) */ extern void __objc_resolve_class_links(void); /* (objc-class.c) */ -extern void __objc_register_selectors_from_class(Class); /* (objc-sel.c) */ -extern void __objc_register_selectors_from_list (struct objc_method_list *); /* (selector.c) */ -extern void __objc_register_selectors_from_description_list -(struct objc_method_description_list *method_list); /* (selector.c) */ extern void __objc_update_dispatch_table_for_class (Class);/* (objc-msg.c) */ extern int __objc_init_thread_system(void); /* thread.c */ @@ -76,9 +71,6 @@ extern void __objc_update_classes_with_methods (struct objc_method *method_a, struct objc_method *method_b); /* class.c */ -/* Number of selectors stored in each of the selector tables */ -extern unsigned int __objc_selector_max_index; - /* Mutex locking __objc_selector_max_index and its arrays. */ extern objc_mutex_t __objc_runtime_mutex; Index: ChangeLog =================================================================== --- ChangeLog (revision 168066) +++ ChangeLog (working copy) @@ -1,5 +1,13 @@ 2010-12-19 Nicola Pero + * objc-private/runtime.h (__objc_selector_max_index, + __objc_init_selector_tables, __objc_register_selectors_from_class, + __objc_register_selectors_from_list, + __objc_register_selectors_from_description_list): Moved to ... + * objc-private/selector.h: ... here. + +2010-12-19 Nicola Pero + * objc-private/runtime.h (__objc_class_links_resolved): Removed. (__objc_print_dtable_stats): Removed. (__sel_register_typed_name): Removed.