remove possible trigraphs (eww)

This commit is contained in:
Bill Currie 2000-12-07 17:08:38 +00:00
parent 9f924b3a9e
commit 600e6dac57
5 changed files with 6 additions and 6 deletions

View file

@ -378,7 +378,7 @@ void Cmd_Exec_f (void)
return; return;
} }
// FIXME: is this safe freeing the hunk here??? // FIXME: is this safe freeing the hunk here?
mark = Hunk_LowMark (); mark = Hunk_LowMark ();
f = (char *)COM_LoadHunkFile (Cmd_Argv(1)); f = (char *)COM_LoadHunkFile (Cmd_Argv(1));
if (!f) if (!f)

View file

@ -358,7 +358,7 @@ static void Draw_TextureMode_f (void)
Con_Printf ("%s\n", modes[i].name); Con_Printf ("%s\n", modes[i].name);
return; return;
} }
Con_Printf ("current filter is unknown???\n"); Con_Printf ("current filter is unknown?\n");
return; return;
} }

View file

@ -751,7 +751,7 @@ void M_Keys_Draw (void)
if (keys[0] == -1) if (keys[0] == -1)
{ {
M_Print (140, y, "???"); M_Print (140, y, "?" "?" "?"); //avoid any possibility of trigraphs
} }
else else
{ {

View file

@ -176,7 +176,7 @@ Sends a text message in an out-of-band datagram
void Netchan_OutOfBandPrint (netadr_t adr, char *format, ...) void Netchan_OutOfBandPrint (netadr_t adr, char *format, ...)
{ {
va_list argptr; va_list argptr;
static char string[8192]; // ??? why static? static char string[8192]; // ?? why static?
va_start (argptr, format); va_start (argptr, format);
vsnprintf (string, sizeof(string), format, argptr); vsnprintf (string, sizeof(string), format, argptr);

View file

@ -419,7 +419,7 @@ char *PR_GlobalString (int ofs)
val = (void *)&pr_globals[ofs]; val = (void *)&pr_globals[ofs];
def = ED_GlobalAtOfs(ofs); def = ED_GlobalAtOfs(ofs);
if (!def) if (!def)
snprintf (line, sizeof(line), "%i(???)", ofs); snprintf (line, sizeof(line), "%i(?)", ofs);
else else
{ {
s = PR_ValueString (def->type, val); s = PR_ValueString (def->type, val);
@ -442,7 +442,7 @@ char *PR_GlobalStringNoContents (int ofs)
def = ED_GlobalAtOfs(ofs); def = ED_GlobalAtOfs(ofs);
if (!def) if (!def)
snprintf (line, sizeof(line), "%i(???)", ofs); snprintf (line, sizeof(line), "%i(?)", ofs);
else else
snprintf (line, sizeof(line), "%i(%s)", ofs, PR_GetString(def->s_name)); snprintf (line, sizeof(line), "%i(%s)", ofs, PR_GetString(def->s_name));