Described in:
GNU indent is designed to layout C source code but has more than 60 options. After uploading your C file: (or .h file) press START to run indent with four randomly chosen sets of options on your file. The four candidate layouts of your file will be displayed in this window. Red is used to highlight changes from your file.
If you chose one of the 4 which you prefer (by clicking on it) that set of options will be kept and 3 mutants of it will be created and displayed. Red is again used to highlight places where the new layout differs from the previous one.
Repeatedly clicking on your preferred layout will rapidly guide you through the enormous range of possible indent command lines.
The indent options are displayed at the top of each frame.
Alternatively the evolved layout of the file you uploaded can be saved. However this would mean reusing these www pages for each source file.
The TEST button allows you to run indent on your file. As usual changes made by indent are highlighted in red.
typedef unsigned long CODE_ADDR;
typedef enum {red, blue, green} COLOUR;
|
you could put CODE_ADDR COLOUR into the "additional types -T" field.