bug-indent
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-indent] indent


From: david ingamells
Subject: Re: [Bug-indent] indent
Date: Mon, 4 Mar 2002 20:34:04 +0100

Hi,
the reason is the neither are C code (i wasn't even aware that that code was 
C++) and indent is not designed to work with non-C code, and is thus 
unpredictable.

No, indent is not available under CVS. Version 2.2.8 will be released in a 
couple of weeks.

Preston A. Elder <address@hidden> has patched indent to work better with C++, 
but his patches don't work with standard C properly, so I cannot accept them 
as pert of the standard indent. Maybe he can help you?

David.

On Monday 04 March 2002 1:47 pm, address@hidden wrote:
> Hi,
>
> I compiled the 2.2.7 version by commenting out two lines of code in the
> main()
>    //bindtextdomain (PACKAGE, LOCALEDIR);
>    //textdomain (PACKAGE);
> With the -c++ option I got no luck with the templates.
>
> Another question:
> I have a function declaration like this:
> #define APTVEC 10
> void ISRApp (void) interrupt APTVEC
> {
> ...
> }
> after indent it looks like
> #define APTVEC 10
> void
> ISRApp (void)
>       interrupt APTVEC
>       {
>       ...
>       }
> Everything is indented.
>
> But if I write:
> void ISRApp (void) interrupt 10
> {
> ...
> }
> after indent it looks like
> void
> ISRApp (void) interrupt 10
> {
> ...
> }
> OK.
>
> Any reason for this?
>
> Is the development code for 2.2.8 accessible? (CVS)?
>
> Thanks,
>
> Adib.
>
> david ingamells wrote:
> > There is a make problem for windows machines which will be fixed in V
> > 2.2.8. You have tried the -c++ option to indent?
> >
> > David.
> >
> > On Friday 01 March 2002 3:03 pm, address@hidden wrote:
> >>Oha,
> >>
> >>I downloaded the source for the 2.2.7. Compiling I got problems with the
> >>  gettext module.
> >>
> >>I use mingw32 under Win2000.
> >>Is there a working makefile or something for that system?
> >>
> >>Thanks,
> >>
> >>Adib.
> >>
> >>david ingamells wrote:
> >>>Adib,
> >>>indent is a tool for indenting C and the snippet you show is C++.
> >>>
> >>>It might work better with V 2.2.7, but you're on your own.
> >>>
> >>>David.
> >>>
> >>>On Thursday 28 February 2002 4:47 pm, address@hidden wrote:
> >>>>Hello,
> >>>>
> >>>>indent 2.2.6 converts
> >>>>  std::map < int, std::vector < int > > data;
> >>>>to
> >>>>  std::map < int,
> >>>>  std::vector < int >>
> >>>>    data;
> >>>>the important thing is that "> >" is replaced by ">>". The compiler can
> >>>>not identify this as a template anymore.
> >>>>
> >>>>Suggestions?
> >>>>
> >>>>Thanks,
> >>>>
> >>>>Adib.
>
> _______________________________________________
> Bug-indent mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-indent

-- 
David Ingamells
address@hidden
+31 (013) 5093388     (home)
+31 065010947 (mobile)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]