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 esHierAP;
extern bool esMergeDevsA; extern bool esMergeDevsA;
extern bool esMergeDevsC; extern bool esMergeDevsC;
extern char esSpiceDefaultGnd[]; extern const char esSpiceDefaultGnd[];
extern char *esSpiceCapNode; extern const char *esSpiceCapNode;
#endif #endif
bool esDoSimExtResis = FALSE; bool esDoSimExtResis = FALSE;
bool esNoAlias = TRUE; bool esNoAlias = TRUE;
bool esNoLabel = TRUE; bool esNoLabel = TRUE;
char simesDefaultOut[FNSIZE]; char simesDefaultOut[FNSIZE];
char *simesOutName = simesDefaultOut; const char *simesOutName = simesDefaultOut;
char esDefaultAlias[FNSIZE], esDefaultLabel[FNSIZE]; char esDefaultAlias[FNSIZE], esDefaultLabel[FNSIZE];
char *esAliasName = esDefaultAlias; const char *esAliasName = esDefaultAlias;
char *esLabelName = esDefaultLabel; const char *esLabelName = esDefaultLabel;
char esCapFormat[FNSIZE]; char esCapFormat[FNSIZE];
FILE *esSimF = NULL; FILE *esSimF = NULL;
FILE *esAliasF = NULL; FILE *esAliasF = NULL;

View File

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