mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Update for the new syntax.
With this, qwaq will compile once I sort out the parameters for QC style functions, and some non-executable warnings. However, as those are compiler problems, this should be the final qwaq related commit.
This commit is contained in:
parent
c3a991e555
commit
2617f9e3ed
1 changed files with 3 additions and 3 deletions
|
@ -1,12 +1,12 @@
|
|||
string read_file (string filename)
|
||||
{
|
||||
local QFile file;
|
||||
local string data = NIL, d;
|
||||
local string data = nil, d;
|
||||
file = Qopen (filename, "rtz");
|
||||
if (!file) {
|
||||
printf ("Can't open %s for reading."
|
||||
" Probably a bad hardcoded filename:)\n", filename);
|
||||
return NIL;
|
||||
return nil;
|
||||
}
|
||||
while ((d = Qgetline (file)))
|
||||
data = data + d;
|
||||
|
@ -67,7 +67,7 @@ void () test_str =
|
|||
printf ("%i \"%.5s\" %3.4f %v\n", 14, "hi there", 3.1415926, '4 1 3');
|
||||
};
|
||||
void (...) dprint = #0;
|
||||
integer (integer argc, string []argv) main =
|
||||
integer (integer argc, string *argv) main =
|
||||
{
|
||||
local integer i;
|
||||
local SEL sel;
|
||||
|
|
Loading…
Reference in a new issue