Package: astyle
Version: 1.15.3-5
Severity: normal
With the following command:
/usr/bin/astyle --style=gnu < in.cc > out.cc
(actually it doesn't really mattery which --style formatter), the
following code in in.cc:
SharedCounter::SharedCounter ()
{
count = 0;
smutex_init(&lock);
smutex_init(&lock);
scond_init (&count_changed);
}
becomes:
SharedCounter::SharedCounter ()
{
count = 0;
smutex_init(&lock)
;
smutex_init(&lock)
;
scond_init (&count_changed);
}
Basically, the semicolons are being pushed on the next line because of the
"lock" keyword detection. If I change my variable name to something other than
"lock", say "mutex", the problem doesn't surface.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable'), (90, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-hole
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages astyle depends on:
ii libc6 2.3.5-13 GNU C Library: Shared libraries an
ii libgcc1 1:4.0.2-9 GCC support library
ii libstdc++6 4.0.2-9 The GNU Standard C++ Library v3
astyle recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]