aboutsummaryrefslogtreecommitdiff
path: root/sim/igen/table.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-11-10 23:09:00 +0700
committerMike Frysinger <vapier@gentoo.org>2022-11-11 01:39:49 +0700
commitfa654e74f23fa6e18222a47b05dddb87abd5d5ad (patch)
treecb956f4ee7b00e9bb7be9935efff10971b618205 /sim/igen/table.c
parent689c2b4b65fb5d0ce6b6414685e1f5c6f97d7c25 (diff)
downloadfsf-binutils-gdb-fa654e74f23fa6e18222a47b05dddb87abd5d5ad.zip
fsf-binutils-gdb-fa654e74f23fa6e18222a47b05dddb87abd5d5ad.tar.gz
fsf-binutils-gdb-fa654e74f23fa6e18222a47b05dddb87abd5d5ad.tar.bz2
sim: igen: constify various func arguments
Diffstat (limited to 'sim/igen/table.c')
-rw-r--r--sim/igen/table.c16
1 files changed, 11 insertions, 5 deletions
diff --git a/sim/igen/table.c b/sim/igen/table.c
index e0bb665..acf6e1c 100644
--- a/sim/igen/table.c
+++ b/sim/igen/table.c
@@ -80,7 +80,9 @@ set_nr_table_entry_fields (table_entry *entry, int nr_fields)
void
table_push (table *root,
- line_ref *line, table_include *includes, const char *file_name)
+ const line_ref *line,
+ table_include *includes,
+ const char *file_name)
{
FILE *ff;
open_table *file;
@@ -485,7 +487,7 @@ table_read (table *root)
}
extern void
-table_print_code (lf *file, table_entry *entry)
+table_print_code (lf *file, const table_entry *entry)
{
int field_nr;
int nr = 0;
@@ -528,9 +530,11 @@ table_print_code (lf *file, table_entry *entry)
}
-
void
-dump_line_ref (lf *file, char *prefix, const line_ref *line, char *suffix)
+dump_line_ref (lf *file,
+ const char *prefix,
+ const line_ref *line,
+ const char *suffix)
{
lf_printf (file, "%s(line_ref*) 0x%lx", prefix, (long) line);
if (line != NULL)
@@ -559,7 +563,9 @@ table_entry_type_to_str (table_entry_type type)
void
dump_table_entry (lf *file,
- char *prefix, const table_entry *entry, char *suffix)
+ const char *prefix,
+ const table_entry *entry,
+ const char *suffix)
{
lf_printf (file, "%s(table_entry*) 0x%lx", prefix, (long) entry);
if (entry != NULL)