2001-06-08 00:14:11 +00:00
|
|
|
float foo = 1;
|
|
|
|
float bar = 1;
|
2001-06-27 05:46:53 +00:00
|
|
|
float snafu = 2;
|
2001-06-08 00:14:11 +00:00
|
|
|
|
2001-06-01 21:57:59 +00:00
|
|
|
float () main =
|
|
|
|
{
|
2001-06-06 20:05:08 +00:00
|
|
|
local float handle;
|
|
|
|
local string buffer;
|
2001-06-04 04:52:14 +00:00
|
|
|
|
2001-06-08 00:14:11 +00:00
|
|
|
handle = open ("main.qc", 0);
|
2001-06-06 20:05:08 +00:00
|
|
|
if (handle == -1) {
|
|
|
|
print (strerror (errno ()) + "\n");
|
|
|
|
return 1;
|
2001-06-05 23:53:55 +00:00
|
|
|
}
|
2001-06-06 20:05:08 +00:00
|
|
|
do {
|
|
|
|
buffer = read (handle, 1024);
|
|
|
|
if (read_result == -1) {
|
|
|
|
print (strerror (errno ()) + "\n");
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
print (buffer);
|
|
|
|
} while (read_result == 1024);
|
|
|
|
close (handle);
|
|
|
|
return 0;
|
2001-06-05 23:53:55 +00:00
|
|
|
};
|
2001-06-08 00:14:11 +00:00
|
|
|
|
|
|
|
float () baz =
|
|
|
|
{
|
|
|
|
return foo + bar;
|
|
|
|
};
|
2001-06-08 22:54:34 +00:00
|
|
|
|
|
|
|
void (float x) test =
|
|
|
|
{
|
|
|
|
local string str;
|
|
|
|
local float urk = 0;
|
|
|
|
|
2001-06-27 05:46:53 +00:00
|
|
|
if (urk) {
|
|
|
|
urk = foo || snafu;
|
|
|
|
} else {
|
|
|
|
print ("owie");
|
|
|
|
}
|
2001-06-08 22:54:34 +00:00
|
|
|
};
|