mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
const merge testing. qfcc is currently borked in that dept.
This commit is contained in:
parent
62c783f47a
commit
ef99ad24b0
2 changed files with 11 additions and 3 deletions
|
@ -28,7 +28,7 @@ main ()
|
|||
func_t main_func;
|
||||
FILE *f;
|
||||
int len;
|
||||
//int i;
|
||||
int i;
|
||||
|
||||
Cvar_Init_Hash ();
|
||||
Cmd_Init_Hash ();
|
||||
|
@ -62,9 +62,9 @@ main ()
|
|||
Sys_Error ("couldn't load %s\n", "qwaq.dat");
|
||||
|
||||
*progs.edicts = PR_InitEdicts (&progs, MAX_EDICTS);
|
||||
#if 0
|
||||
for (i = 0; i < progs.progs->numstatements; i++)
|
||||
PR_PrintStatement (&progs, &progs.pr_statements[i]);
|
||||
#if 0
|
||||
printf ("\n");
|
||||
for (i = 0; i < progs.progs->numfunctions; i++) {
|
||||
dfunction_t *func = &progs.pr_functions[i];
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
float foo = 1;
|
||||
float bar = 1;
|
||||
|
||||
float () main =
|
||||
{
|
||||
local float handle;
|
||||
local string buffer;
|
||||
|
||||
handle = open ("builtins.c", 0);
|
||||
handle = open ("main.qc", 0);
|
||||
if (handle == -1) {
|
||||
print (strerror (errno ()) + "\n");
|
||||
return 1;
|
||||
|
@ -19,3 +22,8 @@ float () main =
|
|||
close (handle);
|
||||
return 0;
|
||||
};
|
||||
|
||||
float () baz =
|
||||
{
|
||||
return foo + bar;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue