From 6106eed185f934c682014130b8d3aaa79d0130d8 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Tue, 25 Aug 2009 05:06:16 -0500 Subject: [PATCH] alien.marshall.syntax: don't clobber bool type in unit tests --- extra/alien/marshall/syntax/syntax-tests.factor | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extra/alien/marshall/syntax/syntax-tests.factor b/extra/alien/marshall/syntax/syntax-tests.factor index 3945924a57..68e6f7aff8 100644 --- a/extra/alien/marshall/syntax/syntax-tests.factor +++ b/extra/alien/marshall/syntax/syntax-tests.factor @@ -10,7 +10,8 @@ C-LIBRARY: test C-INCLUDE: C-INCLUDE: -C-TYPEDEF: char bool +! This used to typedef 'bool' but that's bad for PowerPC where its really an int +C-TYPEDEF: char mybool CM-FUNCTION: void outarg1 ( int* a ) *a += 2; @@ -38,7 +39,7 @@ CM-FUNCTION: void change_time ( double hours, sundial* d ) d->wedge.degrees = hours * 30; ; -CM-FUNCTION: bool c_not ( bool p ) +CM-FUNCTION: mybool c_not ( mybool p ) return !p; ;