/* Function name - yyerror Description - called by yac/lex as to display an error. Input - msg - error message text Return Code/Output - none */ void yyerror (YYLTYPE *loc, PARSECONTEXT *parse_context, char const *msg) { char *nmsg; nmsg = translate_message( msg ); do_yyerror( loc, parse_context, "%s", nmsg ); free( nmsg ); }
FILE *moduleripper2_fopen (const char *name, const char *mode, const char *aid, int addr, int size) { TCHAR msg[MAX_DPATH], msg2[MAX_DPATH]; TCHAR *id; int ret; if (canceled) return NULL; got++; translate_message (NUMSG_MODRIP_SAVE, msg); id = au (aid); _stprintf (msg2, msg, id, addr, size); ret = gui_message_multibutton (2, msg2); xfree (id); if (ret < 0) canceled = 1; if (ret < 0 || ret != 1) return NULL; return moduleripper_fopen (name, mode); }
void romwarning (const int *ids) { int i, exp; TCHAR tmp1[MAX_DPATH], tmp2[MAX_DPATH]; TCHAR tmp3[MAX_DPATH]; exp = 0; tmp2[0] = 0; i = 0; while (ids[i] >= 0) { struct romdata *rd = getromdatabyid (ids[i]); getromname (rd, tmp1); _tcscat (tmp2, L"- "); _tcscat (tmp2, tmp1); _tcscat (tmp2, L"\n"); if (rd->type & (ROMTYPE_A2091BOOT | ROMTYPE_A4091BOOT)) exp++; i++; } translate_message (exp ? NUMSG_EXPROMNEED : NUMSG_ROMNEED, tmp3); gui_message (tmp3, tmp2); }