neslib / Chet

C Header Translator for Delphi
BSD 2-Clause "Simplified" License
204 stars 43 forks source link

Post Processing does not work #27

Closed michkowalczuk closed 6 months ago

michkowalczuk commented 9 months ago

Hi, My output pas file contains line starting with (* SRCVAL ( papoSource , eSrcType , ii ) and ends with *) I tried to use a few post processing functions:

but without any effect. Any suggestions?

michkowalczuk commented 9 months ago

I found that the order of postprocessing functions matters. The following code works:

RemoveAllLines("  (* SRCVAL ", 1)
RegEx(...)
RegEx(...)
CreateDynamicImport(0)

but this does not:

CreateDynamicImport(0)
RegEx(...)
RegEx(...)
RemoveAllLines("  (* SRCVAL ", 1)

You should check it.

jarroddavis68 commented 9 months ago

Hi, is it possible to send me that header you are trying to convert, I will have a look. Thx!

michkowalczuk commented 6 months ago

The problem does not occur now, so I'm closing the issue.