1.6 KiB
1.6 KiB
External dependencies in copied format units
These references were inherited from the Allfix tree and need to be resolved during the format-by-format refactor pass.
ma.fmt.pkt.pas
Currently uses: msgunit, netaddrs, aftypes.
Needs from msgunit:
PktHeader— 58-byte FTN packet header recordPktRecord— per-message header record inside a packetPacketRecord— high-level parsed message with kludges, address parts, flavours, etc.FlavourType,FlavourTypeSet,DateTimeArray
Plan:
- Move
PktHeader+PktRecordintoma.fmt.pkt.pasitself (packet-only). - Move
PacketRecord,FlavourType,FlavourTypeSet,DateTimeArrayintoma.types.passo other backends can use them where needed. - Drop the
msgunit/netaddrs/aftypesusesclauses.
ma.fmt.wildcat.pas + ma.fmt.wcutil.pas
Currently use the WildCat SDK (WcType, WcMsgDb, WcUserDb, WcGlobal,
WcMisc, WcDb, Os2Comp, DosUtil, p_System).
Plan:
- Treat the WC SDK as an optional dependency. Wrap the entire backend in
{$IFDEF WILDCAT4}so builds without the SDK still link. - Document in
README.mdthat Wildcat support requires the WC SDK source on the FPC search path.
include.inc
Allfix sources start with {$I include.inc}. Our copied units no longer
have that on the search path (we deliberately want the new lib to be
self-contained). Plan during refactor:
- Replace each
{$I include.inc}with explicit{$mode objfpc}{$H+}plus any other compiler switches the unit actually needs (most don't need more than mode +$H+). - Drop
WILDCAT4,EXECSWAP,UNIand other Allfix-specific defines.