[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
 

Indent, hvordan pokker :)



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,
hvis jeg fx. har lavet

const struct random_type type_mod [] =
{
  { -5,   -4,     0,    0 },
  { -5,   -4,     3,    1 },
  { -3,   -2,     3,    2 },
  { -3,   -1,    10,    3 },
  { -2,   -1,    25,    4 },
  { -2,   -1,    55,    5 },
  { -1,    0,    80,    6 },  
  { -1,    0,    90,    7 }
};

saa bliver outputtet noget vaere sjuskvaerk.

{
  {-5,-4,0,0},
  {-5,-4,3,1},
  {-3,-2,3,2},
  {-3,-1,10,3},
  {-2,-1,25,4},
  {-2,-1,55,5},
  {-1,0,80,6},  
  {-1,0,90,7}
};

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

mvh

Brian Graversen


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 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] *