[fpc-devel] Macro Patch

Joerg Schuelke joerg.schuelke at gmx.de
Mon May 9 19:54:02 CEST 2011


A little further changing is needed to let it work as suspected. Even
if the macro is included via include file. In my first writing I didn't
recognize that the calling of insertmacro for _ID token is done with
mac.fileinfo.line and .fileindex, which is the point of definition.

Changed to current_scanner.line_no and
current_scanner.inputfile.ref_index.

Is this a problem for error recognition?, I think not, because the info
from the defining context is saved in the tmacro class.

Best regards
	Jörg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: macro-patch.diff
Type: text/x-patch
Size: 2540 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20110509/092c5589/attachment.bin>


More information about the fpc-devel mailing list