+#include <ctype.h>
+
#include "libiberty.h"
#include "cg_arcs.h"
#include "sym_ids.h"
static Source_File non_existent_file =
{
- 0, "<non-existent-file>"
+ 0, "<non-existent-file>", 0, 0, 0, NULL
};
spec = colon + 1;
if (strlen (spec))
{
- if (isdigit (spec[0]))
+ if (isdigit ((unsigned char) spec[0]))
{
sym->line_num = atoi (spec);
}
sym->file = &non_existent_file;
}
}
- else if (isdigit (*spec))
+ else if (isdigit ((unsigned char) *spec))
{
sym->line_num = atoi (spec);
}
printf (
"[sym_id_parse]: arc %s:%s(%lx-%lx) -> %s:%s(%lx-%lx) to %s\n",
left->file ? left->file->name : "*",
- left->name ? left->name : "*", left->addr,
- left->end_addr,
+ left->name ? left->name : "*",
+ (unsigned long) left->addr,
+ (unsigned long) left->end_addr,
right->file ? right->file->name : "*",
- right->name ? right->name : "*", right->addr,
- right->end_addr,
+ right->name ? right->name : "*",
+ (unsigned long) right->addr,
+ (unsigned long) right->end_addr,
table_name[id->which_table]));
- arc_add (left, right, 0);
+ arc_add (left, right, (unsigned long) 0);
}
}
}