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 | 1e5e79d0ce60af39979b37292669ec6dae3a9975 (patch) | |
tree | fe0c4d35cc8cdbbad853933280011f638bcded9f /gdb/m2-exp.y | |
parent | a1632360f3f7cd26b3dabb3f986fbd42eba79a95 (diff) | |
download | fsf-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/m2-exp.y')
-rw-r--r-- | gdb/m2-exp.y | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y index 9fd62cc..143252f 100644 --- a/gdb/m2-exp.y +++ b/gdb/m2-exp.y @@ -845,7 +845,7 @@ yylex () /* See if it is a special token of length 2 */ for( i = 0 ; i < (int) (sizeof tokentab2 / sizeof tokentab2[0]) ; i++) - if(DEPRECATED_STREQN(tokentab2[i].name, tokstart, 2)) + if (strncmp (tokentab2[i].name, tokstart, 2) == 0) { lexptr += 2; return tokentab2[i].token; @@ -1002,7 +1002,8 @@ yylex () /* Lookup special keywords */ for(i = 0 ; i < (int) (sizeof(keytab) / sizeof(keytab[0])) ; i++) - if(namelen == strlen(keytab[i].keyw) && DEPRECATED_STREQN(tokstart,keytab[i].keyw,namelen)) + if (namelen == strlen (keytab[i].keyw) + && strncmp (tokstart, keytab[i].keyw, namelen) == 0) return keytab[i].token; yylval.sval.ptr = tokstart; @@ -1076,12 +1077,12 @@ yylex () else { /* Built-in BOOLEAN type. This is sort of a hack. */ - if(DEPRECATED_STREQN(tokstart,"TRUE",4)) + if (strncmp (tokstart, "TRUE", 4) == 0) { yylval.ulval = 1; return M2_TRUE; } - else if(DEPRECATED_STREQN(tokstart,"FALSE",5)) + else if (strncmp (tokstart, "FALSE", 5) == 0) { yylval.ulval = 0; return M2_FALSE; |