and a bit more
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3221 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
b3b885c122
commit
1c985c65d2
3 changed files with 5 additions and 9 deletions
|
@ -24,10 +24,6 @@
|
||||||
#define progfuncs qccprogfuncs
|
#define progfuncs qccprogfuncs
|
||||||
extern progfuncs_t *qccprogfuncs;
|
extern progfuncs_t *qccprogfuncs;
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(MINGW)
|
|
||||||
#define inline _inline
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
#define stricmp strcasecmp
|
#define stricmp strcasecmp
|
||||||
#define strnicmp strncasecmp
|
#define strnicmp strncasecmp
|
||||||
|
@ -875,7 +871,7 @@ extern qcc_cachedsourcefile_t *qcc_sourcefile;
|
||||||
|
|
||||||
|
|
||||||
#ifdef COMMONINLINES
|
#ifdef COMMONINLINES
|
||||||
bool inline QCC_PR_CheckToken (char *string)
|
static bool inline QCC_PR_CheckToken (char *string)
|
||||||
{
|
{
|
||||||
if (pr_token_type != tt_punct)
|
if (pr_token_type != tt_punct)
|
||||||
return false;
|
return false;
|
||||||
|
@ -887,7 +883,7 @@ bool inline QCC_PR_CheckToken (char *string)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void inline QCC_PR_Expect (char *string)
|
static void inline QCC_PR_Expect (char *string)
|
||||||
{
|
{
|
||||||
if (strcmp (string, pr_token))
|
if (strcmp (string, pr_token))
|
||||||
QCC_PR_ParseError ("expected %s, found %s",string, pr_token);
|
QCC_PR_ParseError ("expected %s, found %s",string, pr_token);
|
||||||
|
|
|
@ -1067,7 +1067,7 @@ Emits a primitive statement, returning the var it places it's value in
|
||||||
============
|
============
|
||||||
*/
|
*/
|
||||||
QCC_def_t *QCC_PR_Statement ( QCC_opcode_t *op, QCC_def_t *var_a, QCC_def_t *var_b, QCC_dstatement_t **outstatement);
|
QCC_def_t *QCC_PR_Statement ( QCC_opcode_t *op, QCC_def_t *var_a, QCC_def_t *var_b, QCC_dstatement_t **outstatement);
|
||||||
int inline QCC_ShouldConvert(QCC_def_t *var, etype_t wanted)
|
static int QCC_ShouldConvert(QCC_def_t *var, etype_t wanted)
|
||||||
{
|
{
|
||||||
if (var->type->type == ev_integer && wanted == ev_function)
|
if (var->type->type == ev_integer && wanted == ev_function)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -1709,7 +1709,7 @@ char *Sva(char *msg, ...)
|
||||||
|
|
||||||
#define PROGDEFS_MAX_SIZE 16384
|
#define PROGDEFS_MAX_SIZE 16384
|
||||||
//write (to file buf) and add to the crc
|
//write (to file buf) and add to the crc
|
||||||
void inline Add(char *p, unsigned short *crc, char *file)
|
static void Add(char *p, unsigned short *crc, char *file)
|
||||||
{
|
{
|
||||||
char *s;
|
char *s;
|
||||||
int i = strlen(file);
|
int i = strlen(file);
|
||||||
|
@ -1725,7 +1725,7 @@ void inline Add(char *p, unsigned short *crc, char *file)
|
||||||
#define ADD(p) Add(p, &crc, file)
|
#define ADD(p) Add(p, &crc, file)
|
||||||
//#define ADD(p) {char *s;int i = strlen(p);for(s=p;*s;s++,i++){QCC_CRC_ProcessByte(&crc, *s);file[i] = *s;}file[i]='\0';}
|
//#define ADD(p) {char *s;int i = strlen(p);for(s=p;*s;s++,i++){QCC_CRC_ProcessByte(&crc, *s);file[i] = *s;}file[i]='\0';}
|
||||||
|
|
||||||
void inline Add3(char *p, unsigned short *crc, char *file)
|
static void Add3(char *p, unsigned short *crc, char *file)
|
||||||
{
|
{
|
||||||
char *s;
|
char *s;
|
||||||
for(s=p;*s;s++)
|
for(s=p;*s;s++)
|
||||||
|
|
Loading…
Reference in a new issue