Skip to content

Commit

Permalink
lef: constify remaining .data into .rodata
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmiles authored and RTimothyEdwards committed Feb 23, 2025
1 parent ac37927 commit 983f4cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lef/defRead.c
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ DefReadPins(
NULL
};

static int lef_class_to_bitmask[] = {
static const int lef_class_to_bitmask[] = {
PORT_CLASS_DEFAULT,
PORT_CLASS_INPUT,
PORT_CLASS_TRISTATE,
Expand All @@ -1507,7 +1507,7 @@ DefReadPins(
PORT_CLASS_FEEDTHROUGH
};

static int lef_use_to_bitmask[] = {
static const int lef_use_to_bitmask[] = {
PORT_USE_DEFAULT,
PORT_USE_SIGNAL,
PORT_USE_POWER,
Expand Down
2 changes: 1 addition & 1 deletion lef/defWrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const char *
defTransPos(
Transform *t)
{
static const char * def_orient[] = {
static const char * const def_orient[] = {
"N", "S", "E", "W", "FN", "FS", "FE", "FW"
};

Expand Down
4 changes: 2 additions & 2 deletions lef/lefRead.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,10 +311,10 @@ LefError(
static int errors = 0, warnings = 0, messages = 0;
va_list args;

char *lefdeftypes[] = {"LEF", "DEF", "techfile lef section"};
const char *lefdeftypes[] = {"LEF", "DEF", "techfile lef section"};

int mode, level;
char *lefdeftype;
const char *lefdeftype;

switch (type) {
case LEF_INFO:
Expand Down

0 comments on commit 983f4cb

Please sign in to comment.