From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5684 invoked by alias); 3 Jun 2011 01:03:27 -0000 Received: (qmail 5671 invoked by uid 22791); 3 Jun 2011 01:03:25 -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; Fri, 03 Jun 2011 01:03:10 +0000 Received: from eggs.gnu.org ([140.186.70.92]:52422) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QSIn7-0002IY-Bg for gcc-patches@gnu.org; Thu, 02 Jun 2011 21:03:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSIn5-0005tJ-So for gcc-patches@gnu.org; Thu, 02 Jun 2011 21:03:09 -0400 Received: from smtp131.iad.emailsrvr.com ([207.97.245.131]:51738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSIn5-0005tE-Ok for gcc-patches@gnu.org; Thu, 02 Jun 2011 21:03:07 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp23.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id F0C8F348326 for ; Thu, 2 Jun 2011 21:03:06 -0400 (EDT) Received: from dynamic6.wm-web.iad.mlsrvr.com (dynamic6.wm-web.iad1a.rsapps.net [192.168.2.147]) by smtp23.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id DE492348096 for ; Thu, 2 Jun 2011 21:03:06 -0400 (EDT) Received: from meta-innovation.com (localhost [127.0.0.1]) by dynamic6.wm-web.iad.mlsrvr.com (Postfix) with ESMTP id C4E423F0054 for ; Thu, 2 Jun 2011 21:03:06 -0400 (EDT) Received: by www2.webmail.us (Authenticated sender: nicola.pero@meta-innovation.com, from: nicola.pero@meta-innovation.com) with HTTP; Fri, 3 Jun 2011 03:03:06 +0200 (CEST) Date: Fri, 03 Jun 2011 01:03:00 -0000 Subject: =?utf-8?Q?libobjc=3A_remove_deprecated_API_=28patch_3=29?= From: "Nicola Pero" To: "gcc-patches@gnu.org" MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Type: plain Message-ID: <1307062986.804931167@www2.webmail.us> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 207.97.245.131 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00200.txt.bz2 Another patch in the sequence. This patch removes objc/objc-list.h, a public header that is deprecated and no longer part of the public API. It is still used internally by libob= jc, which has got its own private copy (which is now private and may change without notice). Committed to trunk. Thanks Index: gcc/testsuite/ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- gcc/testsuite/ChangeLog (revision 174593) +++ gcc/testsuite/ChangeLog (working copy) @@ -1,5 +1,9 @@ 2011-06-03 Nicola Pero =20 + * objc.dg/headers.m: Do not include objc-list.h. + +2011-06-03 Nicola Pero + * objc.dg/type-stream-1.m: Test removed. * objc.dg/headers.m: Do not include typedstream.h. =20=20=20=20=20=20=20=20 Index: gcc/testsuite/objc.dg/headers.m =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- gcc/testsuite/objc.dg/headers.m (revision 174593) +++ gcc/testsuite/objc.dg/headers.m (working copy) @@ -18,10 +18,6 @@ #endif =20 #include -#ifndef __NEXT_RUNTIME__ -#include -#endif - #include =20 #ifndef __NEXT_RUNTIME__ Index: libobjc/Makefile.in =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- libobjc/Makefile.in (revision 174593) +++ libobjc/Makefile.in (working copy) @@ -125,7 +125,6 @@ OBJC_H =3D \ thr.h \ \ hash.h \ - objc-list.h \ sarray.h =20 # User-visible header files containing deprecated APIs, from the @@ -137,7 +136,6 @@ OBJC_DEPRECATED_H =3D \ Protocol.h \ STR.h \ hash.h \ - objc-list.h \ objc_get_uninstalled_dtable.h \ objc_malloc.h \ objc_msg_sendv.h \ Index: libobjc/ChangeLog =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- libobjc/ChangeLog (revision 174593) +++ libobjc/ChangeLog (working copy) @@ -1,5 +1,12 @@ 2011-06-03 Nicola Pero =20 + * Makefile.in (OBJC_H): Removed objc-list.h. + (OBJC_DEPRECATED_H): Removed objc-list.h. + * objc/objc-list.h: File removed. + * objc/deprecated/objc-list.h: File removed. + +2011-06-03 Nicola Pero + * Makefile.in (OBJC_H): Removed typedstream.h. (OBJC_DEPRECATED_H): Removed typedstream.h. (C_SOURCE_FILES): Removed archive.c. Index: libobjc/objc/deprecated/objc-list.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- libobjc/objc/deprecated/objc-list.h (revision 174593) +++ libobjc/objc/deprecated/objc-list.h (working copy) @@ -1,155 +0,0 @@ -/* Generic single linked list to keep various information=20 - Copyright (C) 1993, 1994, 1996, 2009 Free Software Foundation, Inc. - Contributed by Kresten Krab Thorup. - -This file is part of GCC. - -GCC is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3, or (at your option) -any later version. - -GCC is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -Under Section 7 of GPL version 3, you are granted additional -permissions described in the GCC Runtime Library Exception, version -3.1, as published by the Free Software Foundation. - -You should have received a copy of the GNU General Public License and -a copy of the GCC Runtime Library Exception along with this program; -see the files COPYING3 and COPYING.RUNTIME respectively. If not, see -. */ - - -#ifndef __GNU_OBJC_LIST_H -#define __GNU_OBJC_LIST_H - -#ifdef __cplusplus -extern "C" { -#endif /* __cplusplus */ - -struct objc_list { - void *head; - struct objc_list *tail; -}; - -/* Return a cons cell produced from (head . tail) */ - -static inline struct objc_list*=20 -list_cons(void* head, struct objc_list* tail) -{ - struct objc_list* cell; - - cell =3D (struct objc_list*)objc_malloc(sizeof(struct objc_list)); - cell->head =3D head; - cell->tail =3D tail; - return cell; -} - -/* Return the length of a list, list_length(NULL) returns zero */ - -static inline int -list_length(struct objc_list* list) -{ - int i =3D 0; - while(list) - { - i +=3D 1; - list =3D list->tail; - } - return i; -} - -/* Return the Nth element of LIST, where N count from zero. If N=20 - larger than the list length, NULL is returned */ - -static inline void* -list_nth(int indx, struct objc_list* list) -{ - while(indx-- !=3D 0) - { - if(list->tail) - list =3D list->tail; - else - return 0; - } - return list->head; -} - -/* Remove the element at the head by replacing it by its successor */ - -static inline void -list_remove_head(struct objc_list** list) -{ - if ((*list)->tail) - { - struct objc_list* tail =3D (*list)->tail; /* fetch next */ - *(*list) =3D *tail; /* copy next to list head */ - objc_free(tail); /* free next */ - } - else /* only one element in list */ - { - objc_free(*list); - (*list) =3D 0; - } -} - - -/* Remove the element with `car' set to ELEMENT */ - -static inline void -list_remove_elem(struct objc_list** list, void* elem) -{ - while (*list) { - if ((*list)->head =3D=3D elem) - list_remove_head(list); - list =3D &((*list)->tail); - } -} - -/* Map FUNCTION over all elements in LIST */ - -static inline void -list_mapcar(struct objc_list* list, void(*function)(void*)) -{ - while(list) - { - (*function)(list->head); - list =3D list->tail; - } -} - -/* Return element that has ELEM as car */ - -static inline struct objc_list** -list_find(struct objc_list** list, void* elem) -{ - while(*list) - { - if ((*list)->head =3D=3D elem) - return list; - list =3D &((*list)->tail); - } - return NULL; -} - -/* Free list (backwards recursive) */ - -static inline void -list_free(struct objc_list* list) -{ - if(list) - { - list_free(list->tail); - objc_free(list); - } -} - -#ifdef __cplusplus -} -#endif /* __cplusplus */ - -#endif /* not __GNU_OBJC_LIST_H */ Index: libobjc/objc/objc-list.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- libobjc/objc/objc-list.h (revision 174593) +++ libobjc/objc/objc-list.h (working copy) @@ -1,2 +0,0 @@ -#include "deprecated/objc-list.h" -