Re: [fpc-pascal] FPC cannot understand 1-char string as PChar

2019-11-04 Thread Sven Barth via fpc-pascal
AlexeyT via fpc-pascal schrieb am Mo., 4. Nov. 2019, 23:40: > FPC 3.3.1-r43022 [2019/09/16] for Linux x64. This code crashes, because > fpc sees 'x', 'y' wrong: > >Py_BuildValue('{sLsisisisisisisOsOsOsisisisisisO}', > 'tag', > Mark.Tag, > 'x', > Mark.PosX, > 'y', >

[fpc-pascal] FPC cannot understand 1-char string as PChar

2019-11-04 Thread AlexeyT via fpc-pascal
FPC 3.3.1-r43022 [2019/09/16] for Linux x64. This code crashes, because fpc sees 'x', 'y' wrong:   Py_BuildValue('{sLsisisisisisisOsOsOsisisisisisO}',     'tag',     Mark.Tag,     'x',     Mark.PosX,     'y',     Mark.PosY,     'len',     Mark.LenX, I must change it to this, it works ok:  

Re: [fpc-pascal] FPC RGB+W LEDs

2019-11-04 Thread Jean SUZINEAU
It's possible but I've done it many years ago, I don't remember all the details . In think you'll have to use H2PAS ( https://wiki.lazarus.freepascal.org/Creating_bindings_for_C_libraries ). From what I see from main.c, I think you'll have