Lookup() constify call-site

plow/PlowCmd.c: Lookup() constify call-site
plot/plotVers.c: Lookup() constify call-site
plot/plotMain.c: Lookup() constify call-site
plot/plotCmd.c: Lookup() constify call-site
netmenu/NMnetlist.c: Lookup() constify call-site
netmenu/NMcmdLZ.c: Lookup() constify call-site
netmenu/NMcmdAK.c: Lookup() constify call-site
lef/lefTech.c: Lookup() constify call-site
lef/lefCmd.c: Lookup() constify call-site
irouter/irRoute.c: Lookup() constify call-site
irouter/irCommand.c: Lookup() constify call-site
router/rtrCmd.c: Lookup() constify call-site
resis/ResRex.c: Lookup() constify call-site
gcr/gcrShwFlgs.c: Lookup() constify call-site
windows/windCmdSZ.c: Lookup() constify call-site
This commit is contained in:
Darryl L. Miles
2024-12-26 15:20:58 -05:00
committed by Tim Edwards
parent c2d533af3b
commit 3dbcb0759e
15 changed files with 29 additions and 27 deletions
+2 -2
View File
@@ -91,7 +91,7 @@ CmdPlot(w, cmd)
TxCommand *cmd;
{
int option;
char **msg;
const char * const *msg;
MagWindow *window;
DBWclientRec *crec;
TileTypeBitMask mask;
@@ -105,7 +105,7 @@ CmdPlot(w, cmd)
extern void GrTCairoPlotSVG();
#endif
static char *cmdPlotOption[] =
static const char * const cmdPlotOption[] =
{
"postscript file [layers] generate PostScript file for what's\n\
underneath the box",
+4 -4
View File
@@ -52,7 +52,7 @@ static char rcsid[] __attribute__ ((unused)) = "$Header: /usr/cvsroot/magic-8.0/
/* remain in the following lists so that magic doesn't complain when */
/* encountering these styles in the technology file. */
static char *plotStyles[] = /* Names of tech subsections. */
static const char * const plotStyles[] = /* Names of tech subsections. */
{
"postscript",
"pnm",
@@ -64,7 +64,7 @@ static char *plotStyles[] = /* Names of tech subsections. */
};
/* These names need to match the plot types enumerated in plotInt.h */
static char *plotTypeNames[] =
static const char * const plotTypeNames[] =
{
"versatec_color",
"versatec_bw",
@@ -384,8 +384,8 @@ PlotSetParam(name, value)
char *value; /* New value for the parameter. */
{
int indx, i;
static char *tfNames[] = { "false", "true", 0 };
static char *paramNames[] =
static const char * const tfNames[] = { "false", "true", 0 };
static const char * const paramNames[] =
{
"showcellnames",
"ps_cellidfont",
+1 -1
View File
@@ -1074,7 +1074,7 @@ PlotVersatec(scx, layers, xMask, user_scale)
*/
int user_scale; /* Scalefactor of output */
{
static char *yesNo[] = {"no", "yes", NULL};
static const char * const yesNo[] = {"no", "yes", NULL};
int dotsAcross, dotsDown, swathsDown, scaleDown;
int mag_width; /* lambda */
float width; /* inches */