generic *xcalloc ();
generic *xmalloc ();
+
+extern char *index ();
+extern char *rindex ();
\f
char *
my_strerror (e)
if (prefix == (char *)0)
{
- p = strrchr (argv[0], '/');
+ p = rindex (argv[0], '/');
if (p != (char *)0)
{
prefix = argv[0];
}
else if (first_file
- && (p = strrchr (arg, '.')) != (char *)0
+ && (p = rindex (arg, '.')) != (char *)0
&& strcmp (p, ".o") == 0)
{
first_file = 0;
#include <string.h>
#else
#include <strings.h>
-#define strrchr rindex
#endif
extern char *getpwd ();
+extern char *index ();
+extern char *rindex ();
+
/* IMPORTANT NOTE: Please see the file README.DWARF for important details
regarding the GNU implementation of Dwarf. */
The current Dwarf draft specification calls for Dwarf fundamental types
to accurately reflect the fact that a given type was either a "plain"
- integral type or an explicitly "signed" integral type. Unfortuantely,
+ integral type or an explicitly "signed" integral type. Unfortunately,
we can't always do this, because GCC may already have thrown away the
information about the precise way in which the type was originally
specified, as in:
abort ();
/* The bit position given by DECL_FIELD_BITPOS could be non-constant
- in the case where one or more variable sized members preceeded this
+ in the case where one or more variable sized members preceded this
member in the containing struct type. We could probably correctly
handle this case someday, by it's too complicated to deal with at
the moment (and probably too rare to worry about), so just punt on
/* Existing Dwarf debuggers need and expect the location descriptors for
formal parameters to reflect either the place where the parameters get
passed (if they are passed on the stack and in memory) or else the
- (preserved) registers which the paramaters get copied to during the
+ (preserved) registers which the parameters get copied to during the
function prologue.
At least this is the way things are for most common CISC machines
assert (type); /* Must be a bit field. */
/* The bit position given by DECL_FIELD_BITPOS could be non-constant
- in the case where one or more variable sized members preceeded this
+ in the case where one or more variable sized members preceded this
member in the containing struct type. We could probably correctly
handle this case someday, by it's too complicated to deal with at
the moment, so just punt on the whole AT_bit_offset attribute for
}
{
- register char *tail = strrchr (filename, '/');
+ register char *tail = rindex (filename, '/');
if (tail != NULL)
filename = tail;