Browse Source

FALLTHROUGH added

pre-master-46
Jim Monte 6 years ago
committed by Holger Vogt
parent
commit
82f832351b
  1. 6
      src/spicelib/devices/bjt/bjtparam.c
  2. 6
      src/spicelib/devices/bsim1/b1par.c
  3. 4
      src/spicelib/devices/bsim2/b2par.c
  4. 8
      src/spicelib/devices/bsim3/b3par.c
  5. 8
      src/spicelib/devices/bsim3soi_dd/b3soiddpar.c
  6. 8
      src/spicelib/devices/bsim3soi_fd/b3soifdpar.c
  7. 8
      src/spicelib/devices/bsim3soi_pd/b3soipdpar.c
  8. 8
      src/spicelib/devices/bsim3v0/b3v0par.c
  9. 8
      src/spicelib/devices/bsim3v1/b3v1par.c
  10. 8
      src/spicelib/devices/bsim3v32/b3v32par.c
  11. 10
      src/spicelib/devices/bsim4/b4par.c
  12. 10
      src/spicelib/devices/bsim4v5/b4v5par.c
  13. 10
      src/spicelib/devices/bsim4v6/b4v6par.c
  14. 10
      src/spicelib/devices/bsim4v7/b4v7par.c

6
src/spicelib/devices/bjt/bjtparam.c

@ -26,7 +26,7 @@ BJTparam(int param, IFvalue *value, GENinstance *instPtr, IFvalue *select)
NG_IGNORE(select); NG_IGNORE(select);
switch(param) {
switch (param) {
case BJT_AREA: case BJT_AREA:
here->BJTarea = value->rValue; here->BJTarea = value->rValue;
here->BJTareaGiven = TRUE; here->BJTareaGiven = TRUE;
@ -66,7 +66,9 @@ BJTparam(int param, IFvalue *value, GENinstance *instPtr, IFvalue *select)
here->BJTsenParmNo = value->iValue; here->BJTsenParmNo = value->iValue;
break; break;
case BJT_IC : case BJT_IC :
switch(value->v.numValue) {
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch (value->v.numValue) {
case 2: case 2:
here->BJTicVCE = *(value->v.vec.rVec+1); here->BJTicVCE = *(value->v.vec.rVec+1);
here->BJTicVCEGiven = TRUE; here->BJTicVCEGiven = TRUE;

6
src/spicelib/devices/bsim1/b1par.c

@ -21,7 +21,7 @@ B1param(int param, IFvalue *value, GENinstance *inst,
NG_IGNORE(select); NG_IGNORE(select);
switch(param) {
switch (param) {
case BSIM1_W: case BSIM1_W:
here->B1w = value->rValue; here->B1w = value->rValue;
here->B1wGiven = TRUE; here->B1wGiven = TRUE;
@ -74,7 +74,9 @@ B1param(int param, IFvalue *value, GENinstance *inst,
here->B1icVGSGiven = TRUE; here->B1icVGSGiven = TRUE;
break; break;
case BSIM1_IC: case BSIM1_IC:
switch(value->v.numValue){
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch (value->v.numValue){
case 3: case 3:
here->B1icVBS = *(value->v.vec.rVec+2); here->B1icVBS = *(value->v.vec.rVec+2);
here->B1icVBSGiven = TRUE; here->B1icVBSGiven = TRUE;

4
src/spicelib/devices/bsim2/b2par.c

@ -20,7 +20,7 @@ B2param(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
NG_IGNORE(select); NG_IGNORE(select);
switch(param) {
switch (param) {
case BSIM2_W: case BSIM2_W:
here->B2w = value->rValue; here->B2w = value->rValue;
here->B2wGiven = TRUE; here->B2wGiven = TRUE;
@ -73,6 +73,8 @@ B2param(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
here->B2icVGSGiven = TRUE; here->B2icVGSGiven = TRUE;
break; break;
case BSIM2_IC: case BSIM2_IC:
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch(value->v.numValue){ switch(value->v.numValue){
case 3: case 3:
here->B2icVBS = *(value->v.vec.rVec+2); here->B2icVBS = *(value->v.vec.rVec+2);

8
src/spicelib/devices/bsim3/b3par.c

@ -31,8 +31,8 @@ IFvalue *select)
if (!cp_getvar("scale", CP_REAL, &scale, 0)) if (!cp_getvar("scale", CP_REAL, &scale, 0))
scale = 1; scale = 1;
switch(param)
{ case BSIM3_W:
switch (param) {
case BSIM3_W:
here->BSIM3w = value->rValue*scale; here->BSIM3w = value->rValue*scale;
here->BSIM3wGiven = TRUE; here->BSIM3wGiven = TRUE;
break; break;
@ -104,7 +104,9 @@ IFvalue *select)
here->BSIM3mulu0Given = TRUE; here->BSIM3mulu0Given = TRUE;
break; break;
case BSIM3_IC: case BSIM3_IC:
switch(value->v.numValue){
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch (value->v.numValue) {
case 3: case 3:
here->BSIM3icVBS = *(value->v.vec.rVec+2); here->BSIM3icVBS = *(value->v.vec.rVec+2);
here->BSIM3icVBSGiven = TRUE; here->BSIM3icVBSGiven = TRUE;

8
src/spicelib/devices/bsim3soi_dd/b3soiddpar.c

@ -23,8 +23,10 @@ B3SOIDDparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
NG_IGNORE(select); NG_IGNORE(select);
switch(param)
{ case B3SOIDD_W:
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch(param) {
case B3SOIDD_W:
here->B3SOIDDw = value->rValue; here->B3SOIDDw = value->rValue;
here->B3SOIDDwGiven = TRUE; here->B3SOIDDwGiven = TRUE;
break; break;
@ -104,7 +106,7 @@ B3SOIDDparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
here->B3SOIDDbodySquaresGiven = TRUE; here->B3SOIDDbodySquaresGiven = TRUE;
break; break;
case B3SOIDD_IC: case B3SOIDD_IC:
switch(value->v.numValue){
switch (value->v.numValue) {
case 5: case 5:
here->B3SOIDDicVPS = *(value->v.vec.rVec+4); here->B3SOIDDicVPS = *(value->v.vec.rVec+4);
here->B3SOIDDicVPSGiven = TRUE; here->B3SOIDDicVPSGiven = TRUE;

8
src/spicelib/devices/bsim3soi_fd/b3soifdpar.c

@ -24,8 +24,8 @@ B3SOIFDparam(int param, IFvalue *value, GENinstance *inst,
NG_IGNORE(select); NG_IGNORE(select);
switch(param)
{ case B3SOIFD_W:
switch (param) {
case B3SOIFD_W:
here->B3SOIFDw = value->rValue; here->B3SOIFDw = value->rValue;
here->B3SOIFDwGiven = TRUE; here->B3SOIFDwGiven = TRUE;
break; break;
@ -105,7 +105,9 @@ B3SOIFDparam(int param, IFvalue *value, GENinstance *inst,
here->B3SOIFDbodySquaresGiven = TRUE; here->B3SOIFDbodySquaresGiven = TRUE;
break; break;
case B3SOIFD_IC: case B3SOIFD_IC:
switch(value->v.numValue){
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch (value->v.numValue) {
case 5: case 5:
here->B3SOIFDicVPS = *(value->v.vec.rVec+4); here->B3SOIFDicVPS = *(value->v.vec.rVec+4);
here->B3SOIFDicVPSGiven = TRUE; here->B3SOIFDicVPSGiven = TRUE;

8
src/spicelib/devices/bsim3soi_pd/b3soipdpar.c

@ -25,8 +25,10 @@ B3SOIPDparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
NG_IGNORE(select); NG_IGNORE(select);
switch(param)
{ case B3SOIPD_W:
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch(param) {
case B3SOIPD_W:
here->B3SOIPDw = value->rValue; here->B3SOIPDw = value->rValue;
here->B3SOIPDwGiven = TRUE; here->B3SOIPDwGiven = TRUE;
break; break;
@ -148,7 +150,7 @@ B3SOIPDparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
case B3SOIPD_IC: case B3SOIPD_IC:
switch(value->v.numValue){
switch (value->v.numValue) {
case 5: case 5:
here->B3SOIPDicVPS = *(value->v.vec.rVec+4); here->B3SOIPDicVPS = *(value->v.vec.rVec+4);
here->B3SOIPDicVPSGiven = TRUE; here->B3SOIPDicVPSGiven = TRUE;

8
src/spicelib/devices/bsim3v0/b3v0par.c

@ -23,8 +23,8 @@ BSIM3v0param(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
if (!cp_getvar("scale", CP_REAL, &scale, 0)) if (!cp_getvar("scale", CP_REAL, &scale, 0))
scale = 1; scale = 1;
switch(param)
{ case BSIM3v0_W:
switch (param) {
case BSIM3v0_W:
here->BSIM3v0w = value->rValue*scale; here->BSIM3v0w = value->rValue*scale;
here->BSIM3v0wGiven = TRUE; here->BSIM3v0wGiven = TRUE;
break; break;
@ -80,7 +80,9 @@ BSIM3v0param(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
here->BSIM3v0nqsModGiven = TRUE; here->BSIM3v0nqsModGiven = TRUE;
break; break;
case BSIM3v0_IC: case BSIM3v0_IC:
switch(value->v.numValue){
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch (value->v.numValue) {
case 3: case 3:
here->BSIM3v0icVBS = *(value->v.vec.rVec+2); here->BSIM3v0icVBS = *(value->v.vec.rVec+2);
here->BSIM3v0icVBSGiven = TRUE; here->BSIM3v0icVBSGiven = TRUE;

8
src/spicelib/devices/bsim3v1/b3v1par.c

@ -29,8 +29,8 @@ BSIM3v1param(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
if (!cp_getvar("scale", CP_REAL, &scale, 0)) if (!cp_getvar("scale", CP_REAL, &scale, 0))
scale = 1; scale = 1;
switch(param)
{ case BSIM3v1_W:
switch (param) {
case BSIM3v1_W:
here->BSIM3v1w = value->rValue*scale; here->BSIM3v1w = value->rValue*scale;
here->BSIM3v1wGiven = TRUE; here->BSIM3v1wGiven = TRUE;
break; break;
@ -86,7 +86,9 @@ BSIM3v1param(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
here->BSIM3v1nqsModGiven = TRUE; here->BSIM3v1nqsModGiven = TRUE;
break; break;
case BSIM3v1_IC: case BSIM3v1_IC:
switch(value->v.numValue){
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch (value->v.numValue) {
case 3: case 3:
here->BSIM3v1icVBS = *(value->v.vec.rVec+2); here->BSIM3v1icVBS = *(value->v.vec.rVec+2);
here->BSIM3v1icVBSGiven = TRUE; here->BSIM3v1icVBSGiven = TRUE;

8
src/spicelib/devices/bsim3v32/b3v32par.c

@ -28,8 +28,8 @@ BSIM3v32param (int param, IFvalue *value, GENinstance *inst, IFvalue *select)
if (!cp_getvar("scale", CP_REAL, &scale, 0)) if (!cp_getvar("scale", CP_REAL, &scale, 0))
scale = 1; scale = 1;
switch(param)
{ case BSIM3v32_W:
switch (param) {
case BSIM3v32_W:
here->BSIM3v32w = value->rValue*scale; here->BSIM3v32w = value->rValue*scale;
here->BSIM3v32wGiven = TRUE; here->BSIM3v32wGiven = TRUE;
break; break;
@ -97,7 +97,9 @@ BSIM3v32param (int param, IFvalue *value, GENinstance *inst, IFvalue *select)
here->BSIM3v32mulu0Given = TRUE; here->BSIM3v32mulu0Given = TRUE;
break; break;
case BSIM3v32_IC: case BSIM3v32_IC:
switch(value->v.numValue){
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch (value->v.numValue) {
case 3: case 3:
here->BSIM3v32icVBS = *(value->v.vec.rVec+2); here->BSIM3v32icVBS = *(value->v.vec.rVec+2);
here->BSIM3v32icVBSGiven = TRUE; here->BSIM3v32icVBSGiven = TRUE;

10
src/spicelib/devices/bsim4/b4par.c

@ -81,8 +81,8 @@ IFvalue *select)
if (!cp_getvar("scale", CP_REAL, &scale, 0)) if (!cp_getvar("scale", CP_REAL, &scale, 0))
scale = 1; scale = 1;
switch(param)
{ case BSIM4_W:
switch (param) {
case BSIM4_W:
here->BSIM4w = value->rValue * scale; here->BSIM4w = value->rValue * scale;
here->BSIM4wGiven = TRUE; here->BSIM4wGiven = TRUE;
break; break;
@ -230,8 +230,10 @@ IFvalue *select)
here->BSIM4icVBSGiven = TRUE; here->BSIM4icVBSGiven = TRUE;
break; break;
case BSIM4_IC: case BSIM4_IC:
switch(value->v.numValue)
{ case 3:
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch (value->v.numValue) {
case 3:
here->BSIM4icVBS = *(value->v.vec.rVec+2); here->BSIM4icVBS = *(value->v.vec.rVec+2);
here->BSIM4icVBSGiven = TRUE; here->BSIM4icVBSGiven = TRUE;
/* FALLTHROUGH */ /* FALLTHROUGH */

10
src/spicelib/devices/bsim4v5/b4v5par.c

@ -35,8 +35,8 @@ IFvalue *select)
if (!cp_getvar("scale", CP_REAL, &scale, 0)) if (!cp_getvar("scale", CP_REAL, &scale, 0))
scale = 1; scale = 1;
switch(param)
{ case BSIM4v5_W:
switch (param) {
case BSIM4v5_W:
here->BSIM4v5w = value->rValue*scale; here->BSIM4v5w = value->rValue*scale;
here->BSIM4v5wGiven = TRUE; here->BSIM4v5wGiven = TRUE;
break; break;
@ -180,8 +180,10 @@ IFvalue *select)
here->BSIM4v5icVBSGiven = TRUE; here->BSIM4v5icVBSGiven = TRUE;
break; break;
case BSIM4v5_IC: case BSIM4v5_IC:
switch(value->v.numValue)
{ case 3:
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch (value->v.numValue) {
case 3:
here->BSIM4v5icVBS = *(value->v.vec.rVec+2); here->BSIM4v5icVBS = *(value->v.vec.rVec+2);
here->BSIM4v5icVBSGiven = TRUE; here->BSIM4v5icVBSGiven = TRUE;
/* FALLTHROUGH */ /* FALLTHROUGH */

10
src/spicelib/devices/bsim4v6/b4v6par.c

@ -37,8 +37,8 @@ IFvalue *select)
if (!cp_getvar("scale", CP_REAL, &scale, 0)) if (!cp_getvar("scale", CP_REAL, &scale, 0))
scale = 1; scale = 1;
switch(param)
{ case BSIM4v6_W:
switch (param) {
case BSIM4v6_W:
here->BSIM4v6w = value->rValue*scale; here->BSIM4v6w = value->rValue*scale;
here->BSIM4v6wGiven = TRUE; here->BSIM4v6wGiven = TRUE;
break; break;
@ -182,8 +182,10 @@ IFvalue *select)
here->BSIM4v6icVBSGiven = TRUE; here->BSIM4v6icVBSGiven = TRUE;
break; break;
case BSIM4v6_IC: case BSIM4v6_IC:
switch(value->v.numValue)
{ case 3:
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch (value->v.numValue) {
case 3:
here->BSIM4v6icVBS = *(value->v.vec.rVec+2); here->BSIM4v6icVBS = *(value->v.vec.rVec+2);
here->BSIM4v6icVBSGiven = TRUE; here->BSIM4v6icVBSGiven = TRUE;
/* FALLTHROUGH */ /* FALLTHROUGH */

10
src/spicelib/devices/bsim4v7/b4v7par.c

@ -37,8 +37,8 @@ IFvalue *select)
if (!cp_getvar("scale", CP_REAL, &scale, 0)) if (!cp_getvar("scale", CP_REAL, &scale, 0))
scale = 1; scale = 1;
switch(param)
{ case BSIM4v7_W:
switch (param) {
case BSIM4v7_W:
here->BSIM4v7w = value->rValue * scale; here->BSIM4v7w = value->rValue * scale;
here->BSIM4v7wGiven = TRUE; here->BSIM4v7wGiven = TRUE;
break; break;
@ -186,8 +186,10 @@ IFvalue *select)
here->BSIM4v7icVBSGiven = TRUE; here->BSIM4v7icVBSGiven = TRUE;
break; break;
case BSIM4v7_IC: case BSIM4v7_IC:
switch(value->v.numValue)
{ case 3:
/* FALLTHROUGH added to suppress GCC warning due to
* -Wimplicit-fallthrough flag */
switch (value->v.numValue) {
case 3:
here->BSIM4v7icVBS = *(value->v.vec.rVec+2); here->BSIM4v7icVBS = *(value->v.vec.rVec+2);
here->BSIM4v7icVBSGiven = TRUE; here->BSIM4v7icVBSGiven = TRUE;
/* FALLTHROUGH */ /* FALLTHROUGH */

Loading…
Cancel
Save