diff options
author | Markus Deuling <deuling@de.ibm.com> | 2008-01-18 09:12:19 +0000 |
---|---|---|
committer | Markus Deuling <deuling@de.ibm.com> | 2008-01-18 09:12:19 +0000 |
commit | a1f5383a6e6630a882aab5557eca39d5c963a27c (patch) | |
tree | 5da0bc5d9a1ee6d40b8647855585cb3cb1ff63bc /gdb/jv-exp.y | |
parent | 76c1408a41208166b54858bf763809c8039e1ec1 (diff) | |
download | gdb-a1f5383a6e6630a882aab5557eca39d5c963a27c.tar.gz |
* 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.y | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gdb/jv-exp.y b/gdb/jv-exp.y index 14a7bf852d5..9387fa79d1d 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; |