summaryrefslogtreecommitdiffstats
path: root/src/map/mio/mioRead.c
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2012-10-01 11:44:14 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2012-10-01 11:44:14 -0700
commit73ab6aac1fad7cf7a4f15bccafff1eabebf8cce6 (patch)
tree9f68741dad9c785a0c2ea2336c7358e87ded5d77 /src/map/mio/mioRead.c
parenta595fa85ef1d324448e171651881b0b896c69098 (diff)
downloadabc-73ab6aac1fad7cf7a4f15bccafff1eabebf8cce6.tar.gz
abc-73ab6aac1fad7cf7a4f15bccafff1eabebf8cce6.tar.bz2
abc-73ab6aac1fad7cf7a4f15bccafff1eabebf8cce6.zip
Changes several defaults of 'super' to be infinite.
Diffstat (limited to 'src/map/mio/mioRead.c')
-rw-r--r--src/map/mio/mioRead.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/map/mio/mioRead.c b/src/map/mio/mioRead.c
index 05148776..ca913380 100644
--- a/src/map/mio/mioRead.c
+++ b/src/map/mio/mioRead.c
@@ -154,8 +154,7 @@ Mio_Library_t * Mio_LibraryReadBuffer( char * pBuffer, int fExtendedFormat, st__
Mio_Library_t * pLib;
// allocate the genlib structure
- pLib = ABC_ALLOC( Mio_Library_t, 1 );
- memset( pLib, 0, sizeof(Mio_Library_t) );
+ pLib = ABC_CALLOC( Mio_Library_t, 1 );
pLib->tName2Gate = st__init_table(strcmp, st__strhash);
pLib->pMmFlex = Mem_FlexStart();
pLib->vCube = Vec_StrAlloc( 100 );
@@ -337,8 +336,7 @@ Mio_Gate_t * Mio_LibraryReadGate( char ** ppToken, int fExtendedFormat )
char * pToken = *ppToken;
// allocate the gate structure
- pGate = ABC_ALLOC( Mio_Gate_t, 1 );
- memset( pGate, 0, sizeof(Mio_Gate_t) );
+ pGate = ABC_CALLOC( Mio_Gate_t, 1 );
// read the name
pToken = strtok( NULL, " \t\r\n" );
@@ -405,8 +403,7 @@ Mio_Pin_t * Mio_LibraryReadPin( char ** ppToken, int fExtendedFormat )
char * pToken = *ppToken;
// allocate the gate structure
- pPin = ABC_ALLOC( Mio_Pin_t, 1 );
- memset( pPin, 0, sizeof(Mio_Pin_t) );
+ pPin = ABC_CALLOC( Mio_Pin_t, 1 );
// read the name
pToken = strtok( NULL, " \t\r\n" );