Package: astyle
Version: 1.24-1
Severity: normal
Tags: upstream

Hi,

for functions returning an int * it works correctly:
$ cat server.c
int *
f(void) {
        return a;
}
$ astyle server.c
formatted  /tmp/server.c
$ cat server.c
int *
f(void)
{
        return a;
}

however, functions returning a pointer to a struct, do not have their opening
brace broken, like they should:
$ cat server.c
struct foo *
f(void) {
        return a;
}
$ astyle server.c
unchanged* /tmp/server.c
$ cat server.c
struct foo *
f(void) {
        return a;
}

which should be:
struct foo *
f(void)
{
        return a;
}

attached is my astylerc
regards,
        Johannes


-- System Information:
Debian Release: 6.0.2
  APT prefers proposed-updates
  APT policy: (500, 'proposed-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=POSIX (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages astyle depends on:
ii  libc6                         2.11.2-10  Embedded GNU C Library: Shared lib
ii  libgcc1                       1:4.4.5-8  GCC support library
ii  libstdc++6                    4.4.5-8    The GNU Standard C++ Library v3

astyle recommends no packages.

astyle suggests no packages.

-- no debconf information
--style=linux
--indent=tab=8
--indent-switches
--indent-cases
--min-conditional-indent=3
--max-instatement-indent=40
--pad-oper
--pad-header
--unpad-paren
--add-brackets
--align-pointer=name

Reply via email to