rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 11 Oct 2010 03:16:39 +0000 (20:16 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 11 Oct 2010 03:17:17 +0000 (20:17 -0700)
commit050d87a67621eeeea383949d33116496a353cf39
tree847edef88e9326c9881e09574e86f464be2089b2
parentfea1830d840868b6d5d66ee30bb56f322f109254
rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]

* lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
(verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
* lib/malloca.c: Include "verify.h".
(verify1): Remove, replacing with a verify call.
* lib/relocwrapper.c (verify1): Likewise.
* lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
Likewise.
* modules/malloca (Depends-on): Add 'verify'.
* modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
* modules/vasnprintf (Depends-on): Add 'verify'.
* modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
* modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
* modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
* modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
* modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
* modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
* modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15 files changed:
ChangeLog
lib/float+.h
lib/malloca.c
lib/relocwrapper.c
lib/vasnprintf.c
modules/malloca
modules/relocatable-prog-wrapper
modules/unistdio/u16-u16-vasnprintf
modules/unistdio/u16-vasnprintf
modules/unistdio/u32-u32-vasnprintf
modules/unistdio/u32-vasnprintf
modules/unistdio/u8-u8-vasnprintf
modules/unistdio/u8-vasnprintf
modules/unistdio/ulc-vasnprintf
modules/vasnprintf