From patchwork Fri Sep 10 17:14:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicola Pero X-Patchwork-Id: 64430 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 1D512B7102 for ; Sat, 11 Sep 2010 03:15:07 +1000 (EST) Received: (qmail 5705 invoked by alias); 10 Sep 2010 17:15:04 -0000 Received: (qmail 5643 invoked by uid 22791); 10 Sep 2010 17:15:03 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL, BAYES_00, 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; Fri, 10 Sep 2010 17:14:55 +0000 Received: from eggs.gnu.org ([140.186.70.92]:58799) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou7Bi-0003FD-2e for gcc-patches@gnu.org; Fri, 10 Sep 2010 13:14:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ou7Bb-0003P0-3D for gcc-patches@gnu.org; Fri, 10 Sep 2010 13:14:53 -0400 Received: from smtp171.iad.emailsrvr.com ([207.97.245.171]:54190) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ou7Ba-0003O4-T1 for gcc-patches@gnu.org; Fri, 10 Sep 2010 13:14:50 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp37.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 810BC3B029A for ; Fri, 10 Sep 2010 13:14:48 -0400 (EDT) Received: from dynamic10.wm-web.iad.mlsrvr.com (dynamic10.wm-web.iad1a.rsapps.net [192.168.2.217]) by smtp37.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 6FCE43B026A for ; Fri, 10 Sep 2010 13:14:48 -0400 (EDT) Received: from meta-innovation.com (localhost [127.0.0.1]) by dynamic10.wm-web.iad.mlsrvr.com (Postfix) with ESMTP id 5DF20478807F for ; Fri, 10 Sep 2010 13:14:48 -0400 (EDT) Received: by www2.webmail.us (Authenticated sender: nicola.pero@meta-innovation.com, from: nicola.pero@meta-innovation.com) with HTTP; Fri, 10 Sep 2010 19:14:48 +0200 (CEST) Date: Fri, 10 Sep 2010 19:14:48 +0200 (CEST) Subject: libobjc - tiny tidyup From: "Nicola Pero" To: gcc-patches@gnu.org MIME-Version: 1.0 X-Type: plain Message-ID: <1284138888.383526057@192.168.2.230> 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 Committed to trunk Thanks --- ChangeLog (revision 164198) +++ ChangeLog (working copy) @@ -1,5 +1,9 @@ 2010-09-10 Nicola Pero + * objc/objc-api.h (objc_trace): Unused variable removed. + +2010-09-10 Nicola Pero + * objc/deprecated: New directory. * objc/deprecated/README: New file. * objc/README: New file. Index: objc/objc-api.h =================================================================== --- objc/objc-api.h (revision 164198) +++ objc/objc-api.h (working copy) @@ -133,11 +133,7 @@ #define OBJC_ERR_BAD_STATE 40 /* Bad thread state */ -/* Set this variable nonzero to print a line describing each - message that is sent. (this is currently disabled) */ -extern BOOL objc_trace; - /* For every class which happens to have statically allocated instances in this module, one OBJC_STATIC_INSTANCES is allocated by the compiler. INSTANCES is NULL terminated and points to all statically allocated @@ -186,18 +182,18 @@ ** That array holds a pointer to each module structure of the executable. */ typedef struct objc_module { - unsigned long version; /* Compiler revision. */ - unsigned long size; /* sizeof(Module). */ - const char* name; /* Name of the file where the - module was generated. The - name includes the path. */ - - Symtab_t symtab; /* Pointer to the Symtab of - the module. The Symtab - holds an array of - pointers to - the classes and categories - defined in the module. */ + unsigned long version; /* Version of the Module data structure. */ + unsigned long size; /* sizeof(Module) according to the compiler - + only used to sanity check that it matches + sizeof(Module) according to the + runtime. */ + const char* name; /* Name of the file used to compile the + module - not set by modern compilers for + security reasons. */ + Symtab_t symtab; /* Pointer to the Symtab of the module. The + Symtab holds an array of pointers to the + classes and categories defined in the + module. */ } Module, *Module_t;