Re: bug formatting a .h function extern declaration with attribute macros

2025-04-05 Thread GNU indent discussion, bug reports, suggestions.
al > on compiler version wasn't the issue (the m4 definitions for > ATTRIBUTE_PURE come from gnulib, and are under a similar ladder of > #if); rather, it's that an all-caps macro that takes no arguments and > appears after the func(params) but before the trailing ; of an ext

Re: bug formatting a .h function extern declaration with attribute macros

2025-04-04 Thread GNU indent discussion, bug reports, suggestions.
me from gnulib, and are under a similar ladder of >> > #if); rather, it's that an all-caps macro that takes no arguments and >> > appears after the func(params) but before the trailing ; of an extern >> > function declaration confuse indent. >> >> By format

Re: bug formatting a .h function extern declaration with attribute macros

2025-04-04 Thread GNU indent discussion, bug reports, suggestions.
Eric Blake writes: > I'm trying to run indent on the GNU M4 source code base before a > release (it looks like gnulib added the ability to run make indent > since the last time I made an m4 release). But one change that indent > is insisting on is wrong: > > -extern

Re: Change on indent from 2.2.12 to 2.2.13

2024-03-27 Thread GNU indent discussion, bug reports, suggestions.
"De Lara Guarch, Pablo" writes: > Hello, > > This is not really a bug on indent, I would say, but I am seeing differences > in how C code is indented with 2.2.13 against 2.2.12. > With 2.2.12, the code as it is looks OK, but with 2.2.13, it makes the > fol

Indent modifies file forever for function with function pointer argument

2022-02-15 Thread GNU indent discussion, bug reports, suggestions.
Hi, I am recently using indent to format my C program. However, I found that indent changes a file forever by adding and removing a space. The C file I am using is attached as a.c, its base64 is: dm9pZCBhKHZvaWQgKCpiKSh2b2lkKSkKewoJaWYg KGIpIHsKCQlyZXR1cm47Cgl9Cn0KCmludCBtYWlu

Re: requesf--not bug

2010-11-28 Thread indent
On 26/11/10 13:15, Sergio Villone wrote: > I am having problems in writing a manual of my own.. > Please could you share the groff source for tou "indent" manual? > in order fo me to see how many things are effecfively made.. > the perusing of the groff manual hasn't be

Re: suggestions: allow the user to specify where to put the * in declarations

2010-11-25 Thread indent
indent doesn't make tea either. In case my comment is too cryptic, it is not in the scope of indent's purpose to change syntactic elements of the code. You might just as incorrectly ask the vim team to do it ;-) On 22/11/10 22:34, Dukeman, Gregory A. (MSFC-EV42) wrote: &

Re: suggestions: adding braces to single statement do, if, for, and while constructs; expanding multiple statements on single line to multiple lines

2010-11-25 Thread indent
1) will never happen. intent also doesn't make coffee. 2) This is basic functionality (or did you really mean y gets converted to Y ?): > echo "X = 1; y = 2; z = 3;" | indent -st X = 1; y = 2; z = 3; On 22/11/10 22:08, Dukeman, Gregory A. (MSFC-EV42) wrote: > Hello, >

Re: about the bug for '-ncs'

2010-05-24 Thread indent
No bug present here, see the -T option in the manual. $ indent -st -kr -ncs *-T ULONG* ncs.c #define unsigned long ULONG void main() { b = (ULONG)a; } BTTW: Good programming practice would suggest that it would be better to do typedef unsigned long ULONG; instead of using the preprocessor to

Re: Regression in 2.2.11

2010-04-05 Thread indent
ong-standing defect. The space makes the fact that it is two separate applications of an operator clear. Your code would become much more readable if you had #define TO_BOOLEAN(x) (! !(x)) ... int foo(int a) { return TO_BOOLEAN(a); } My opinions aside, why should I accept an (undocumente

Re: Regression in 2.2.11

2010-04-05 Thread indent
I am very baffled as to why anyone would want to write "return !!a". Are you sure you're writing C and not some other language? On 03/04/10 21:00, Edward Hervey wrote: > Hi, > > I found a regression in indent 2.2.11. > > The following code > a = !!b; >

Re: [PATCH] Support for binary constants

2010-03-23 Thread indent
the form ``0b00101010''. Mostly > used in embedded C compilers and gcc supports them too: > > http://gcc.gnu.org/onlinedocs/gcc/Binary-constants.html > > Regards, > Colin Leitner > > --- indent-2.2.10.orig/ChangeLog 2008-03-11 19:53:21.0 +0100 >

