• 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:
4
tree.c
4
tree.c
@ -22,7 +22,7 @@
|
||||
|
||||
#include "sh.h"
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/tree.c,v 1.42 2011/04/09 15:05:44 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/tree.c,v 1.43 2011/04/09 15:14:55 tg Exp $");
|
||||
|
||||
#define INDENT 8
|
||||
|
||||
@ -178,7 +178,7 @@ ptree(struct op *t, int indent, struct shf *shf)
|
||||
prevent_semicolon = true;
|
||||
break;
|
||||
case TFUNCT:
|
||||
fpFUNCTf(shf, indent, t->u.ksh_func, t->str, t->left);
|
||||
fpFUNCTf(shf, indent, tobool(t->u.ksh_func), t->str, t->left);
|
||||
break;
|
||||
case TTIME:
|
||||
fptreef(shf, indent, "%s %T", "time", t->left);
|
||||
|
Reference in New Issue
Block a user