First, it doesn't compile at all, because references to malloc.h need to be changed to stdlib.h.
Second, it still doesn't compile because the methods in output.c need to be declared void.
Third, it still doesn't compile because there needs to be a forward declaration of outputpattern as void.
At this point it compiles, but then you get to the bug. The tipoff is that when you run the Examples script, some of the output files are empty.
The problem seems to be in defs.h, which has the line:
Code: Select all
typedef unsigned long cellseg;
Code: Select all
typedef unsigned int cellseg;
After this change, the most obvious problems go away. It is still old code that I wrote when I was a much less experienced coder. For some reason, I used K&R declarations, though ANSI C had been out for years.
If there is interest and nobody else has done it, I can briefly clean up the code so it at least compiles and runs without the bug. I could also change the declarations to ANSI C.