aboutsummaryrefslogtreecommitdiff
path: root/gdb/jv-exp.y
diff options
context:
space:
mode:
authorMarkus Deuling <deuling@de.ibm.com>2008-01-18 09:12:19 +0000
committerMarkus Deuling <deuling@de.ibm.com>2008-01-18 09:12:19 +0000
commit1e5e79d0ce60af39979b37292669ec6dae3a9975 (patch)
treefe0c4d35cc8cdbbad853933280011f638bcded9f /gdb/jv-exp.y
parenta1632360f3f7cd26b3dabb3f986fbd42eba79a95 (diff)
downloadfsf-binutils-gdb-1e5e79d0ce60af39979b37292669ec6dae3a9975.zip
fsf-binutils-gdb-1e5e79d0ce60af39979b37292669ec6dae3a9975.tar.gz
fsf-binutils-gdb-1e5e79d0ce60af39979b37292669ec6dae3a9975.tar.bz2
* jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
function calls. * m2-exp.y (yylex): Likewise. * objc-exp.y (yylex): Likewise. * defs.h (DEPRECATED_STREQN): Remove.
Diffstat (limited to 'gdb/jv-exp.y')
-rw-r--r--gdb/jv-exp.y20
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/jv-exp.y b/gdb/jv-exp.y
index 14a7bf8..9387fa7 100644
--- a/gdb/jv-exp.y
+++ b/gdb/jv-exp.y
@@ -1128,34 +1128,34 @@ yylex ()
switch (namelen)
{
case 7:
- if (DEPRECATED_STREQN (tokstart, "boolean", 7))
+ if (strncmp (tokstart, "boolean", 7) == 0)
return BOOLEAN;
break;
case 6:
- if (DEPRECATED_STREQN (tokstart, "double", 6))
+ if (strncmp (tokstart, "double", 6) == 0)
return DOUBLE;
break;
case 5:
- if (DEPRECATED_STREQN (tokstart, "short", 5))
+ if (strncmp (tokstart, "short", 5) == 0)
return SHORT;
- if (DEPRECATED_STREQN (tokstart, "false", 5))
+ if (strncmp (tokstart, "false", 5) == 0)
{
yylval.lval = 0;
return BOOLEAN_LITERAL;
}
- if (DEPRECATED_STREQN (tokstart, "super", 5))
+ if (strncmp (tokstart, "super", 5) == 0)
return SUPER;
- if (DEPRECATED_STREQN (tokstart, "float", 5))
+ if (strncmp (tokstart, "float", 5) == 0)
return FLOAT;
break;
case 4:
- if (DEPRECATED_STREQN (tokstart, "long", 4))
+ if (strncmp (tokstart, "long", 4) == 0)
return LONG;
- if (DEPRECATED_STREQN (tokstart, "byte", 4))
+ if (strncmp (tokstart, "byte", 4) == 0)
return BYTE;
- if (DEPRECATED_STREQN (tokstart, "char", 4))
+ if (strncmp (tokstart, "char", 4) == 0)
return CHAR;
- if (DEPRECATED_STREQN (tokstart, "true", 4))
+ if (strncmp (tokstart, "true", 4) == 0)
{
yylval.lval = 1;
return BOOLEAN_LITERAL;