Am 15.05.2021 um 20:08 schrieb Ryan Joseph via fpc-devel:

On May 15, 2021, at 10:49 AM, Ryan Joseph <generic...@gmail.com> wrote:

Also it looks like ChangeOwnerAndName isn't making the compiler happy.
Sorry for the noise, I figured out it was because the name had spaces. How 
should I make the name then? I'm doing this for now which is certainly unique 
but it's not standard.

               
newtype:=ctypesym.create(def.fullownerhierarchyname(false)+typName[def.typ]+'$'+def.unique_id_str,def);

It will make names like below which don't upset the assembler.

SOMETESTUNIT.arraydef$00005

Anyways, I put up a patch on the bug tracker 
(https://bugs.freepascal.org/view.php?id=35261) for you to review and see if I 
did this right.
I had already wondered why that worked previously. But yes, that approach is better.

Regards,
Sven
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to