aboutsummaryrefslogtreecommitdiff
path: root/sim/igen/table.h
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.h
parent689c2b4b65fb5d0ce6b6414685e1f5c6f97d7c25 (diff)
downloadgdb-fa654e74f23fa6e18222a47b05dddb87abd5d5ad.zip
gdb-fa654e74f23fa6e18222a47b05dddb87abd5d5ad.tar.gz
gdb-fa654e74f23fa6e18222a47b05dddb87abd5d5ad.tar.bz2
sim: igen: constify various func arguments
Diffstat (limited to 'sim/igen/table.h')
-rw-r--r--sim/igen/table.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sim/igen/table.h b/sim/igen/table.h
index 3d38c57..358c12a 100644
--- a/sim/igen/table.h
+++ b/sim/igen/table.h
@@ -102,7 +102,8 @@ extern table_entry *table_read (table *file);
the end of FILE_NAME is reached, return to the pushed file */
extern void table_push
- (table *file, line_ref *line, table_include *search, const char *file_name);
+ (table *file, const line_ref *line, table_include *search,
+ const char *file_name);
/* Expand the specified field_nr using the internal expansion table.
@@ -115,16 +116,16 @@ extern void table_expand_field (table_entry *entry, int field_nr);
leading/trailing braces were striped as part of the read, they are
not written. */
-extern void table_print_code (lf *file, table_entry *entry);
+extern void table_print_code (lf *file, const table_entry *entry);
/* Debugging */
extern void dump_line_ref
- (lf *file, char *prefix, const line_ref *line, char *suffix);
+ (lf *file, const char *prefix, const line_ref *line, const char *suffix);
extern void dump_table_entry
- (lf *file, char *prefix, const table_entry *entry, char *suffix);
+ (lf *file, const char *prefix, const table_entry *entry, const char *suffix);