In order to provide more information for IIncludeHandler.GetIncludeFileContent() implementation, I've made few changes.
This is needed in to be able to find .inc files in complex cases.
For example, you include jcl.inc. It's in your search path. So you can easily find it. Then jcl.inc has this line:
{$I jedi\jedi.inc} // Pull in the JCL/J-VCL shared directives
jedi\jedi.inc path is relative to jcl.inc. Thus order to find it, IIncludeHandler implementation needs to know full path to jcl.inc. That's why ParentFileName is passed to GetIncludeFileContent().
In order to provide more information for
IIncludeHandler.GetIncludeFileContent()
implementation, I've made few changes.This is needed in to be able to find .inc files in complex cases.
For example, you include
jcl.inc
. It's in your search path. So you can easily find it. Thenjcl.inc
has this line:jedi\jedi.inc
path is relative tojcl.inc
. Thus order to find it,IIncludeHandler
implementation needs to know full path tojcl.inc
. That's whyParentFileName
is passed toGetIncludeFileContent()
.