Examples of src2fm formatting
These examples are of Ada code formatted with ada2fm, but similar conventions
are used for C code.
- Short excerpt from the Gnu Ada
tasking run-time, in Postscript (22K compressed). (The PostScript looks
lousy in a previewer, but try printing it on a color inkjet to get a better
idea.)
- Full listing of file s-tatise.adb
from the Gnu Ada tasking run-time, in a FrameMaker version 4 binary file
(31K compressed, uuencoded).
- Same full listingas above, but stuffed
and binhexed for Mac users.
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.