the Free Software Foundation, 51 Franklin Street - Fifth Floor,
Boston, MA 02110-1301, USA. */
-/////////////////////////////
-#include <string.h>
-#include <stdlib.h>
-/////////////////////////////
+#if 0 /* in valgrind */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
+#endif /* ! in valgrind */
+#if 0 /* in valgrind */
#include <stdio.h>
+#endif /* ! in valgrind */
+#if 0 /* in valgrind */
#ifdef HAVE_STRING_H
#include <string.h>
#endif
+#endif /* ! in valgrind */
+#if 0 /* in valgrind */
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
+#endif /* ! in valgrind */
+#if 0 /* in valgrind */
#include "libiberty.h"
+#endif /* ! in valgrind */
+
+#include "vg_libciface.h"
+
#include "dyn-string.h"
/* Performs in-place initialization of a dyn_string struct. This
*/
+#if 0 /* in valgrind */
#include "ansidecl.h"
#include <safe-ctype.h>
#include <stdio.h> /* for EOF */
+#endif /* ! in valgrind */
+
+#include "vg_libciface.h"
+
+#include "safe-ctype.h"
#if EOF != -1
#error "<safe-ctype.h> requires EOF == -1"
#define xstrdup(_str) \
VG_(arena_strdup)(VG_AR_DEMANGLE,"m_demangle.xstrdup",(_str))
+/* Required by safe-ctype.h */
+
+#undef EOF
+#define EOF -1
+
/* Taken from libiberty.h: */
#define ARRAY_SIZE(_arr) \