next up previous contents index
Next: The UNIQMALLOC2 Macro Up: Compatibility with previous versions Previous: Define-before-use constraints

Node-sharing in Structure Files

From version V3_4 on the CSGIOwrite routines use node-sharing features. Older kc-generated programs can not read files that use node-sharing; of course, new kc-generated programs can read files without it. For compatibility with older programs, the use of node-sharing for writing files can be turned off. The routine kc_set_csgio_sharing  can be called with a boolean argument False to make the CSGIOwrite routines do not use the node-sharing. The routine returns the current csgio node-sharing setting.

In addition, if the preprocessor symbol KC_CSGIO_NO_SHARING  is defined when the generated csgiok.c file is compiled, the CSGIOwrite routines do not use the node-sharing. Defining this macro does not turn off the ability to read files that contain node-sharing.