aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-tic54x.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2005-03-10 09:32:20 +0000
committerJan Beulich <jbeulich@novell.com>2005-03-10 09:32:20 +0000
commit4962e19668d8962197e93b28a143ab988d08d375 (patch)
tree6207d56d56f024bee8399a758c477adc7325d7e6 /gas/config/tc-tic54x.c
parent54433e3802908c5d1a9b8929066e40778e10cb34 (diff)
downloadgdb-4962e19668d8962197e93b28a143ab988d08d375.zip
gdb-4962e19668d8962197e93b28a143ab988d08d375.tar.gz
gdb-4962e19668d8962197e93b28a143ab988d08d375.tar.bz2
gas/
2005-03-10 Jan Beulich <jbeulich@novell.com> * config/tc-tic54x.h (tic54x_macro_info): Change parameter type. * config/tc-tic54x.c (tic54x_macro_info): Likewise. Replace hand- crafted structure declarations with the types from macro.h.
Diffstat (limited to 'gas/config/tc-tic54x.c')
-rw-r--r--gas/config/tc-tic54x.c25
1 files changed, 3 insertions, 22 deletions
diff --git a/gas/config/tc-tic54x.c b/gas/config/tc-tic54x.c
index 5ff3fdd..e08a4df 100644
--- a/gas/config/tc-tic54x.c
+++ b/gas/config/tc-tic54x.c
@@ -2700,29 +2700,10 @@ tic54x_macro_start ()
}
void
-tic54x_macro_info (info)
- void *info;
+tic54x_macro_info (macro)
+ const macro_entry *macro;
{
- struct formal_struct
- {
- struct formal_struct *next; /* Next formal in list */
- sb name; /* Name of the formal */
- sb def; /* The default value */
- sb actual; /* The actual argument (changed on
- each expansion) */
- int index; /* The index of the formal
- 0 .. formal_count - 1 */
- } *entry;
- struct macro_struct
- {
- sb sub; /* Substitution text. */
- int formal_count; /* Number of formal args. */
- struct formal_struct *formals; /* Pointer to list of
- formal_structs. */
- struct hash_control *formal_hash; /* Hash table of formals. */
- } *macro;
-
- macro = (struct macro_struct *) info;
+ const formal_entry *entry;
/* Put the formal args into the substitution symbol table. */
for (entry = macro->formals; entry; entry = entry->next)