• finally, the code and manual page text to deprecate, and code to not

handle any more, octal 010 style constants, as promised
• overhaul the manpage re. arithmetic expressions, make the guarantees
  mksh code has explicitly, precisely, clear
• to reduce burden of the compiler, getint() now operates on mksh_uari_t
  internally; it already applied the sign after operation, anyway (C99
  guarantees wraparound on unsigned types, but for signed types we need
  specific compiler support; apparently, this comes from hardware limits)
• use const and shuffle order of locals around while here
This commit is contained in:
tg
2011-12-10 13:34:19 +00:00
parent f8098a7f48
commit 3b87d173d4
4 changed files with 35 additions and 40 deletions

4
sh.h
View File

@ -151,9 +151,9 @@
#endif
#ifdef EXTERN
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.509 2011/12/09 20:40:26 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh.h,v 1.510 2011/12/10 13:34:18 tg Exp $");
#endif
#define MKSH_VERSION "R40 2011/12/09"
#define MKSH_VERSION "R40 2011/12/10"
/* arithmetics types */
typedef int32_t mksh_ari_t;