Skip to content

Commit 427547c

Browse files
Changed the behavior of renaming conflicting cells from
"<name>#<num>" to "<name>__<num>", because the use of "#" is considered illegal for cell names in GDS.
1 parent 974621e commit 427547c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.3.490
1+
8.3.491

database/DBio.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -2111,15 +2111,15 @@ dbReadUse(cellDef, line, len, f, scalen, scaled, dereference, dbUseTable)
21112111
}
21122112
else
21132113
{
2114-
char *newname = (char *)mallocMagic(strlen(cellname) + 6);
2114+
char *newname = (char *)mallocMagic(strlen(cellname) + 7);
21152115
int i = 0;
21162116

21172117
/* To do: Run checksum on file (not yet implemented) */
21182118
FCLOSE(ftest);
21192119

21202120
while (TRUE)
21212121
{
2122-
sprintf(newname, "%s#%d", cellname, i);
2122+
sprintf(newname, "%s__%d", cellname, i);
21232123
if (DBCellLookDef(newname) == NULL) break;
21242124
i++;
21252125
}
@@ -2188,15 +2188,15 @@ dbReadUse(cellDef, line, len, f, scalen, scaled, dereference, dbUseTable)
21882188
}
21892189
else
21902190
{
2191-
char *newname = (char *)mallocMagic(strlen(cellname) + 6);
2191+
char *newname = (char *)mallocMagic(strlen(cellname) + 7);
21922192
int i = 0;
21932193

21942194
/* To do: Run checksum on file (not yet implemented) */
21952195
FCLOSE(ftest);
21962196

21972197
while (TRUE)
21982198
{
2199-
sprintf(newname, "%s#%d", cellname, i);
2199+
sprintf(newname, "%s__%d", cellname, i);
22002200
if (DBCellLookDef(newname) == NULL) break;
22012201
i++;
22022202
}

0 commit comments

Comments
 (0)