Commit 48f3e29b by Philippe De Muyter Committed by Philippe De Muyter

cp-demangle.c (stdio.h): File included unconditionaly.

	* 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
parent 5667abce
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> 2000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* configure.in (ac_libiberty_warn_cflags): Add -pedantic. * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
......
...@@ -33,9 +33,7 @@ ...@@ -33,9 +33,7 @@
#include <stdlib.h> #include <stdlib.h>
#endif #endif
#if defined(CP_DEMANGLE_DEBUG) || defined(STANDALONE_DEMANGLER)
#include <stdio.h> #include <stdio.h>
#endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> #include <string.h>
...@@ -514,7 +512,7 @@ substitutions_print (dm, fp) ...@@ -514,7 +512,7 @@ substitutions_print (dm, fp)
/* Creates a new template argument list. */ /* Creates a new template argument list. */
static template_arg_list_t 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 new_list
= (template_arg_list_t) xmalloc (sizeof (struct template_arg_list_def)); = (template_arg_list_t) xmalloc (sizeof (struct template_arg_list_def));
......
...@@ -23,6 +23,8 @@ Boston, MA 02111-1307, USA. */ ...@@ -23,6 +23,8 @@ Boston, MA 02111-1307, USA. */
#include "config.h" #include "config.h"
#endif #endif
#include <stdio.h>
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> #include <string.h>
#endif #endif
......
...@@ -177,7 +177,7 @@ partition_print (part, fp) ...@@ -177,7 +177,7 @@ partition_print (part, fp)
c = elements[c].next - elements; c = elements[c].next - elements;
} }
/* Sort them. */ /* Sort them. */
qsort ((void *) class_elements, count, sizeof (int), &elem_compare); qsort ((void *) class_elements, count, sizeof (int), elem_compare);
/* Print them. */ /* Print them. */
fputc ('(', fp); fputc ('(', fp);
for (i = 0; i < count; ++i) for (i = 0; i < count; ++i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment