]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cp-demangle.c (stdio.h): File included unconditionaly.
authorPhilippe De Muyter <phdm@macqel.be>
Thu, 8 Jun 2000 07:29:53 +0000 (09:29 +0200)
committerPhilippe De Muyter <phdm@gcc.gnu.org>
Thu, 8 Jun 2000 07:29:53 +0000 (07:29 +0000)
* cp-demangle.c (stdio.h): File included unconditionaly.
(template_arg_list_new): Parameter list is PARAMS ((void)), not ().
* dyn-string.c (stdio.h): File included.
* partition.c (partition_print): No `&' needed to take the address of
a function.

From-SVN: r34450

libiberty/ChangeLog
libiberty/cp-demangle.c
libiberty/dyn-string.c
libiberty/partition.c

index a9a15f116f320a0e995e1a43d51c84ce8f8b3c7b..a86839693951f29a12e2a9ad5414bde920e0d19c 100644 (file)
@@ -1,3 +1,11 @@
+Thu Jun  8 09:25:54 2000  Philippe De Muyter  <phdm@macqel.be>
+
+       * cp-demangle.c (stdio.h): File included unconditionaly.
+       (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
+       * dyn-string.c (stdio.h): File included.
+       * partition.c (partition_print): No `&' needed to take the address of
+       a function.
+
 2000-06-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
index 2feac6c30efed0f45ba450ac44dfe1520e89a14a..58aed0d5f4fda15dadb005056ace043db8a8a185 100644 (file)
@@ -33,9 +33,7 @@
 #include <stdlib.h>
 #endif
 
-#if defined(CP_DEMANGLE_DEBUG) || defined(STANDALONE_DEMANGLER)
 #include <stdio.h>
-#endif
 
 #ifdef HAVE_STRING_H
 #include <string.h>
@@ -514,7 +512,7 @@ substitutions_print (dm, fp)
 /* Creates a new template argument list.  */
 
 static template_arg_list_t
-template_arg_list_new ()
+template_arg_list_new PARAMS((void))
 {
   template_arg_list_t new_list 
     = (template_arg_list_t) xmalloc (sizeof (struct template_arg_list_def));
index 2ae64ebb6c210087f5c0a1b92784e06a57455791..f4a9d9a74f8368c44874145ebeb4a6f469a7bb65 100644 (file)
@@ -23,6 +23,8 @@ Boston, MA 02111-1307, USA.  */
 #include "config.h"
 #endif
 
+#include <stdio.h>
+
 #ifdef HAVE_STRING_H
 #include <string.h>
 #endif
index 6975af49594042a3bd33cdc03f32595ad97fe8fc..a5a734937ae9edb7d3fcf55eb7afbe3399a71efc 100644 (file)
@@ -177,7 +177,7 @@ partition_print (part, fp)
          c = elements[c].next - elements;
        }
        /* Sort them.  */
-       qsort ((void *) class_elements, count, sizeof (int), &elem_compare);
+       qsort ((void *) class_elements, count, sizeof (int), elem_compare);
        /* Print them.  */
        fputc ('(', fp);
        for (i = 0; i < count; ++i)