Chet icon indicating copy to clipboard operation
Chet copied to clipboard

CreateDynamicImport(0) should not parse comments

Open michkowalczuk opened this issue 2 years ago • 3 comments

Static (default) mode in Chet is more stable than dynamic. Example: In static mode Chet returns code with comments correctly moved from C header. In my case this comment contains string:

/**
The outer loop to be set for the face. If the
function succeeds, this loop will be deallocated.
*/

After using CreateDynamicImport(0) Chet generates the following method, which is a bug: succeeds := GetProcAddress(aDLLHandle, 'succeeds');

michkowalczuk avatar Dec 14 '23 21:12 michkowalczuk

Yup, I'm working on fixing this. Big update to post processing coming.

Another issue I recently discovered too is advanced records, it will try to do the same. So I have to figure out these corner cases.

jarroddavis68 avatar Dec 14 '23 21:12 jarroddavis68

Please update this thread once you've fixed it.

michkowalczuk avatar Dec 14 '23 21:12 michkowalczuk

Please update this thread once you've fixed it.

Will do.

jarroddavis68 avatar Dec 14 '23 21:12 jarroddavis68