IncludePath

2006 by Carl Verbiest, CCE NV

Scans the source, looks for includes and adds the path (relative to src) to the include name.

This is a clever use of Proparse's "scanner" feature combined with the use of the propath SEARCH function, in order to add relative paths to include file names. This is useful for cleaning up code that depended on each include file directory being on the propath. The goal is to reduce the number of entries on the propath. Thanks Carl!

includepath.p

Revision History
19 Mar 2006: First posted.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Actually used on our application

I have used an enhanced version of this to transform all our sources.
The enhancements are mostly only valid for our sources so it's not relevant to post them.

Some statistics

6881 sources.
4732603 lines of code
0.6 seconds avg. time to transform 1 source