Merry Christmas :-)

On Thu, 25 Dec 2025 at 11:02, Bertho Stultiens <[email protected]> wrote:

> There is not too much code, which would suggest that you can get away
> with some careful planning and (less) refactoring while using "#if
> V2/#if V3" blocks in the sole source file. That would make it easier
> because the declared structures are only local and no longer require a
> header.

It might be possible, but not only did the name of almost every data
structure and function change, but also the whole design philosophy,
so searching for GPIO lines starts at the "other end" so to speak.

I think it can be done, but it would make for a very hard-to-read source file.

As an illustration, here is the diff:
https://github.com/LinuxCNC/linuxcnc/commit/f3c7d024949387392aa2451b4e48947f10ddd9ff

Note that I still haven't gone through the code checking that
everything gets freed properly on load failure or normal exit. The new
API brings in a bunch of new xxx_free() functions too.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to