remove 100-levels config nesting limit
authorDavid Kalnischkies <david@kalnischkies.de>
Mon, 2 May 2016 16:18:37 +0000 (18:18 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Tue, 3 May 2016 11:49:45 +0000 (13:49 +0200)
commit6afe25b56467b228fdd7c045d1062b12c0408e7c
tree538735e80d574319b74e8642f6d0fdf2c2003714
parent2e49f51915d07a6ad85c7ee4380a1e51afaa3a17
remove 100-levels config nesting limit

The actual reason for this commit isn't the limit – there isn't much
point in using that much nesting – its in shutting up gcc mostly:

apt/apt-pkg/contrib/configuration.cc: In function ‘bool ReadConfigFile(Configuration&, const string&, const bool&, const unsigned int&)’:
apt/apt-pkg/contrib/configuration.cc:686:20: warning: cannot optimize loop, the loop counter may overflow [-Wunsafe-loop-optimizations]
    string Stack[100];
                    ^
by replacing this with C++s handy std::stack container (adapter).
Also cleans some whitespace noise from the file in the process.
apt-pkg/contrib/configuration.cc