+Tue May 2 15:43:36 2006 Ben Pfaff <blp@gnu.org>
+
+ * variable.c (width_to_bytes): Declarations must precede
+ statements for C90 compliance.
+
Tue May 2 10:42:05 WST 2006 John Darrington <john@darrington.wattle.id.au>
* data-out.c, data-in.c, variable.c, variable.h: New functions
int
width_to_bytes(int width)
{
+ const int chunks = width / EFFECTIVE_LONG_STRING_LENGTH ;
+ const int remainder = width - (chunks * EFFECTIVE_LONG_STRING_LENGTH) ;
int bytes, mod8;
assert (width >= 0);
if ( width <= MAX_LONG_STRING)
return MAX_SHORT_STRING * DIV_RND_UP(width, MAX_SHORT_STRING);
- const int chunks = width / EFFECTIVE_LONG_STRING_LENGTH ;
-
- const int remainder = width - (chunks * EFFECTIVE_LONG_STRING_LENGTH) ;
bytes = remainder + (chunks * (MAX_LONG_STRING + 1) );