Corrected an issue with readline that breaks the non-Tcl/Tk flow
due to a missing function prototype. Modified the GDS output flow to always output instance IDs as a property, not just in the non-default case. The property has been used for many years and appears to be accepted by all tools reading GDS, so there is no downside to always generating this output. This has the upside that default instance names don't get scrambled by going from magic to GDS and back to magic.
This commit is contained in:
parent
05056d2f1f
commit
2519d0a4d8
|
|
@ -1605,13 +1605,11 @@ calmaWriteUseFunc(use, f)
|
|||
/* By NP */
|
||||
/* Property attributes/value pairs. */
|
||||
/* Add a CellUse ID property, if the CellUse has a non-default name */
|
||||
/* (Modified 11/11/2022: Do this always, not just the non-default case) */
|
||||
|
||||
if (!calmaIsUseNameDefault(use->cu_def->cd_name, use->cu_id))
|
||||
{
|
||||
calmaOutRH(6, CALMA_PROPATTR, CALMA_I2, f);
|
||||
calmaOutI2(CALMA_PROP_USENAME_STD, f);
|
||||
calmaOutStringRecord(CALMA_PROPVALUE, use->cu_id, f);
|
||||
}
|
||||
calmaOutRH(6, CALMA_PROPATTR, CALMA_I2, f);
|
||||
calmaOutI2(CALMA_PROP_USENAME_STD, f);
|
||||
calmaOutStringRecord(CALMA_PROPVALUE, use->cu_id, f);
|
||||
|
||||
/* Add an array limits property, if the CellUse is an array and */
|
||||
/* limits of the array (xlo, ylo) are not zero (the default). */
|
||||
|
|
|
|||
|
|
@ -1472,13 +1472,11 @@ calmaWriteUseFuncZ(use, f)
|
|||
/* By NP */
|
||||
/* Property attributes/value pairs. */
|
||||
/* Add a CellUse ID property, if the CellUse has a non-default name */
|
||||
/* (Modified 11/11/2022: Do this always, not just the non-default case) */
|
||||
|
||||
if (!calmaIsUseNameDefault(use->cu_def->cd_name, use->cu_id))
|
||||
{
|
||||
calmaOutRHZ(6, CALMA_PROPATTR, CALMA_I2, f);
|
||||
calmaOutI2Z(CALMA_PROP_USENAME_STD, f);
|
||||
calmaOutStringRecordZ(CALMA_PROPVALUE, use->cu_id, f);
|
||||
}
|
||||
calmaOutRHZ(6, CALMA_PROPATTR, CALMA_I2, f);
|
||||
calmaOutI2Z(CALMA_PROP_USENAME_STD, f);
|
||||
calmaOutStringRecordZ(CALMA_PROPVALUE, use->cu_id, f);
|
||||
|
||||
/* Add an array limits property, if the CellUse is an array and */
|
||||
/* limits of the array (xlo, ylo) are not zero (the default). */
|
||||
|
|
|
|||
|
|
@ -41,6 +41,9 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#define _XOPEN_SOURCE /* See feature_test_macros(7) */
|
||||
#include <wchar.h>
|
||||
|
||||
/* System-specific feature definitions and include files. */
|
||||
#include "rldefs.h"
|
||||
#include "rlmbutil.h"
|
||||
|
|
|
|||
Loading…
Reference in New Issue