From 9c4fb65a582d86e5d8eb78496c2220464101a3d1 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Sun, 19 Jul 2020 21:56:00 -0400 Subject: [PATCH] Corrected a problem with "lef read" that prevents it from working with non-standard extensions such as ".tlef". --- lef/lefWrite.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lef/lefWrite.c b/lef/lefWrite.c index 848f7ab6..71ef906d 100644 --- a/lef/lefWrite.c +++ b/lef/lefWrite.c @@ -186,6 +186,11 @@ lefFileOpen(def, file, suffix, mode, prealfile) { if (strcmp(endp, suffix)) { + /* Try once as-is, with the given extension. That takes care */ + /* of some less-usual extensions like ".tlef". */ + if ((rfile = PaOpen(name, mode, NULL, Path, CellLibPath, prealfile)) != NULL) + return rfile; + len = endp - name; if (len > sizeof namebuf - 1) len = sizeof namebuf - 1; (void) strncpy(namebuf, name, len);