This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Convert include/ to ISO C90?
- From: Andreas Jaeger <aj at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: binutils at sources dot redhat dot com
- Date: Sun, 29 Jun 2003 12:34:16 +0200
- Subject: Convert include/ to ISO C90?
Since binutils, gdb and GCC are all moving to ISO C90, I have a
question about the shared include directory: Do we convert this also
to ISO C90?
Or will libiberty always stay K&R so that we really have to
differentiate for include files who uses them?
I'm appending a first patch for GCC (which then will find it's way
into the src directory).
Ok to commit? Are similar patches ok for include/?
Andreas
2003-06-29 Andreas Jaeger <aj@suse.de>
* ternary.h: Convert to ISO C90 prototypes, use void * instead of
PTR.
============================================================
Index: include/ternary.h
--- include/ternary.h 8 May 2001 06:13:58 -0000 1.2
+++ include/ternary.h 29 Jun 2003 10:33:45 -0000
@@ -1,5 +1,5 @@
/* ternary.h - Ternary Search Trees
- Copyright 2001 Free Software Foundation, Inc.
+ Copyright 2001, 2003 Free Software Foundation, Inc.
Contributed by Daniel Berlin (dan@cgsoftware.com)
@@ -38,14 +38,13 @@ ternary_node;
already there, and replace is 0.
Otherwise, replaces if it it exists, inserts if it doesn't, and
returns the data you passed in. */
-PTR ternary_insert PARAMS ((ternary_tree *p, const char *s,
- PTR data, int replace));
+PTR ternary_insert (ternary_tree *p, const char *s, void *data, int replace);
/* Delete the ternary search tree rooted at P.
Does NOT delete the data you associated with the strings. */
-void ternary_cleanup PARAMS ((ternary_tree p));
+void ternary_cleanup (ternary_tree p);
/* Search the ternary tree for string S, returning the data associated
with it if found. */
-PTR ternary_search PARAMS ((const ternary_node *p, const char *s));
+PTR ternary_search (const ternary_node *p, const char *s);
#endif
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126