From 7413d89da1deef60f780a471ccf0866da3add6d7 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Thu, 5 Mar 2020 13:14:47 -0500 Subject: [PATCH] Corrected the "lef writeall" command to add the "-hide" option, as is available for "lef write". This was inadvertently omitted. --- VERSION | 2 +- commands/CmdCD.c | 2 +- drc/DRCtech.c | 3 ++- lef/lefCmd.c | 4 +++- lef/lefWrite.c | 5 +++-- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/VERSION b/VERSION index 77db8419..e3635811 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.2.190 +8.2.192 diff --git a/commands/CmdCD.c b/commands/CmdCD.c index 0d31dff3..dc817c6f 100644 --- a/commands/CmdCD.c +++ b/commands/CmdCD.c @@ -1434,7 +1434,7 @@ CmdCif(w, cmd) if (!ToolGetBox(&rootDef, &box)) { TxError("Use the box to select the area in"); - TxError(" which you want to see CIF.\n"); + TxError(" which you want to paint CIF.\n"); return; } if (argc == 5) diff --git a/drc/DRCtech.c b/drc/DRCtech.c index 48009a51..d56bdaaf 100644 --- a/drc/DRCtech.c +++ b/drc/DRCtech.c @@ -361,7 +361,8 @@ drcWhyCreate(whystring) int i; char **newList; newList = (char **)mallocMagic((DRCCurStyle->DRCWhySize + 51) * sizeof(char *)); - for (i = 0; i < DRCCurStyle->DRCWhySize; i++) + newList[0] = (char *)NULL; + for (i = 1; i <= DRCCurStyle->DRCWhySize; i++) newList[i] = DRCCurStyle->DRCWhyList[i]; if (DRCCurStyle->DRCWhySize > 0) freeMagic((char *)DRCCurStyle->DRCWhyList); diff --git a/lef/lefCmd.c b/lef/lefCmd.c index 0322467a..df80f310 100644 --- a/lef/lefCmd.c +++ b/lef/lefCmd.c @@ -190,13 +190,15 @@ CmdLef(w, cmd) lefTopCell = FALSE; else if (!strncmp(cmd->tx_argv[i], "-tech", 5)) lefTech = TRUE; + else if (!strncmp(cmd->tx_argv[i], "-hide", 5)) + lefHide = TRUE; else if (!strncmp(cmd->tx_argv[i], "-all", 4)) recurse = TRUE; else goto wrongNumArgs; } else goto wrongNumArgs; } - LefWriteAll(selectedUse, lefTopCell, lefTech, recurse); + LefWriteAll(selectedUse, lefTopCell, lefTech, lefHide, recurse); } break; case LEF_WRITE: diff --git a/lef/lefWrite.c b/lef/lefWrite.c index 2984a2fb..b522684c 100644 --- a/lef/lefWrite.c +++ b/lef/lefWrite.c @@ -1133,10 +1133,11 @@ lefWriteMacro(def, f, scale, hide) */ void -LefWriteAll(rootUse, writeTopCell, lefTech, recurse) +LefWriteAll(rootUse, writeTopCell, lefTech, lefHide, recurse) CellUse *rootUse; bool writeTopCell; bool lefTech; + bool lefHide; bool recurse; { CellDef *def, *rootdef; @@ -1190,7 +1191,7 @@ LefWriteAll(rootUse, writeTopCell, lefTech, recurse) { def->cd_client = (ClientData) 0; if (!SigInterruptPending) - lefWriteMacro(def, f, scale); + lefWriteMacro(def, f, scale, lefHide); } /* End the LEF file */