From: lordhavoc Date: Thu, 8 Nov 2001 02:25:53 +0000 (+0000) Subject: got rid of two trigraph warnings in gcc 3.0 X-Git-Tag: RELEASE_0_2_0_RC1~736 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=89e7133bd90b1f18ac346f56191b311db7d71191;hp=ba8961ca97a2bda57ad94a8879d5bd445960a35e;p=xonotic%2Fdarkplaces.git got rid of two trigraph warnings in gcc 3.0 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1010 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/pr_edict.c b/pr_edict.c index 382394dd..c7e722ab 100644 --- a/pr_edict.c +++ b/pr_edict.c @@ -497,22 +497,22 @@ char *PR_GlobalString (int ofs) ddef_t *def; void *val; static char line[128]; - + val = (void *)&pr_globals[ofs]; def = ED_GlobalAtOfs(ofs); if (!def) - sprintf (line,"%i(???)", ofs); + sprintf (line,"%i(??\?)", ofs); // LordHavoc: escaping the third ? so it is not a trigraph else { s = PR_ValueString (def->type, val); sprintf (line,"%i(%s)%s", ofs, pr_strings + def->s_name, s); } - + i = strlen(line); for ( ; i<20 ; i++) strcat (line," "); strcat (line," "); - + return line; } @@ -521,18 +521,18 @@ char *PR_GlobalStringNoContents (int ofs) int i; ddef_t *def; static char line[128]; - + def = ED_GlobalAtOfs(ofs); if (!def) - sprintf (line,"%i(???)", ofs); + sprintf (line,"%i(??\?)", ofs); // LordHavoc: escaping the third ? so it is not a trigraph else sprintf (line,"%i(%s)", ofs, pr_strings + def->s_name); - + i = strlen(line); for ( ; i<20 ; i++) strcat (line," "); strcat (line," "); - + return line; }