aboutsummaryrefslogtreecommitdiff
path: root/gas/gasp.c
diff options
context:
space:
mode:
authorTimothy Wall <twall@alum.mit.edu>2000-03-26 14:47:33 +0000
committerTimothy Wall <twall@alum.mit.edu>2000-03-26 14:47:33 +0000
commit9f10757c407c9946029436682ae554f9739fa62d (patch)
tree3c3ca83d45d665e4dba0ca6539967296b22b7ced /gas/gasp.c
parentd0b472203592cbd847b4089b73b64e6782f07922 (diff)
downloadgdb-9f10757c407c9946029436682ae554f9739fa62d.zip
gdb-9f10757c407c9946029436682ae554f9739fa62d.tar.gz
gdb-9f10757c407c9946029436682ae554f9739fa62d.tar.bz2
Add macro handling extensions and line substitution support.
Diffstat (limited to 'gas/gasp.c')
-rw-r--r--gas/gasp.c33
1 files changed, 1 insertions, 32 deletions
diff --git a/gas/gasp.c b/gas/gasp.c
index 629e0c0..b35a4ae 100644
--- a/gas/gasp.c
+++ b/gas/gasp.c
@@ -193,37 +193,6 @@ typedef struct
} hash_table;
-/* Structures used to store macros.
-
- Each macro knows its name and included text. It gets built with a
- list of formal arguments, and also keeps a hash table which points
- into the list to speed up formal search. Each formal knows its
- name and its default value. Each time the macro is expanded, the
- formals get the actual values attatched to them. */
-
-/* describe the formal arguments to a macro */
-
-typedef 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 */
- }
-formal_entry;
-
-/* describe the macro. */
-
-typedef struct macro_struct
- {
- sb sub; /* substitution text. */
- int formal_count; /* number of formal args. */
- formal_entry *formals; /* pointer to list of formal_structs */
- hash_table formal_hash; /* hash table of formals. */
- }
-macro_entry;
-
/* how we nest files and expand macros etc.
we keep a stack of of include_stack structs. each include file
@@ -2687,7 +2656,7 @@ macro_op (idx, in)
return 0;
sb_terminate (in);
- if (! check_macro (in->ptr + idx, &out, comment_char, &err))
+ if (! check_macro (in->ptr + idx, &out, comment_char, &err, NULL))
return 0;
if (err != NULL)