alien.marshall.syntax: don't clobber bool type in unit tests

db4
Slava Pestov 2009-08-25 05:06:16 -05:00
parent 93adf617c0
commit 6106eed185
1 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,8 @@ C-LIBRARY: test
C-INCLUDE: <stdlib.h>
C-INCLUDE: <string.h>
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;
;