Re: Help

2010-03-14 Thread indent
; > A patch (that should fix this issuer) was proposed back in October. > > At the time, it was pointed out that this case construct is not strictly C > compliant but is more of a C++ construct. > > However a patch derived from http://lists.gnu.org/archive/html/bug- > indent/20

Re: indent.exe not link under MinGW/MSYS

2010-01-07 Thread indent
I'll put it in the next release. _______ bug-indent mailing list bug-indent@gnu.org http://lists.gnu.org/mailman/listinfo/bug-indent

Re: can't build indent 2.2.9 from source

2009-12-03 Thread indent
On 03/12/09 01:16, Simmons, Aaron wrote: > I'm trying to build indent 2.2.9 from source, but am getting compile errors: > source='output.c' object='output.o' libtool=no \ > depfile='.deps/output.Po' tmpdepfile='.deps/output.TPo' \ &g

Re: How to avoid misformatting of binary values with GNU indent?

2009-11-26 Thread indent
On 26/11/09 13:15, Martin Kirsche wrote: > When GNU indent (at least version 2.2.6 from cygwin and 2.2.10 from > GnuWin32) is used on the following code... > > |void > main () > { > int i = 0b01010101; > } > | > > it will be reformatted into this ... > > |vo

Re: [PATCH] fix indent handling of range in case statements

2009-11-11 Thread indent
, so be careful using indent on C++. Jean-Christophe Dubois wrote: > Just curious: Is this patch accepted or is it inadequate for some reason? > > I got no feed back on this proposed patch. > > JC > > le jeudi 1 octobre 2009 Jean-Christophe Dubois a écrit > >> ind

Re: option for space between a template class name and the following angle bracket

2009-11-06 Thread indent
Harun Abi wrote: I realize it is popular on this list to make the claim of "indent is only for c" but that is in fact, bullshit. That is not a claim it is a statement of policy. It handles c++ well in many areas because it is coded to handle c++ well in

Re: GNU indent 2.2.10 bug ?

2009-10-06 Thread indent
k9jen...@gmail.com wrote: > I'm using GNU indent version 2.2.10 on a Slackware 13.0 64 bit system. > > The texinfo page says any space between a # and "include" is removed by > default. > If you want to leave it the space, then one should use the -lps option. >

Re: more probably bugreport than a wish

2009-08-24 Thread indent
Andrey Utkin wrote: > Hi, and long life the GNU developers! > > indent inserts tabulation symbols into mid-line (for example, between the > declaration and the comment). Having \t`s inside the line is unacceptable, > spaces must be used for alignment. Tabs can take place in a

Re: Segfault on Comment Line

2009-06-07 Thread indent
by running the source through astyle > (http://sourceforge.net/projects/astyle) using the command "astyle > --brackets=attach --verbose RS-PostgreSQL.c" then through indent. > After being processed by astyle indent did not give any error. You > can diff the two files to see the c

Re: indent enhancement request remove unneeded brackets

2009-05-25 Thread indent
w langdon wrote: > I do not know how easy it would be to do this, but one of our users > has requested that indent be able to remove unnecessary "{" "}". > > Some automatically generated C (produced by CIL) has many > extra brackets, which serve only to clutte

Re: Segfault on Comment Line

2009-05-21 Thread indent
I cannot reproduce the problem with indent 2.2.10 using x64 Suse. Here is my terminal output: *> indent --verbose -br -i4 -nut --line-length120 --comment-line-length120 --leave-preprocessor-space -npcs RS-PostgreSQL.c* option: br option: i option: nut option: l option: lc option: lps opt

Re: Patch for indent-2.2.9 to build with GCC 4.3

2009-02-15 Thread indent
Adam Sampson wrote: > Hi, > > I've just installed indent-2.2.9, and there are a couple of minor > problems in the source code that prevent it from compiling with GCC 4.3 > -- patch attached. > > It would also be nice if it had a GPG signature (like most other GNU

Re: CR Problem

2008-11-09 Thread indent
Ed Crenshaw wrote: > OK I'm stupid, I see the CRs are in my C file. > > Sorry about that > Since Panasonic make some great products I'll forgive you ;-) _______ bug-indent mailing list bug-indent@gnu.org http://lists.gnu.org/mailman/listinfo/bug-indent