• 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:
5
funcs.c
5
funcs.c
@ -38,7 +38,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.182 2011/03/27 18:50:04 tg Exp $");
|
||||
__RCSID("$MirOS: src/bin/mksh/funcs.c,v 1.183 2011/04/09 15:14:52 tg Exp $");
|
||||
|
||||
#if HAVE_KILLPG
|
||||
/*
|
||||
@ -794,7 +794,8 @@ c_typeset(const char **wp)
|
||||
f->flag |= fset;
|
||||
f->flag &= ~fclr;
|
||||
} else {
|
||||
fpFUNCTf(shl_stdout, 0, f->flag & FKSH,
|
||||
fpFUNCTf(shl_stdout, 0,
|
||||
tobool(f->flag & FKSH),
|
||||
wp[i], f->val.t);
|
||||
shf_putc('\n', shl_stdout);
|
||||
}
|
||||
|
Reference in New Issue
Block a user