Merge branch 'master' into qfcc-codegen

Conflicts:
	tools/qfcc/source/expr.c
	tools/qfcc/source/function.c
	tools/qwaq/test.r
This commit is contained in:
Bill Currie 2011-03-20 15:58:31 +09:00
commit 1ada2a96cf
3 changed files with 30 additions and 1 deletions

View file

@ -322,6 +322,7 @@ find_function (expr_t *fexpr, expr_t *params)
memset (&type, 0, sizeof (type));
type.type = ev_func;
for (e = params; e; e = e->next) {
if (e->type == ex_error)
return e;

View file

@ -0,0 +1,27 @@
void printf (string fmt, ...) = #0;
@overload void test (integer x)
{
printf ("\"%s\" %s %d %s\n",
__PRETTY_FUNCTION__, __FUNCTION__, __LINE__, __FILE__);
}
@overload void test (void)
{
printf ("\"%s\" %s %d %s\n",
__PRETTY_FUNCTION__, __FUNCTION__, __LINE__, __FILE__);
}
void foo (void)
{
printf ("\"%s\" %s %d %s\n",
__PRETTY_FUNCTION__, __FUNCTION__, __LINE__, __FILE__);
}
integer main ()
{
test (1);
test ();
foo ();
return 0;
}

View file

@ -34,7 +34,8 @@
-run
{
print ("Hello world\n");
printf ("%i %p\n", self, &self.x);
printf ("%i %p [%s %s]\n", self, &self.x, [self description],
__PRETTY_FUNCTION__);
return self;
}