From 11c2ff1720471c4034e59056d42e57d34a812ed0 Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 24 Oct 2010 13:24:02 +0000 Subject: [PATCH] RALLOC usage unification, drop braces around the second argument --- ChangeLog | 5 +++++ src/spicelib/devices/asrc/asrcset.c | 10 +++++----- src/xspice/mif/mif_inp2.c | 2 +- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 16bc7956a..302c6dcb7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-10-24 Robert Larice + * src/spicelib/devices/asrc/asrcset.c , + * src/xspice/mif/mif_inp2.c : + RALLOC usage unification, drop braces around the second argument + 2010-10-24 Robert Larice * src/spicelib/devices/ndev/ndevset.c : use char* instead of void* diff --git a/src/spicelib/devices/asrc/asrcset.c b/src/spicelib/devices/asrc/asrcset.c index 0ff1bda6e..a2268aed9 100644 --- a/src/spicelib/devices/asrc/asrcset.c +++ b/src/spicelib/devices/asrc/asrcset.c @@ -72,7 +72,7 @@ if((here->ptr = SMPmakeElt(matrix, here->first, (second)->number))\ } here->ASRCposptr = (double **) - REALLOC(here->ASRCposptr, (sizeof(double *)*(j+5))); + REALLOC(here->ASRCposptr, sizeof(double *)*(j+5)); TSTALLOC(ASRCposptr[j++],ASRCposNode,ASRCbranch); TSTALLOC(ASRCposptr[j++],ASRCnegNode,ASRCbranch); TSTALLOC(ASRCposptr[j++],ASRCbranch,ASRCnegNode); @@ -99,13 +99,13 @@ if((here->ptr = SMPmakeElt(matrix, here->first, (second)->number))\ v_first = 0; } else{ here->ASRCposptr = (double **) - REALLOC(here->ASRCposptr, (sizeof(double *)*(j+1))); + REALLOC(here->ASRCposptr, sizeof(double *)*(j+1)); TSTALLOC(ASRCposptr[j++],ASRCbranch,ASRCcont_br); } } else if(here->ASRCtype == ASRC_CURRENT){ /* CCCS */ here->ASRCposptr = (double **) - REALLOC(here->ASRCposptr, (sizeof(double *) * (j+2))); + REALLOC(here->ASRCposptr, sizeof(double *) * (j+2)); TSTALLOC(ASRCposptr[j++],ASRCposNode,ASRCcont_br); TSTALLOC(ASRCposptr[j++],ASRCnegNode,ASRCcont_br); } else{ @@ -120,13 +120,13 @@ if((here->ptr = SMPmakeElt(matrix, here->first, (second)->number))\ v_first = 0; } else{ here->ASRCposptr = (double **) - REALLOC(here->ASRCposptr, (sizeof(double *) * (j+1))); + REALLOC(here->ASRCposptr, sizeof(double *) * (j+1)); MY_TSTALLOC(ASRCposptr[j++],ASRCbranch,here->ASRCtree->vars[i].nValue); } } else if(here->ASRCtype == ASRC_CURRENT){ /* VCCS */ here->ASRCposptr = (double **) - REALLOC(here->ASRCposptr, (sizeof(double *) * (j+2))); + REALLOC(here->ASRCposptr, sizeof(double *) * (j+2)); MY_TSTALLOC(ASRCposptr[j++],ASRCposNode,here->ASRCtree->vars[i].nValue); MY_TSTALLOC(ASRCposptr[j++],ASRCnegNode,here->ASRCtree->vars[i].nValue); } else{ diff --git a/src/xspice/mif/mif_inp2.c b/src/xspice/mif/mif_inp2.c index 54ab6db07..5091b25a9 100755 --- a/src/xspice/mif/mif_inp2.c +++ b/src/xspice/mif/mif_inp2.c @@ -775,7 +775,7 @@ MIFget_port( else { fast->conn[conn_num]->port = (Mif_Port_Data_t **) REALLOC( fast->conn[conn_num]->port, - ((port_num + 1) * sizeof(Mif_Port_Data_t *)) ); + (port_num + 1) * sizeof(Mif_Port_Data_t *) ); fast->conn[conn_num]->port[port_num] = (Mif_Port_Data_t *) tmalloc(sizeof(Mif_Port_Data_t)); }