projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6bd42bf
)
Declarations must precede statements for C90 compliance.
author
Ben Pfaff
<blp@gnu.org>
Tue, 2 May 2006 22:44:55 +0000
(22:44 +0000)
committer
Ben Pfaff
<blp@gnu.org>
Tue, 2 May 2006 22:44:55 +0000
(22:44 +0000)
src/data/ChangeLog
patch
|
blob
|
history
src/data/variable.c
patch
|
blob
|
history
diff --git
a/src/data/ChangeLog
b/src/data/ChangeLog
index 5369faa8b7e9318c057a4a8edf064c8a155c2183..15675a924c6f98d35cfb9ad3a242b5f55f65e168 100644
(file)
--- a/
src/data/ChangeLog
+++ b/
src/data/ChangeLog
@@
-1,3
+1,8
@@
+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
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
diff --git
a/src/data/variable.c
b/src/data/variable.c
index 56993e461c5d43998105123767037bba1a9be16d..ee6c8747865b734cf0ba0f2eb00bdd543a39040c 100644
(file)
--- a/
src/data/variable.c
+++ b/
src/data/variable.c
@@
-432,6
+432,8
@@
copy_mangle (char *dst, size_t dst_size,
int
width_to_bytes(int width)
{
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);
int bytes, mod8;
assert (width >= 0);
@@
-442,9
+444,6
@@
width_to_bytes(int width)
if ( width <= MAX_LONG_STRING)
return MAX_SHORT_STRING * DIV_RND_UP(width, MAX_SHORT_STRING);
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) );
bytes = remainder + (chunks * (MAX_LONG_STRING + 1) );