run_indent

Indent in a controlled manner the .c files used by Python

Command line usage (if any):

  • run_indent.py filename to indent a single file

  • run_indent.py *.c to indent all of the .c files in a directory

  • run_indent.py *.h to indent all of the .h files

  • run_indent -all to indent all of the c and .h files

Description:

Primary routines:

doit

processes a single file

steer

processes the command calling either doi or do_all

do_all

processes all the .c and .h files in a directory

Notes

Files are not updated unless indent produces a new result

If gnuindent is not found the program will do nothing

History:

180913 ksl Coding begun

Functions

do_all([ignore_list])

Indent all of the .c and .h files in a directory in a standard way

do_changed()

Indent only those files which have not yet been committed

doit([filename])

Properly indent a single file

get_gnu()

steer(argv)

Process the command line