summaryrefslogtreecommitdiff
path: root/tests/bf
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-02-25 20:35:46 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-02-25 20:35:46 -0500
commit19eafbc01a492e8f1df25cef52678ed8f76d3e63 (patch)
treee818784215d9f7873e9495f003dd4cdaa09d5b63 /tests/bf
parentb1c2b4bcabfd3ff01921e2601d41a33b40ec1f3b (diff)
fixed bugs with new arg order system
also now struct parameters are "officially" part of the language
Diffstat (limited to 'tests/bf')
-rw-r--r--tests/bf/bf.toc5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/bf/bf.toc b/tests/bf/bf.toc
index c2f9970..a3f731a 100644
--- a/tests/bf/bf.toc
+++ b/tests/bf/bf.toc
@@ -32,7 +32,10 @@ getstdin ::= fn() []char {
};
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)");
};