From 82106387a610cd375cc6430745ad49f1d6befc65 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 29 May 2020 16:26:37 -0400 Subject: [PATCH] Corrected the type of hash key on the property definitions hash table in lefWrite. --- lef/lefWrite.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lef/lefWrite.c b/lef/lefWrite.c index 1207a6d2..68103644 100644 --- a/lef/lefWrite.c +++ b/lef/lefWrite.c @@ -209,14 +209,14 @@ lefWriteHeader(def, f, lefTech, propTable) nprops = 0; while (he = HashNext(propTable, &hs)) { - if (nprops == 0) fprintf(f, IN0 "PROPERTYDEFINITIONS\n"); + if (nprops == 0) fprintf(f, "PROPERTYDEFINITIONS\n"); nprops++; /* NOTE: Type (e.g., "STRING") may be kept in hash value. */ /* This has not been implemented; only string types are supported */ - fprintf(f, IN1 "MACRO %s STRING ;\n", (char *)he->h_key.h_name); + fprintf(f, IN0 "MACRO %s STRING ;\n", (char *)he->h_key.h_ptr); } - if (nprops > 0) fprintf(f, IN0 "END PROPERTYDEFINITIONS\n"); + if (nprops > 0) fprintf(f, "END PROPERTYDEFINITIONS\n"); if (!lefTech) return; @@ -1638,7 +1638,7 @@ LefWriteAll(rootUse, writeTopCell, lefTech, lefHide, recurse) } /* For all cells, collect any properties */ - HashInit(&propHashTbl, 4, HT_WORDKEYS); + HashInit(&propHashTbl, 4, HT_STRINGKEYS); StackEnum(lefDefStack, lefGetProperties, &propHashTbl); /* Now generate LEF output for all the cells we just found */