[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Indent, hvordan pokker :)



Lars Lerager Hansen wrote:

"Brian Bjerre Graversen" <sslug@sslug> wrote:

Jeg har lige koert ident paa en bunke C filer, og
outputtet er ganske paent, jeg brugte foelgende
indent kommando, med indent 2.2.6

indent -bli0 -cli2 -nut -ts2 -nfca -npcs -npsl -bad -bap -sob -l200 *.c

Nu er problemet bare at indent smadrer mine tabeller,

[KLIP]


Nogen maade at faa indent til at ignorere alle mine
structure, eller bare respektere stilen.

Ehm... Du kunne /*udkommentere*/ dine tabeller inden du kører indent :-)

Eller måske fra man-siden: DISABLING FORMATTING Formatting of C code may be disabled for portions of a program by embedding special control comments in the pro­ gram. To turn off formatting for a section of a program, place the disabling control comment /* *INDENT-OFF* */ on a line by itself just before that section. Program text scanned after this control comment is output precisely as input with no modifications until the corresponding enabling comment is scanned on a line by itself. The dis­ abling control comment is /* *INDENT-ON* */, and any text following the comment on the line is also output unformat­ ted. Formatting begins again with the input line follow­ ing the enabling control comment.

Mvh Christian Frier



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *