• no longer use <stdbool.h> even if it’s available

• ensure that bool/true/false are cpp macros, overriding any pre-defined
• document the requirement that tobool(x) must map any-type 'x' into bool
• document the requirement that a bool must only be true or false, and
  that it (tobool() rather) must have an identity mapping to 'short'
• possibly fix ksh_func for/and fpFUNCTf – maybe spotted by cnuke@
This commit is contained in:
tg
2011-04-09 15:14:55 +00:00
parent 2dbf82a737
commit d57a033057
5 changed files with 24 additions and 27 deletions

4
syn.c
View File

@@ -22,7 +22,7 @@
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/syn.c,v 1.59 2011/03/26 15:32:37 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/syn.c,v 1.60 2011/04/09 15:14:54 tg Exp $");
extern short subshell_nesting_level;
@@ -665,7 +665,7 @@ function_body(char *name,
t = newtp(TFUNCT);
t->str = sname;
t->u.ksh_func = ksh_func;
t->u.ksh_func = tobool(ksh_func);
t->lineno = source->line;
old_func_parse = e->flags & EF_FUNC_PARSE;