Examples of src2fm formatting

These examples are of Ada code formatted with ada2fm, but similar conventions are used for C code.

Notes on the source

These examples are taken from the tasking run-time system for Gnat, the Gnu Ada Translator. The file is SYSTEM . TASK_TIMER_SERVICE (s-tatise). The tasking run-time for Gnat is called Gnarl and is being developed by Ted Baker's group at Florida State University.

Notes on the formatting

The short excerpt is in the default style taken from the template that I supply with src2fm. The full listing is in this default style except that I changed the font of the beginning block comment from Times (a proportionally spaced font) to Courier (a monospaced font) to preserve justification applied by the code authors in the original source. You can of course use monospaced fonts throughout by setting them in the character designer window in FrameMaker. If you mix monospace and proportional fonts, beware that the width of spaces that begin each line, and therefore indentation, will be affected in unpleasant ways.