Forum > LCL

TRegExpr issue

(1/3) > >>

Capsticks:
Hi,
I'm fairly new to Lazarus, but I have managed to produce one project.
I now wish to convert a source 'c' library (.h extension) to .pas using h2pas.
However, all that happens is a fatal error: TRegExpr exec: empty input string.

I have found minimal mention of this issue but without any solution (except it seems in a later version which isn't available yet).
Is there any solution to this - and please make it simple so I can actually understand it.
Current setup:
Windows 10
Lazarus 2.0.12
Fpc 3.2.0

Thanks.

jamie:
unless you are using it wrong, there could be some C code that the RegExpr is crashing on..

I've never used that utility myself so I can't comment much on that but I will say that all it does is converts headers of types, it will not convert program code to pascal..

 You most likely would do better simply hand converting it.

engkin:
I think the title is not correct. It is more of h2pas problem.

If you can share the c file (.h) it would make it possible for someone to try and track the error, if any.

Alextp:

--- Quote ---However, all that happens is a fatal error: TRegExpr exec: empty input string.

--- End quote ---
That was a bug in RegExpr, fixed in FPC trunk (seems FPC 3.2.2 has that fix).

Alextp:
Bug was added by me, fixed by me, and last RegExpr is here--
https://github.com/Alexey-T/TRegExpr

Navigation

[0] Message Index

[#] Next page

Go to full version