mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 12:31:10 +00:00
dbd3d6502a
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).
47 lines
1.5 KiB
C
47 lines
1.5 KiB
C
/*
|
|
#FILENAME#
|
|
|
|
#DESCRIPTION#
|
|
|
|
Copyright (C) 2002 #AUTHOR#
|
|
|
|
Author: #AUTHOR#
|
|
Date: #DATE#
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation; either version 2
|
|
of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to:
|
|
|
|
Free Software Foundation, Inc.
|
|
59 Temple Place - Suite 330
|
|
Boston, MA 02111-1307, USA
|
|
|
|
*/
|
|
|
|
#include "gib_tree.h"
|
|
|
|
bool GIB_Escaped (const char *str, int i);
|
|
|
|
char GIB_Parse_Match_Brace (const char *str, unsigned int *i);
|
|
char GIB_Parse_Match_Backtick (const char *str, unsigned int *i);
|
|
char GIB_Parse_Match_Index (const char *str, unsigned int *i);
|
|
char GIB_Parse_Match_Paren (const char *str, unsigned int *i);
|
|
char GIB_Parse_Match_Var (const char *str, unsigned int *i);
|
|
|
|
gib_tree_t *GIB_Parse_Lines (const char *program, unsigned int pofs);
|
|
gib_tree_t *GIB_Parse_Embedded (gib_tree_t *token);
|
|
|
|
extern bool gib_parse_error;
|
|
void GIB_Parse_Error (const char *msg, unsigned int pos);
|
|
const char *GIB_Parse_ErrorMsg (void) __attribute__((pure));
|
|
unsigned int GIB_Parse_ErrorPos (void) __attribute__((pure));
|