Sign in Join
FPDoc Onlineexperiment

Anatomy of a unit file

  1. 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
  2. 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
  3. 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
  4. 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
  5. 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.