From 427547c9272d695a81bbc55922c799d4277cf1da Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Sun, 15 Sep 2024 17:33:51 -0400 Subject: [PATCH] Changed the behavior of renaming conflicting cells from "#" to "__", because the use of "#" is considered illegal for cell names in GDS. --- VERSION | 2 +- database/DBio.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/VERSION b/VERSION index ac237a8d..b206c631 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.490 +8.3.491 diff --git a/database/DBio.c b/database/DBio.c index a594764c..d6e58024 100644 --- a/database/DBio.c +++ b/database/DBio.c @@ -2111,7 +2111,7 @@ badTransform: } else { - char *newname = (char *)mallocMagic(strlen(cellname) + 6); + char *newname = (char *)mallocMagic(strlen(cellname) + 7); int i = 0; /* To do: Run checksum on file (not yet implemented) */ @@ -2119,7 +2119,7 @@ badTransform: while (TRUE) { - sprintf(newname, "%s#%d", cellname, i); + sprintf(newname, "%s__%d", cellname, i); if (DBCellLookDef(newname) == NULL) break; i++; } @@ -2188,7 +2188,7 @@ badTransform: } else { - char *newname = (char *)mallocMagic(strlen(cellname) + 6); + char *newname = (char *)mallocMagic(strlen(cellname) + 7); int i = 0; /* To do: Run checksum on file (not yet implemented) */ @@ -2196,7 +2196,7 @@ badTransform: while (TRUE) { - sprintf(newname, "%s#%d", cellname, i); + sprintf(newname, "%s__%d", cellname, i); if (DBCellLookDef(newname) == NULL) break; i++; }