FTEQW
Documentation of the FTE engine source tree.
test.c File Reference

Enumerations

enum  { false , true }
 

Functions

void PF_puts (pubprogfuncs_t *prinst, struct globalvars_s *gvars)
 
void PF_putv (pubprogfuncs_t *prinst, struct globalvars_s *pr_globals)
 
void PF_putf (pubprogfuncs_t *prinst, struct globalvars_s *pr_globals)
 
char * va (char *format,...)
 
void QCBUILTIN PF_sprintf_internal (pubprogfuncs_t *prinst, struct globalvars_s *pr_globals, const char *s, int firstarg, char *outbuf, int outbuflen)
 
void PF_printf (pubprogfuncs_t *prinst, struct globalvars_s *pr_globals)
 
void PF_spawn (pubprogfuncs_t *prinst, struct globalvars_s *pr_globals)
 
void PF_bad (pubprogfuncs_t *prinst, struct globalvars_s *gvars)
 
void Sys_Abort (char *s,...)
 
int Sys_Printf (char *s,...)
 
void *PDECL Sys_ReadFile (const char *fname, unsigned char *(PDECL *buf_get)(void *ctx, size_t len), void *buf_ctx, size_t *out_size, pbool issourcefile)
 
int Sys_FileSize (const char *fname)
 
pbool Sys_WriteFile (const char *fname, void *data, int len)
 
void runtest (const char *progsname)
 
void compile (int argc, const char **argv)
 
int main (int argc, const char **argv)
 

Variables

builtin_t builtins []
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
false 
true 

Function Documentation

◆ compile()

void compile ( int  argc,
const char **  argv 
)

◆ main()

int main ( int  argc,
const char **  argv 
)

◆ PF_bad()

void PF_bad ( pubprogfuncs_t prinst,
struct globalvars_s gvars 
)

◆ PF_printf()

void PF_printf ( pubprogfuncs_t prinst,
struct globalvars_s pr_globals 
)

◆ PF_putf()

void PF_putf ( pubprogfuncs_t prinst,
struct globalvars_s pr_globals 
)

◆ PF_puts()

void PF_puts ( pubprogfuncs_t prinst,
struct globalvars_s gvars 
)

◆ PF_putv()

void PF_putv ( pubprogfuncs_t prinst,
struct globalvars_s pr_globals 
)

◆ PF_spawn()

void PF_spawn ( pubprogfuncs_t prinst,
struct globalvars_s pr_globals 
)

◆ PF_sprintf_internal()

void QCBUILTIN PF_sprintf_internal ( pubprogfuncs_t prinst,
struct globalvars_s pr_globals,
const char *  s,
int  firstarg,
char *  outbuf,
int  outbuflen 
)

◆ runtest()

void runtest ( const char *  progsname)

◆ Sys_Abort()

void Sys_Abort ( char *  s,
  ... 
)

◆ Sys_FileSize()

int Sys_FileSize ( const char *  fname)

◆ Sys_Printf()

int Sys_Printf ( char *  s,
  ... 
)

◆ Sys_ReadFile()

void *PDECL Sys_ReadFile ( const char *  fname,
unsigned char *  PDECL *buf_get)(void *ctx, size_t len,
void buf_ctx,
size_t *  out_size,
pbool  issourcefile 
)

◆ Sys_WriteFile()

pbool Sys_WriteFile ( const char *  fname,
void data,
int  len 
)

◆ va()

char * va ( char *  format,
  ... 
)

Variable Documentation

◆ builtins

builtin_t builtins[]
Initial value:
= {
}
void PF_putv(pubprogfuncs_t *prinst, struct globalvars_s *pr_globals)
Definition: test.c:29
void PF_spawn(pubprogfuncs_t *prinst, struct globalvars_s *pr_globals)
Definition: test.c:394
void PF_putf(pubprogfuncs_t *prinst, struct globalvars_s *pr_globals)
Definition: test.c:34
void PF_bad(pubprogfuncs_t *prinst, struct globalvars_s *gvars)
Definition: test.c:402
void PF_printf(pubprogfuncs_t *prinst, struct globalvars_s *pr_globals)
Definition: test.c:387
void PF_puts(pubprogfuncs_t *prinst, struct globalvars_s *gvars)
Definition: test.c:21