international character, and the terminal or window can cope.) */
int sevenbit_strings = 0;
+
+/* String to be printed before error messages, if any. */
+
+char *error_pre_print;
\f
/* Add a new cleanup to the cleanup_chain,
and return the previous chain pointer
register struct cleanup *ptr;
while ((ptr = cleanup_chain) != old_chain)
{
+ cleanup_chain = ptr->next; /* Do this first incase recursion */
(*ptr->function) (ptr->arg);
- cleanup_chain = ptr->next;
free (ptr);
}
}
va_start (args);
target_terminal_ours ();
fflush (stdout);
+ if (error_pre_print)
+ fprintf (stderr, error_pre_print);
string = va_arg (args, char *);
vfprintf (stderr, string, args);
fprintf (stderr, "\n");
/* If user wants to see raw output, no problem. */
if (!demangle) {
fputs_filtered (linebuffer, stream);
+ return;
}
p = linebuffer;
}
#endif /* QUEUE_MISSING */
\f
+#ifndef HAVE_STRSTR
/* Simple implementation of strstr, since some implementations lack it. */
-char *
+const char *
strstr (in, find)
const char *in, *find;
{
while (0 != (p = strchr (p+1, *find))) {
if (strcmp (p, find))
- return (char *)p;
+ return p;
}
return 0;
}
+#endif /* do not HAVE_STRSTR */
\f
void
_initialize_utils ()