next up previous contents
Next: Debugging Up: How to write Previous: Documentation

Coding

Coding should only be started once the above tasks have been completed or a first version thereof at least. Coding should be done, where possible, in ANSI C. All functionalities of the ANSI C compiler which improve the reliability of programs should be used, for example function prototyping.

Coding is best done using the automatic class generator written by Laurent Claustre (1992). Two versions of this exist (1) an ascii version ( classgen) which requires file input, and (2) a Motif/X11 based version ( xclassgen) which uses a graphic interface. Consult the user's manual for the class generator for details on how to use it.

It is also possible to take an existing class and use it as the starting point for a new device class. A global edit can very quickly turn an existing class into the beginnings of a new class.



Andy Goetz
Tue Jan 28 13:58:13 MET 1997