aboutsummaryrefslogtreecommitdiff
path: root/gas/macro.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-11-11 16:35:12 +0000
committerNick Clifton <nickc@redhat.com>1999-11-11 16:35:12 +0000
commitc1eae11499c60c61b6aaa5fa5e316613dcb0b6ad (patch)
tree73fa328bef27107529ec5e2681d54d6b5681c207 /gas/macro.c
parent26f59a9e6b71a206b92461149619f8574d052dc2 (diff)
downloadgdb-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/macro.c')
-rw-r--r--gas/macro.c6
1 files changed, 4 insertions, 2 deletions
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)