magic/cif
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
..
CIFgen.c cif: TiPlaneRect const ripple 2025-04-09 15:07:28 -04:00
CIFhier.c cif: use 'const' with 'rcsid' 2025-01-04 11:31:17 -05:00
CIFint.h cif: TiPlaneRect const ripple 2025-04-09 15:07:28 -04:00
CIFmain.c cif: use 'const' with 'rcsid' 2025-01-04 11:31:17 -05:00
CIFrdcl.c gcc11 -Wall -Wpedantic cleanup (post TCL9) 2025-01-06 16:24:57 +00:00
CIFrdpoly.c cif: use 'const' with readonly data (also consumer DBpaint) 2025-01-04 11:31:17 -05:00
CIFrdpt.c CIFParsePath() prototype change to simply return of created data 2025-06-26 16:09:43 +01:00
CIFrdtech.c cif: use 'const' with 'rcsid' 2025-01-04 11:31:17 -05:00
CIFrdutils.c CIFParsePath() prototype change to simply return of created data 2025-06-26 16:09:43 +01:00
CIFread.h CIFParsePath() prototype change to simply return of created data 2025-06-26 16:09:43 +01:00
CIFsee.c cif: use 'const' with 'rcsid' 2025-01-04 11:31:17 -05:00
CIFtech.c Added a new "orthogonal" operator to cifoutput to allow non- 2025-03-28 10:11:17 -04:00
CIFwrite.c cif: use 'const' with 'rcsid' 2025-01-04 11:31:17 -05:00
Makefile Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
cif.h K&R: cif.h conversion to ANSI 2024-12-26 13:05:14 -05:00