magic/calma
Darryl L. Miles 66e72c748a CIFParsePath() prototype change to simply return of created data
Previously this was returning two values, a 'bool' and a data
structure that is created.  Now it simply returns the data
structure which makes it easier to reason about who takes
ownership of the memory and when, also that no address-of can
be supplied that has any side-effect that interacts with how
the method works / the returned result.

-extern bool CIFParsePath(CIFPath **pathheadpp, int iscale);
+extern CIFPath *CIFParsePath(int iscale);

Previous related comments:

Easier to reason about, there can be no interaction from *pathheadpp
and the various functions called, which maybe the first concern to
the next reader as visibility of new data is limited to that of a
local variable of the function.
2025-06-26 16:09:43 +01:00
..
CalmaRdcl.c calma: use 'const' with 'rcsid' 2025-01-04 11:31:17 -05:00
CalmaRdio.c calma: use 'const' with 'rcsid' 2025-01-04 11:31:17 -05:00
CalmaRdpt.c CIFParsePath() prototype change to simply return of created data 2025-06-26 16:09:43 +01:00
CalmaRead.c calma: use 'const' with 'rcsid' 2025-01-04 11:31:17 -05:00
CalmaWrite.c calma: TiPlaneRect const ripple 2025-04-09 15:07:28 -04:00
CalmaWriteZ.c calma: TiPlaneRect const ripple 2025-04-09 15:07:28 -04:00
Makefile Implemented native gzip compression/decompression using zlib routines. 2022-05-10 09:19:39 -04:00
calma.h printf: vararg functions use 'const' for format string 2025-01-03 09:08:14 +00:00
calmaInt.h CIFread.h: fix struct cifrstyle.crs_layers type bool -> enum (unsigned char) 2025-01-07 14:02:07 -05:00