projects
/
platform
/
upstream
/
binutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
26f59a9
)
Look for seperator after TO and FROM tokens when exploring nested structures
author
Nick Clifton
<nickc@redhat.com>
Thu, 11 Nov 1999 16:35:12 +0000
(16:35 +0000)
committer
Nick Clifton
<nickc@redhat.com>
Thu, 11 Nov 1999 16:35:12 +0000
(16:35 +0000)
gas/ChangeLog
patch
|
blob
|
history
gas/macro.c
patch
|
blob
|
history
diff --git
a/gas/ChangeLog
b/gas/ChangeLog
index
edad0df
..
62002eb
100644
(file)
--- 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
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
(file)
--- 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 (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++;
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)
{
depth--;
if (depth == 0)