diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-02-25 20:35:46 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-02-25 20:35:46 -0500 |
commit | 19eafbc01a492e8f1df25cef52678ed8f76d3e63 (patch) | |
tree | e818784215d9f7873e9495f003dd4cdaa09d5b63 /tests/params | |
parent | b1c2b4bcabfd3ff01921e2601d41a33b40ec1f3b (diff) |
fixed bugs with new arg order system
also now struct parameters are "officially" part of the language
Diffstat (limited to 'tests/params')
-rw-r--r-- | tests/params/params.toc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/params/params.toc b/tests/params/params.toc index 3d8800d..1946739 100644 --- a/tests/params/params.toc +++ b/tests/params/params.toc @@ -7,7 +7,10 @@ do_foo ::= fn (x := 3) y := x { }; puti ::= fn(x: int) { - #C("extern int printf(const char *fmt, ...)"); + #C("#ifndef __TINYC__ +extern int printf(const char *fmt, ...); +#endif +"); #C("printf(\"%ld\\n\", x)"); }; |