On Mon, 28 Nov 2005, Laurent R wrote:
I used gcc version 3.3.2;
How can I change the 'bool' variable from 4 byte (default value) to 1 byte. I
used the '-mone-byte-bool', but this gcc of version 3.3.2 does not recogize
this option.
This seems to work:
#include <stdio.h>
typedef char bool;
main() {
bool foo=1;
printf("Foo! %d (%d)\n", foo, sizeof(foo));
}
[EMAIL PROTECTED] ~$ gcc foo.c
[EMAIL PROTECTED] ~$ ./a.out
Foo! 1 (1)
/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/