yet more macosx warnings
This commit is contained in:
188
util/readtags.c
188
util/readtags.c
@@ -128,101 +128,101 @@ static char fieldfixbuf[BUFSZ];
|
||||
#define NHTYPE_COMPLEX 2
|
||||
|
||||
struct nhdatatypes_t readtagstypes[] = {
|
||||
{NHTYPE_SIMPLE, "any", sizeof(anything)},
|
||||
{NHTYPE_SIMPLE, "genericptr_t", sizeof(genericptr_t)},
|
||||
{NHTYPE_SIMPLE, "aligntyp", sizeof(aligntyp)},
|
||||
{NHTYPE_SIMPLE, "Bitfield", sizeof(uint8_t)},
|
||||
{NHTYPE_SIMPLE, "boolean", sizeof(boolean)},
|
||||
{NHTYPE_SIMPLE, "char", sizeof(char)},
|
||||
{NHTYPE_SIMPLE, "int", sizeof(int)},
|
||||
{NHTYPE_SIMPLE, "long", sizeof(long)},
|
||||
{NHTYPE_SIMPLE, "schar", sizeof(schar)},
|
||||
{NHTYPE_SIMPLE, "short", sizeof(short)},
|
||||
{NHTYPE_SIMPLE, "size_t", sizeof(size_t)},
|
||||
{NHTYPE_SIMPLE, "string", 1},
|
||||
{NHTYPE_SIMPLE, "time_t", sizeof(time_t)},
|
||||
{NHTYPE_SIMPLE, "uchar", sizeof(uchar)},
|
||||
{NHTYPE_SIMPLE, "unsigned char", sizeof(unsigned char)},
|
||||
{NHTYPE_SIMPLE, "unsigned int", sizeof(unsigned int)},
|
||||
{NHTYPE_SIMPLE, "unsigned long", sizeof(unsigned long)},
|
||||
{NHTYPE_SIMPLE, "unsigned short", sizeof(unsigned short)},
|
||||
{NHTYPE_SIMPLE, "unsigned", sizeof(unsigned)},
|
||||
{NHTYPE_SIMPLE, "xchar", sizeof(xchar)},
|
||||
{NHTYPE_COMPLEX,"align", sizeof(struct align)},
|
||||
/* {NHTYPE_COMPLEX,"attack", sizeof(struct attack)}, */ /* permonst affil */
|
||||
{NHTYPE_COMPLEX,"attribs", sizeof(struct attribs)},
|
||||
{NHTYPE_COMPLEX,"bill_x", sizeof(struct bill_x)},
|
||||
{NHTYPE_COMPLEX,"book_info", sizeof(struct book_info)},
|
||||
{NHTYPE_COMPLEX,"branch", sizeof(struct branch)},
|
||||
{NHTYPE_COMPLEX,"bubble", sizeof(struct bubble)},
|
||||
{NHTYPE_COMPLEX,"cemetery", sizeof(struct cemetery)},
|
||||
/* {NHTYPE_COMPLEX,"container", sizeof(struct container)}, */
|
||||
{NHTYPE_COMPLEX,"context_info", sizeof(struct context_info)},
|
||||
{NHTYPE_COMPLEX,"d_flags", sizeof(struct d_flags)},
|
||||
{NHTYPE_COMPLEX,"d_level", sizeof(struct d_level)},
|
||||
{NHTYPE_COMPLEX,"damage", sizeof(struct damage)},
|
||||
{NHTYPE_COMPLEX,"dest_area", sizeof(struct dest_area)},
|
||||
{NHTYPE_COMPLEX,"dgn_topology", sizeof(struct dgn_topology)},
|
||||
{NHTYPE_COMPLEX,"dig_info", sizeof(struct dig_info)},
|
||||
{NHTYPE_COMPLEX,"dungeon", sizeof(struct dungeon)},
|
||||
{NHTYPE_COMPLEX,"edog", sizeof(struct edog)},
|
||||
{NHTYPE_COMPLEX,"egd", sizeof(struct egd)},
|
||||
{NHTYPE_COMPLEX,"emin", sizeof(struct emin)},
|
||||
{NHTYPE_COMPLEX,"engr", sizeof(struct engr)},
|
||||
{NHTYPE_COMPLEX,"epri", sizeof(struct epri)},
|
||||
{NHTYPE_COMPLEX,"eshk", sizeof(struct eshk)},
|
||||
{NHTYPE_COMPLEX,"fakecorridor", sizeof(struct fakecorridor)},
|
||||
{NHTYPE_COMPLEX,"fe", sizeof(struct fe)},
|
||||
{NHTYPE_COMPLEX,"flag", sizeof(struct flag)},
|
||||
{NHTYPE_COMPLEX,"fruit", sizeof(struct fruit)},
|
||||
{NHTYPE_COMPLEX,"kinfo", sizeof(struct kinfo)},
|
||||
{NHTYPE_COMPLEX,"levelflags", sizeof(struct levelflags)},
|
||||
{NHTYPE_COMPLEX,"linfo", sizeof(struct linfo)},
|
||||
{NHTYPE_COMPLEX,"ls_t", sizeof(struct ls_t)},
|
||||
{NHTYPE_COMPLEX,"mapseen_feat", sizeof(struct mapseen_feat)},
|
||||
{NHTYPE_COMPLEX,"mapseen_flags", sizeof(struct mapseen_flags)},
|
||||
{NHTYPE_COMPLEX,"mapseen_rooms", sizeof(struct mapseen_rooms)},
|
||||
{NHTYPE_COMPLEX,"mapseen", sizeof(struct mapseen)},
|
||||
{NHTYPE_COMPLEX,"mextra", sizeof(struct mextra)},
|
||||
{NHTYPE_COMPLEX,"mkroom", sizeof(struct mkroom)},
|
||||
{NHTYPE_COMPLEX,"monst", sizeof(struct monst)},
|
||||
{NHTYPE_COMPLEX,"mvitals", sizeof(struct mvitals)},
|
||||
{NHTYPE_COMPLEX,"nhcoord", sizeof(struct nhcoord)},
|
||||
{NHTYPE_COMPLEX,"nhrect", sizeof(struct nhrect)},
|
||||
{NHTYPE_COMPLEX,"novel_tracking", sizeof(struct novel_tracking)},
|
||||
{NHTYPE_COMPLEX,"obj", sizeof(struct obj)},
|
||||
{NHTYPE_COMPLEX,"objclass", sizeof(struct objclass)},
|
||||
{NHTYPE_COMPLEX,"obj_split", sizeof(struct obj_split)},
|
||||
{NHTYPE_COMPLEX,"oextra", sizeof(struct oextra)},
|
||||
/* {NHTYPE_COMPLEX,"permonst", sizeof(struct permonst)}, */
|
||||
{NHTYPE_COMPLEX,"polearm_info", sizeof(struct polearm_info)},
|
||||
{NHTYPE_COMPLEX,"prop", sizeof(struct prop)},
|
||||
{NHTYPE_COMPLEX,"q_score", sizeof(struct q_score)},
|
||||
{NHTYPE_COMPLEX,"rm", sizeof(struct rm)},
|
||||
{NHTYPE_COMPLEX,"s_level", sizeof(struct s_level)},
|
||||
{NHTYPE_COMPLEX,"savefile_info", sizeof(struct savefile_info)},
|
||||
{NHTYPE_COMPLEX,"skills", sizeof(struct skills)},
|
||||
{NHTYPE_COMPLEX,"spell", sizeof(struct spell)},
|
||||
{NHTYPE_COMPLEX,"stairway", sizeof(struct stairway)},
|
||||
{NHTYPE_SIMPLE, (char *) "any", sizeof(anything)},
|
||||
{NHTYPE_SIMPLE, (char *) "genericptr_t", sizeof(genericptr_t)},
|
||||
{NHTYPE_SIMPLE, (char *) "aligntyp", sizeof(aligntyp)},
|
||||
{NHTYPE_SIMPLE, (char *) "Bitfield", sizeof(uint8_t)},
|
||||
{NHTYPE_SIMPLE, (char *) "boolean", sizeof(boolean)},
|
||||
{NHTYPE_SIMPLE, (char *) "char", sizeof(char)},
|
||||
{NHTYPE_SIMPLE, (char *) "int", sizeof(int)},
|
||||
{NHTYPE_SIMPLE, (char *) "long", sizeof(long)},
|
||||
{NHTYPE_SIMPLE, (char *) "schar", sizeof(schar)},
|
||||
{NHTYPE_SIMPLE, (char *) "short", sizeof(short)},
|
||||
{NHTYPE_SIMPLE, (char *) "size_t", sizeof(size_t)},
|
||||
{NHTYPE_SIMPLE, (char *) "string", 1},
|
||||
{NHTYPE_SIMPLE, (char *) "time_t", sizeof(time_t)},
|
||||
{NHTYPE_SIMPLE, (char *) "uchar", sizeof(uchar)},
|
||||
{NHTYPE_SIMPLE, (char *) "unsigned char", sizeof(unsigned char)},
|
||||
{NHTYPE_SIMPLE, (char *) "unsigned int", sizeof(unsigned int)},
|
||||
{NHTYPE_SIMPLE, (char *) "unsigned long", sizeof(unsigned long)},
|
||||
{NHTYPE_SIMPLE, (char *) "unsigned short", sizeof(unsigned short)},
|
||||
{NHTYPE_SIMPLE, (char *) "unsigned", sizeof(unsigned)},
|
||||
{NHTYPE_SIMPLE, (char *) "xchar", sizeof(xchar)},
|
||||
{NHTYPE_COMPLEX, (char *) "align", sizeof(struct align)},
|
||||
/* {NHTYPE_COMPLEX, (char *) "attack", sizeof(struct attack)}, */ /* permonst affil */
|
||||
{NHTYPE_COMPLEX, (char *) "attribs", sizeof(struct attribs)},
|
||||
{NHTYPE_COMPLEX, (char *) "bill_x", sizeof(struct bill_x)},
|
||||
{NHTYPE_COMPLEX, (char *) "book_info", sizeof(struct book_info)},
|
||||
{NHTYPE_COMPLEX, (char *) "branch", sizeof(struct branch)},
|
||||
{NHTYPE_COMPLEX, (char *) "bubble", sizeof(struct bubble)},
|
||||
{NHTYPE_COMPLEX, (char *) "cemetery", sizeof(struct cemetery)},
|
||||
/* {NHTYPE_COMPLEX, (char *) "container", sizeof(struct container)}, */
|
||||
{NHTYPE_COMPLEX, (char *) "context_info", sizeof(struct context_info)},
|
||||
{NHTYPE_COMPLEX, (char *) "d_flags", sizeof(struct d_flags)},
|
||||
{NHTYPE_COMPLEX, (char *) "d_level", sizeof(struct d_level)},
|
||||
{NHTYPE_COMPLEX, (char *) "damage", sizeof(struct damage)},
|
||||
{NHTYPE_COMPLEX, (char *) "dest_area", sizeof(struct dest_area)},
|
||||
{NHTYPE_COMPLEX, (char *) "dgn_topology", sizeof(struct dgn_topology)},
|
||||
{NHTYPE_COMPLEX, (char *) "dig_info", sizeof(struct dig_info)},
|
||||
{NHTYPE_COMPLEX, (char *) "dungeon", sizeof(struct dungeon)},
|
||||
{NHTYPE_COMPLEX, (char *) "edog", sizeof(struct edog)},
|
||||
{NHTYPE_COMPLEX, (char *) "egd", sizeof(struct egd)},
|
||||
{NHTYPE_COMPLEX, (char *) "emin", sizeof(struct emin)},
|
||||
{NHTYPE_COMPLEX, (char *) "engr", sizeof(struct engr)},
|
||||
{NHTYPE_COMPLEX, (char *) "epri", sizeof(struct epri)},
|
||||
{NHTYPE_COMPLEX, (char *) "eshk", sizeof(struct eshk)},
|
||||
{NHTYPE_COMPLEX, (char *) "fakecorridor", sizeof(struct fakecorridor)},
|
||||
{NHTYPE_COMPLEX, (char *) "fe", sizeof(struct fe)},
|
||||
{NHTYPE_COMPLEX, (char *) "flag", sizeof(struct flag)},
|
||||
{NHTYPE_COMPLEX, (char *) "fruit", sizeof(struct fruit)},
|
||||
{NHTYPE_COMPLEX, (char *) "kinfo", sizeof(struct kinfo)},
|
||||
{NHTYPE_COMPLEX, (char *) "levelflags", sizeof(struct levelflags)},
|
||||
{NHTYPE_COMPLEX, (char *) "linfo", sizeof(struct linfo)},
|
||||
{NHTYPE_COMPLEX, (char *) "ls_t", sizeof(struct ls_t)},
|
||||
{NHTYPE_COMPLEX, (char *) "mapseen_feat", sizeof(struct mapseen_feat)},
|
||||
{NHTYPE_COMPLEX, (char *) "mapseen_flags", sizeof(struct mapseen_flags)},
|
||||
{NHTYPE_COMPLEX, (char *) "mapseen_rooms", sizeof(struct mapseen_rooms)},
|
||||
{NHTYPE_COMPLEX, (char *) "mapseen", sizeof(struct mapseen)},
|
||||
{NHTYPE_COMPLEX, (char *) "mextra", sizeof(struct mextra)},
|
||||
{NHTYPE_COMPLEX, (char *) "mkroom", sizeof(struct mkroom)},
|
||||
{NHTYPE_COMPLEX, (char *) "monst", sizeof(struct monst)},
|
||||
{NHTYPE_COMPLEX, (char *) "mvitals", sizeof(struct mvitals)},
|
||||
{NHTYPE_COMPLEX, (char *) "nhcoord", sizeof(struct nhcoord)},
|
||||
{NHTYPE_COMPLEX, (char *) "nhrect", sizeof(struct nhrect)},
|
||||
{NHTYPE_COMPLEX, (char *) "novel_tracking", sizeof(struct novel_tracking)},
|
||||
{NHTYPE_COMPLEX, (char *) "obj", sizeof(struct obj)},
|
||||
{NHTYPE_COMPLEX, (char *) "objclass", sizeof(struct objclass)},
|
||||
{NHTYPE_COMPLEX, (char *) "obj_split", sizeof(struct obj_split)},
|
||||
{NHTYPE_COMPLEX, (char *) "oextra", sizeof(struct oextra)},
|
||||
/* {NHTYPE_COMPLEX, (char *) "permonst", sizeof(struct permonst)}, */
|
||||
{NHTYPE_COMPLEX, (char *) "polearm_info", sizeof(struct polearm_info)},
|
||||
{NHTYPE_COMPLEX, (char *) "prop", sizeof(struct prop)},
|
||||
{NHTYPE_COMPLEX, (char *) "q_score", sizeof(struct q_score)},
|
||||
{NHTYPE_COMPLEX, (char *) "rm", sizeof(struct rm)},
|
||||
{NHTYPE_COMPLEX, (char *) "s_level", sizeof(struct s_level)},
|
||||
{NHTYPE_COMPLEX, (char *) "savefile_info", sizeof(struct savefile_info)},
|
||||
{NHTYPE_COMPLEX, (char *) "skills", sizeof(struct skills)},
|
||||
{NHTYPE_COMPLEX, (char *) "spell", sizeof(struct spell)},
|
||||
{NHTYPE_COMPLEX, (char *) "stairway", sizeof(struct stairway)},
|
||||
#ifdef SYSFLAGS
|
||||
{NHTYPE_COMPLEX,"sysflag", sizeof(struct sysflag)},
|
||||
{NHTYPE_COMPLEX, (char *) "sysflag", sizeof(struct sysflag)},
|
||||
#endif
|
||||
{NHTYPE_COMPLEX,"takeoff_info", sizeof(struct takeoff_info)},
|
||||
{NHTYPE_COMPLEX,"tin_info", sizeof(struct tin_info)},
|
||||
{NHTYPE_COMPLEX,"trap", sizeof(struct trap)},
|
||||
{NHTYPE_COMPLEX,"tribute_info", sizeof(struct tribute_info)},
|
||||
{NHTYPE_COMPLEX,"u_achieve", sizeof(struct u_achieve)},
|
||||
{NHTYPE_COMPLEX,"u_conduct", sizeof(struct u_conduct)},
|
||||
{NHTYPE_COMPLEX,"u_event", sizeof(struct u_event)},
|
||||
{NHTYPE_COMPLEX,"u_have", sizeof(struct u_have)},
|
||||
{NHTYPE_COMPLEX,"u_realtime", sizeof(struct u_realtime)},
|
||||
{NHTYPE_COMPLEX,"u_roleplay", sizeof(struct u_roleplay)},
|
||||
{NHTYPE_COMPLEX,"version_info", sizeof(struct version_info)},
|
||||
{NHTYPE_COMPLEX,"victual_info", sizeof(struct victual_info)},
|
||||
{NHTYPE_COMPLEX,"vlaunchinfo", sizeof(union vlaunchinfo)},
|
||||
{NHTYPE_COMPLEX,"vptrs", sizeof(union vptrs)},
|
||||
{NHTYPE_COMPLEX,"warntype_info", sizeof(struct warntype_info)},
|
||||
{NHTYPE_COMPLEX,"you", sizeof(struct you)}
|
||||
{NHTYPE_COMPLEX, (char *) "takeoff_info", sizeof(struct takeoff_info)},
|
||||
{NHTYPE_COMPLEX, (char *) "tin_info", sizeof(struct tin_info)},
|
||||
{NHTYPE_COMPLEX, (char *) "trap", sizeof(struct trap)},
|
||||
{NHTYPE_COMPLEX, (char *) "tribute_info", sizeof(struct tribute_info)},
|
||||
{NHTYPE_COMPLEX, (char *) "u_achieve", sizeof(struct u_achieve)},
|
||||
{NHTYPE_COMPLEX, (char *) "u_conduct", sizeof(struct u_conduct)},
|
||||
{NHTYPE_COMPLEX, (char *) "u_event", sizeof(struct u_event)},
|
||||
{NHTYPE_COMPLEX, (char *) "u_have", sizeof(struct u_have)},
|
||||
{NHTYPE_COMPLEX, (char *) "u_realtime", sizeof(struct u_realtime)},
|
||||
{NHTYPE_COMPLEX, (char *) "u_roleplay", sizeof(struct u_roleplay)},
|
||||
{NHTYPE_COMPLEX, (char *) "version_info", sizeof(struct version_info)},
|
||||
{NHTYPE_COMPLEX, (char *) "victual_info", sizeof(struct victual_info)},
|
||||
{NHTYPE_COMPLEX, (char *) "vlaunchinfo", sizeof(union vlaunchinfo)},
|
||||
{NHTYPE_COMPLEX, (char *) "vptrs", sizeof(union vptrs)},
|
||||
{NHTYPE_COMPLEX, (char *) "warntype_info", sizeof(struct warntype_info)},
|
||||
{NHTYPE_COMPLEX, (char *) "you", sizeof(struct you)}
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -231,7 +231,7 @@ struct nhdatatypes_t readtagstypes[] = {
|
||||
* the code for these ones.
|
||||
*/
|
||||
struct needs_array_handling nah[] = {
|
||||
{"fakecorr", "egd"},
|
||||
{"fakecorr", (char *) "egd"},
|
||||
{"bill", "eshk"},
|
||||
{"msrooms", "mapseen"},
|
||||
{"mtrack", "monst"},
|
||||
|
||||
Reference in New Issue
Block a user