summaryrefslogtreecommitdiff
path: root/libguile/struct.c
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-11-17 01:26:25 +0100
committerLudovic Courtès <ludo@gnu.org>2009-11-17 23:13:58 +0100
commit7f991c7d322c9eaf83515de97b61700be8fa7abb (patch)
treea003b92d9b31e903066e057a5a24deaf1fa93a91 /libguile/struct.c
parent6bd210e090be6e6ce3fbe65075185676f87b1eac (diff)
downloadguile-7f991c7d322c9eaf83515de97b61700be8fa7abb.tar.gz
Fix C99-style declarations after statements.
* libguile/eval.i.c (ceval): Move declarations before statements. * libguile/read.c (scm_read_extended_symbol): Likewise. * libguile/struct.c (scm_make_struct_layout): Likewise. * libguile/threads.c (fat_mutex_unlock): Likewise. * libguile/vm-i-system.c (br_if_nargs_ne, br_if_nargs_lt): Likewise. * libguile/vm.c (make_vm): Likewise.
Diffstat (limited to 'libguile/struct.c')
-rw-r--r--libguile/struct.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libguile/struct.c b/libguile/struct.c
index 33be8ad9b..f202d661e 100644
--- a/libguile/struct.c
+++ b/libguile/struct.c
@@ -63,9 +63,10 @@ SCM_DEFINE (scm_make_struct_layout, "make-struct-layout", 1, 0, 0,
#define FUNC_NAME s_scm_make_struct_layout
{
SCM new_sym;
- SCM_VALIDATE_STRING (1, fields);
scm_t_wchar c;
+ SCM_VALIDATE_STRING (1, fields);
+
{ /* scope */
size_t len;
int x;