Skip to content

[Omission] §18.2.2 — C 'long' → LongInt mapping incomplete for 64-bit POSIX targets #44

Description

@NickHodges

Section: §18.2.2 C-to-Pascal Type Mapping table

Current text:
long → LongInt annotated "(Win32: 4 bytes)"

Problem:
The caveat is incomplete: on 64-bit Linux/macOS targets (LP64 data model), C's long is 8 bytes, while Delphi's LongInt is always 32-bit regardless of platform. The table should either map long differently per-platform or add an explicit warning that this mapping only holds on Windows (LLP64) and Win32; on POSIX 64-bit targets long corresponds to NativeInt/Int64, not LongInt.

Suggested fix:
Add a per-platform note: on Windows (Win32/Win64, LLP64), C long maps to LongInt (4 bytes); on 64-bit Linux/macOS (LP64), C long is 8 bytes and maps to NativeInt/Int64, not LongInt.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions