ext2sim.c: constify string globals

This commit is contained in:
Darryl L. Miles 2025-07-24 14:20:12 +01:00 committed by R. Timothy Edwards
parent dc2de91668
commit 82a57f8714
3 changed files with 9 additions and 9 deletions

View File

@ -73,18 +73,18 @@ extern bool esNoAttrs;
extern bool esHierAP;
extern bool esMergeDevsA;
extern bool esMergeDevsC;
extern char esSpiceDefaultGnd[];
extern char *esSpiceCapNode;
extern const char esSpiceDefaultGnd[];
extern const char *esSpiceCapNode;
#endif
bool esDoSimExtResis = FALSE;
bool esNoAlias = TRUE;
bool esNoLabel = TRUE;
char simesDefaultOut[FNSIZE];
char *simesOutName = simesDefaultOut;
const char *simesOutName = simesDefaultOut;
char esDefaultAlias[FNSIZE], esDefaultLabel[FNSIZE];
char *esAliasName = esDefaultAlias;
char *esLabelName = esDefaultLabel;
const char *esAliasName = esDefaultAlias;
const char *esLabelName = esDefaultLabel;
char esCapFormat[FNSIZE];
FILE *esSimF = NULL;
FILE *esAliasF = NULL;

View File

@ -58,8 +58,8 @@ bool esMergeNames = TRUE;
bool esNoAttrs = FALSE;
bool esHierAP = FALSE;
char spcesDefaultOut[FNSIZE];
char *esSpiceCapNode;
char esSpiceDefaultGnd[] = "0";
const char *esSpiceCapNode;
const char esSpiceDefaultGnd[] = "0";
char *spcesOutName = spcesDefaultOut;
FILE *esSpiceF = NULL;
float esScale = -1.0 ; /* negative if hspice the EFScale/100 otherwise */

View File

@ -65,8 +65,8 @@ extern bool esDevNodesOnly;
extern bool esNoAttrs;
extern bool esHierAP;
extern char spcesDefaultOut[FNSIZE];
extern char *esSpiceCapNode;
extern char esSpiceDefaultGnd[];
extern const char *esSpiceCapNode;
extern const char esSpiceDefaultGnd[];
extern char *spcesOutName;
extern FILE *esSpiceF;
extern float esScale; /* negative if hspice the EFScale/100 otherwise */