diff options
author | Steve Chamberlain <sac@cygnus> | 1995-06-21 21:37:13 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1995-06-21 21:37:13 +0000 |
commit | 85b369b3a4c2a58d782143f1ac046a2b2d2dd2fb (patch) | |
tree | 2c0649a730ef62b22a77138449354ef0b0a851a2 /gas/gasp.c | |
parent | d8cbfdec2e20e55043b6fc2d100d5dca7b84f515 (diff) | |
download | gdb-85b369b3a4c2a58d782143f1ac046a2b2d2dd2fb.zip gdb-85b369b3a4c2a58d782143f1ac046a2b2d2dd2fb.tar.gz gdb-85b369b3a4c2a58d782143f1ac046a2b2d2dd2fb.tar.bz2 |
* gasp.c (do_print, do_form, buffer_and_nest): Use case insensitive
string compares. gas/7274.
Diffstat (limited to 'gas/gasp.c')
-rw-r--r-- | gas/gasp.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1641,12 +1641,12 @@ do_print (idx, in) idx = sb_skip_white (idx, in); while (idx < in->len) { - if (strncmp (in->ptr + idx, "LIST", 4) == 0) + if (strncasecmp (in->ptr + idx, "LIST", 4) == 0) { fprintf (outfile, ".list\n"); idx += 4; } - else if (strncmp (in->ptr + idx, "NOLIST", 6) == 0) + else if (strncasecmp (in->ptr + idx, "NOLIST", 6) == 0) { fprintf (outfile, ".nolist\n"); idx += 6; @@ -1689,13 +1689,13 @@ do_form (idx, in) while (idx < in->len) { - if (strncmp (in->ptr + idx, "LIN=", 4) == 0) + if (strncasecmp (in->ptr + idx, "LIN=", 4) == 0) { idx += 4; idx = exp_get_abs ("form LIN= needs absolute expresssion.\n", idx, in, &lines); } - if (strncmp (in->ptr + idx, "COL=", 4) == 0) + if (strncasecmp (in->ptr + idx, "COL=", 4) == 0) { idx += 4; idx = exp_get_abs ("form COL= needs absolute expresssion.\n", idx, in, &columns); @@ -2490,9 +2490,9 @@ buffer_and_nest (from, to, ptr) { if (ptr->ptr[i] == '.') i++; - if (strncmp (ptr->ptr + i, from, from_len) == 0) + if (strncasecmp (ptr->ptr + i, from, from_len) == 0) depth++; - if (strncmp (ptr->ptr + i, to, to_len) == 0) + if (strncasecmp (ptr->ptr + i, to, to_len) == 0) { depth--; if (depth == 0) |