mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-31 00:30:57 +00:00
Nuke qboolean from orbit
I never liked it, but with C2x coming out, it's best to handle bools properly. I haven't gone through all the uses of int as bool (I'll leave that for fixing when I encounter them), but this gets QF working with both c2x (really, gnu2x because of raw strings).
This commit is contained in:
parent
9871b44d68
commit
dbd3d6502a
273 changed files with 894 additions and 897 deletions
|
@ -239,7 +239,7 @@ ED_NumForEdict (progs_t *pr, edict_t *e)
|
|||
return b;
|
||||
}
|
||||
|
||||
qboolean
|
||||
bool
|
||||
PR_EdictValid (progs_t *pr, pr_uint_t e)
|
||||
{
|
||||
if (!pr->num_edicts) {
|
||||
|
|
|
@ -212,7 +212,7 @@ ED_NewString (progs_t *pr, const char *string)
|
|||
Can parse either fields or globals
|
||||
returns false if error
|
||||
*/
|
||||
VISIBLE qboolean
|
||||
VISIBLE bool
|
||||
ED_ParseEpair (progs_t *pr, pr_type_t *base, pr_def_t *key, const char *s)
|
||||
{
|
||||
pr_def_t *def;
|
||||
|
|
|
@ -377,7 +377,7 @@ get_string (progs_t *pr, pr_string_t num)
|
|||
}
|
||||
}
|
||||
|
||||
VISIBLE qboolean
|
||||
VISIBLE bool
|
||||
PR_StringValid (progs_t *pr, pr_string_t num)
|
||||
{
|
||||
if (num >= 0) {
|
||||
|
@ -386,7 +386,7 @@ PR_StringValid (progs_t *pr, pr_string_t num)
|
|||
return get_strref (pr->pr_string_resources, num) != 0;
|
||||
}
|
||||
|
||||
VISIBLE qboolean
|
||||
VISIBLE bool
|
||||
PR_StringMutable (progs_t *pr, pr_string_t num)
|
||||
{
|
||||
strref_t *sr;
|
||||
|
@ -770,7 +770,7 @@ I_DoPrint (dstring_t *tmp, dstring_t *result, fmt_item_t *formatting)
|
|||
fmt_item_t *current = formatting;
|
||||
|
||||
while (current) {
|
||||
qboolean doPrecision, doWidth;
|
||||
bool doPrecision, doWidth;
|
||||
|
||||
doPrecision = -1 != current->precision;
|
||||
doWidth = 0 != (current->flags & FMT_WIDTH);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue