next up previous contents
Next: reading ppufiles Up: Anatomy of a unit Previous: Anatomy of a unit

Basics

The best and most updated documentation about the ppu files can be found in ppu.pas and ppudump.pp which can be found in rtl/utils/.

To read or write the ppufile, you can use the ppu unit ppu.pas which has an object called tppufile which holds all routines that deal with ppufile handling. Describing the layout of a ppufile, the methods which can be used for it are described.

A unit file consists of basically five or six parts:

  1. A unit header.
  2. A file interface part.
  3. A definition part. Contains all type and procedure definitions.
  4. A symbol part. Contains all symbol names and references to their definitions.
  5. A browser part. Contains all references from this unit to other units and inside this unit. Only available when the uf_has_browser flag is set in the unit flags
  6. A file implementation part (currently unused). implementation part.


Michael Van Canneyt
Thu Sep 10 14:04:11 CEST 1998