lex.c (DEF_OPERATOR): Say operator@' -not- operator @' whenever @ is a symbolic name.

2000-06-09  Gabriel Dos Reis  <gdr@codesourcery.com>

        * lex.c (DEF_OPERATOR): Say `operator@' -not- `operator @'
        whenever @ is a symbolic name.

From-SVN: r34465
This commit is contained in:
Gabriel Dos Reis 2000-06-09 08:40:02 +00:00 committed by Gabriel Dos Reis
parent 08c26ec9fa
commit dba1acea53
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-06-09 Gabriel Dos Reis <gdr@codesourcery.com>
* lex.c (DEF_OPERATOR): Say `operator@' -not- `operator @'
whenever @ is a symbolic name.
2000-06-08 Mark Mitchell <mark@codesourcery.com>
Remove old ABI mangling code.

View File

@ -468,9 +468,9 @@ init_operators ()
#define DEF_OPERATOR(NAME, CODE, MANGLING, ARITY, ASSN_P) \
my_friendly_assert ((strlen ("operator ") + strlen (NAME) + 1 \
<= 256), \
+ ISALPHA (NAME[0]) <= 256), \
20000526); \
sprintf (buffer, "operator %s", NAME); \
sprintf (buffer, ISALPHA (NAME[0]) ? "operator %s" : "operator%s", NAME); \
identifier = get_identifier (buffer); \
IDENTIFIER_OPNAME_P (identifier) = 1; \
\