[Ada] move some variables to scope where they are used
authorJoel Brobecker <brobecker@gnat.com>
Wed, 3 Nov 2010 23:20:33 +0000 (23:20 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 3 Nov 2010 23:20:33 +0000 (23:20 +0000)
commit9addb3b96c4124014e469442d5f2e688ac34e2eb
tree11dad231d0e00c49eae827a80a28d3cf3f3fff2f
parent75be741bdf0c664773f0cb0668a401887ee7706d
[Ada] move some variables to scope where they are used

I noticed that some variables are only used inside one side of
an if/else blob. So I moved these variables inside that block for
better clarity.

gdb/ChangeLog:

        * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
        and `len' declaration and computation inside block where they
        are being used.
gdb/ChangeLog
gdb/ada-valprint.c