From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29318 invoked by alias); 8 Jul 2005 08:18:07 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 28370 invoked by uid 22791); 8 Jul 2005 08:17:31 -0000 Received: from ausmtp02.au.ibm.com (HELO ausmtp02.au.ibm.com) (202.81.18.187) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 08 Jul 2005 08:17:31 +0000 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp02.au.ibm.com (8.12.10/8.12.10) with ESMTP id j688CmGQ379062 for ; Fri, 8 Jul 2005 18:12:48 +1000 Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.250.237]) by sd0208e0.au.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j688KLQh105452 for ; Fri, 8 Jul 2005 18:20:21 +1000 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.12.11/8.13.3) with ESMTP id j688HPtI012787 for ; Fri, 8 Jul 2005 18:17:26 +1000 Received: from ozlabs.au.ibm.com (ozlabs.au.ibm.com [9.190.163.12]) by d23av04.au.ibm.com (8.12.11/8.12.11) with ESMTP id j688HPn7012770 for ; Fri, 8 Jul 2005 18:17:25 +1000 Received: from [9.190.238.28] (unknown [9.190.238.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.au.ibm.com (Postfix) with ESMTP id 4576E73686 for ; Fri, 8 Jul 2005 18:17:47 +1000 (EST) Message-ID: <42CE3031.1010907@au.ibm.com> Date: Fri, 08 Jul 2005 08:18:00 -0000 From: Ben Elliston User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: PATCH: More ISO-ifying of sim/common Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBBBB6B54F9F261A9F5B4FC46" X-SW-Source: 2005-07/txt/msg00081.txt.bz2 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBBBB6B54F9F261A9F5B4FC46 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 4165 Committed as obvious. 2005-07-08 Ben Elliston * callback.c: Remove ANSI_PROTOTYPES conditional code. * sim-load.c: Likewise. * syscall.c: Likewise. Index: callback.c =================================================================== RCS file: /home/bje/src-cvs/src/sim/common/callback.c,v retrieving revision 1.17 diff -u -p -r1.17 callback.c --- callback.c 29 Apr 2005 14:48:02 -0000 1.17 +++ callback.c 8 Jul 2005 07:47:19 -0000 @@ -26,11 +26,7 @@ #include "cconfig.h" #endif #include "ansidecl.h" -#ifdef ANSI_PROTOTYPES #include -#else -#include -#endif #include #ifdef HAVE_STDLIB_H #include @@ -755,23 +751,10 @@ os_init (p) /* VARARGS */ static void -#ifdef ANSI_PROTOTYPES os_printf_filtered (host_callback *p ATTRIBUTE_UNUSED, const char *format, ...) -#else -os_printf_filtered (p, va_alist) - host_callback *p; - va_dcl -#endif { va_list args; -#ifdef ANSI_PROTOTYPES va_start (args, format); -#else - char *format; - - va_start (args); - format = va_arg (args, char *); -#endif vfprintf (stdout, format, args); va_end (args); @@ -779,51 +762,24 @@ os_printf_filtered (p, va_alist) /* VARARGS */ static void -#ifdef ANSI_PROTOTYPES os_vprintf_filtered (host_callback *p ATTRIBUTE_UNUSED, const char *format, va_list args) -#else -os_vprintf_filtered (p, format, args) - host_callback *p; - const char *format; - va_list args; -#endif { vprintf (format, args); } /* VARARGS */ static void -#ifdef ANSI_PROTOTYPES os_evprintf_filtered (host_callback *p ATTRIBUTE_UNUSED, const char *format, va_lis t args) -#else -os_evprintf_filtered (p, format, args) - host_callback *p; - const char *format; - va_list args; -#endif { vfprintf (stderr, format, args); } /* VARARGS */ static void -#ifdef ANSI_PROTOTYPES os_error (host_callback *p ATTRIBUTE_UNUSED, const char *format, ...) -#else -os_error (p, va_alist) - host_callback *p; - va_dcl -#endif { va_list args; -#ifdef ANSI_PROTOTYPES va_start (args, format); -#else - char *format; - - va_start (args); - format = va_arg (args, char *); -#endif vfprintf (stderr, format, args); fprintf (stderr, "\n"); Index: sim-load.c =================================================================== RCS file: /home/bje/src-cvs/src/sim/common/sim-load.c,v retrieving revision 1.7 diff -u -p -r1.7 sim-load.c --- sim-load.c 15 Jun 2004 01:08:00 -0000 1.7 +++ sim-load.c 8 Jul 2005 07:47:19 -0000 @@ -24,11 +24,7 @@ along with this program; if not, write t #endif #include "ansidecl.h" #include /* for NULL */ -#ifdef ANSI_PROTOTYPES #include -#else -#include -#endif #ifdef HAVE_STDLIB_H #include #endif @@ -176,17 +172,11 @@ sim_load_file (sd, myname, callback, pro static void xprintf VPARAMS ((host_callback *callback, const char *fmt, ...)) { -#ifndef ANSI_PROTOTYPES host_callback *callback; char *fmt; -#endif va_list ap; VA_START (ap, fmt); -#ifndef ANSI_PROTOTYPES - callback = va_arg (ap, host_callback *); - fmt = va_arg (ap, char *); -#endif (*callback->vprintf_filtered) (callback, fmt, ap); @@ -196,17 +186,11 @@ xprintf VPARAMS ((host_callback *callbac static void eprintf VPARAMS ((host_callback *callback, const char *fmt, ...)) { -#ifndef ANSI_PROTOTYPES host_callback *callback; char *fmt; -#endif va_list ap; VA_START (ap, fmt); -#ifndef ANSI_PROTOTYPES - callback = va_arg (ap, host_callback *); - fmt = va_arg (ap, char *); -#endif (*callback->evprintf_filtered) (callback, fmt, ap); Index: syscall.c =================================================================== RCS file: /home/bje/src-cvs/src/sim/common/syscall.c,v retrieving revision 1.8 diff -u -p -r1.8 syscall.c --- syscall.c 28 Jan 2005 03:40:54 -0000 1.8 +++ syscall.c 8 Jul 2005 07:47:19 -0000 @@ -29,11 +29,7 @@ #endif #include "ansidecl.h" #include "libiberty.h" -#ifdef ANSI_PROTOTYPES #include -#else -#include -#endif #include #ifdef HAVE_STDLIB_H #include --------------enigBBBB6B54F9F261A9F5B4FC46 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 256 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCzjA5MGpskFPkywkRAmWNAJ0X76hh90zIsBBM06rI9uRCvIIrrwCdGeE7 1Wtl5uHoS1JPBMX0XvBgfkA= =5aVg -----END PGP SIGNATURE----- --------------enigBBBB6B54F9F261A9F5B4FC46--