DOKK / manpages / debian 10 / alliance / GENLIB_FLATTEN_PHFIG.3.en
GENLIB_FLATTEN_PHFIG.3(October 1, 1997) GENLIB_FLATTEN_PHFIG.3(October 1, 1997)

GENLIB_FLATTEN_PHFIG - flatten an instance in the current layout figure

#include <genlib.h>
void GENLIB_FLATTEN_PHFIG(insname,concat)
char ∗insname;
char concat;

See the file buster/alliance/alc_origin.1.en.gz.

Name of the instance to be flattened
Indicate whether or not to concatenate instance name to instance' objects name

FLATTEN_PHFIG inserts the contents of an instance, but its connectors, in the current figure, and then destroys the instance.
The concat parameter may take two values:

to concatenate object name with instance names.
to copy object names.

In most case, the concat value must be YES, in order to warranty the unicity of names in the figure. It may otherwise fail, because the function would try to add in the current figure some object with an already existing name.

#include <genlib.h>
main()
{
	/∗ Create a figure to work on  ∗/
	GENLIB_DEF_PHFIG("mycell");
	.
	.
	.
	/∗ Place an instance ∗/
	GENLIB_PLACE("model","instance", SYM_X, 0, 0);
	/∗ flatten an instance ∗/
	GENLIB_FLATTEN_PHFIG("instance", YES);
	/∗ Save all that on disk ∗/
	GENLIB_SAVE_PHFIG();
}

genlib(1), GENLIB_LOINS(3).

See the file buster/alliance/alc_bug_report.1.en.gz.

ASIM/LIP6 PROCEDURAL GENERATION LANGUAGE