diff options
author | Nick Clifton <nickc@redhat.com> | 1999-11-11 16:35:12 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 1999-11-11 16:35:12 +0000 |
commit | c1eae11499c60c61b6aaa5fa5e316613dcb0b6ad (patch) | |
tree | 73fa328bef27107529ec5e2681d54d6b5681c207 /gas | |
parent | 26f59a9e6b71a206b92461149619f8574d052dc2 (diff) | |
download | gdb-c1eae11499c60c61b6aaa5fa5e316613dcb0b6ad.zip gdb-c1eae11499c60c61b6aaa5fa5e316613dcb0b6ad.tar.gz gdb-c1eae11499c60c61b6aaa5fa5e316613dcb0b6ad.tar.bz2 |
Look for seperator after TO and FROM tokens when exploring nested structures
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/macro.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index edad0df..62002eb 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +1999-11-11 Nick Clifton <nickc@cygnus.com> + + * macro.c (buffer_and_nest): Look for seperator after TO and + FROM tokens. + 1999-11-08 Andrew Haley <aph@cygnus.com> * app.c (do_scrub_chars): When in State 10, treat backslash diff --git a/gas/macro.c b/gas/macro.c index 2aeb157..2ef4cb4 100644 --- a/gas/macro.c +++ b/gas/macro.c @@ -245,9 +245,11 @@ buffer_and_nest (from, to, ptr, get_line) { if (ptr->ptr[i] == '.') i++; - if (strncasecmp (ptr->ptr + i, from, from_len) == 0) + if (strncasecmp (ptr->ptr + i, from, from_len) == 0 + && ! isalnum (ptr->ptr[i + from_len])) depth++; - if (strncasecmp (ptr->ptr + i, to, to_len) == 0) + if (strncasecmp (ptr->ptr + i, to, to_len) == 0 + && ! isalnum (ptr->ptr[i + to_len])) { depth--; if (depth == 0) |