OSDN Git Service

[Ada] move some variables to scope where they are used
authorbrobecke <brobecke>
Wed, 3 Nov 2010 23:20:33 +0000 (23:20 +0000)
committerbrobecke <brobecke>
Wed, 3 Nov 2010 23:20:33 +0000 (23:20 +0000)
commit1d7d72d06028bfe00cf453a28db81615ff4dba89
treedd22a4c3a10d9ef547c7479d20a8093af0685d92
parent263ac57bb7802a162eeaac8510a73eaa5e22f05c
[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