Inform - Support - Patches

About Patches  

Compiler  
Library  

DM4 Errata  

Issue C63019     [previous patch]

ICL preprocessor mishandles EOL characters
Submitted by: Anson Turner     Appeared in: Compiler 6.30     Fixed in: -
Problem

The preprocessor which handles ICL commands at the top of the source file, introduced by "!%" characters, fails to respect non-native EOL characters. For example, consider these two lines of ICL:

  !% -~S
  !% -D

The second line is ignored if, for example, the source file uses the Macintosh line-ending convention (0x0D) but the compiler is running on a PC (where the convention is 0x0D0A) or under Unix, including Mac OS X (where the convention is 0x0A).

Solution

Supply a replacement for fgets() which accepts cross-platform EOL characters.


Last updated 2 May 2008. The librarian in charge of this page is Roger Firth. Please email any comments, suggestions or corrections to roger@firthworks.com.