Changeset View
Changeset View
Standalone View
Standalone View
head/cddl/contrib/opensolaris/tools/ctf/cvt/dwarf.c
Show First 20 Lines • Show All 1,262 Lines • ▼ Show 20 Lines | |||||
* the same, they are arranged in a different order. Some terms, such as int, | * the same, they are arranged in a different order. Some terms, such as int, | ||||
* are implied in one, and explicitly named in the other. Given a base type | * are implied in one, and explicitly named in the other. Given a base type | ||||
* as input, this routine will return a common name, along with an intr_t | * as input, this routine will return a common name, along with an intr_t | ||||
* that reflects said name. | * that reflects said name. | ||||
*/ | */ | ||||
static intr_t * | static intr_t * | ||||
die_base_name_parse(const char *name, char **newp) | die_base_name_parse(const char *name, char **newp) | ||||
{ | { | ||||
char buf[100]; | char buf[256]; | ||||
char const *base; | char const *base; | ||||
char *c; | char *c; | ||||
int nlong = 0, nshort = 0, nchar = 0, nint = 0; | int nlong = 0, nshort = 0, nchar = 0, nint = 0; | ||||
int sign = 1; | int sign = 1; | ||||
char fmt = '\0'; | char fmt = '\0'; | ||||
intr_t *intr; | intr_t *intr; | ||||
if (strlen(name) > sizeof (buf) - 1) | if (strlen(name) > sizeof (buf) - 1) | ||||
▲ Show 20 Lines • Show All 740 Lines • Show Last 20 Lines |