Don't use ANSI string literal concatenation (everything is K&R compatible).

This commit is contained in:
Guido van Rossum 1997-09-05 07:01:19 +00:00
parent 8102c005e0
commit bd4435abcc

View file

@ -608,8 +608,8 @@ reop_expand_escape(self, args)
/* 2-digit form, so it's a memory reference */ /* 2-digit form, so it's a memory reference */
if (context==CHARCLASS) if (context==CHARCLASS)
{ {
PyErr_SetString(ReopError, "cannot reference a register " PyErr_SetString(ReopError,
"from inside a character class"); "cannot reference a register from inside a character class");
return NULL; return NULL;
} }
value= 10*(pattern[index ]-'0') + value= 10*(pattern[index ]-'0') +
@ -628,8 +628,8 @@ reop_expand_escape(self, args)
/* Single-digit form, like \2, so it's a memory reference */ /* Single-digit form, like \2, so it's a memory reference */
if (context==CHARCLASS) if (context==CHARCLASS)
{ {
PyErr_SetString(ReopError, "cannot reference a register " PyErr_SetString(ReopError,
"from inside a character class"); "cannot reference a register from inside a character class");
return NULL; return NULL;
} }
return Py_BuildValue("iii", MEMORY_REFERENCE, return Py_BuildValue("iii", MEMORY_REFERENCE,