Anatomy of a unit file
- BasicsAs described in chapter 4 , unit description files (hereafter called PPU files for short), are used to determine if the unit code must be recompiled or not. In
- reading ppufilesWe will first create an object ppufile which will be used below. We are opening unit test.ppu as an example. uses ppu; {$mode objfpc} var ppufile : tppufile; be
- The HeaderThe header consists of a record ( tppuheader ) containing several pieces of information for recompilation. This is shown in table 14.1 . The header is always st
- The sectionsApart from the header section, all the data in the PPU file is separated into data blocks, which permit easily adding additional data blocks, without compromisi
- Creating ppufilesCreating a new ppufile works almost the same as reading one. First you need to init the object and call create: ppufile:=new(pppufile,init('output.ppu')); ppufi
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
