[Python-Dev] New Unicode warnings

Fredrik Lundh fredrik@pythonware.com
Wed, 27 Jun 2001 16:48:02 +0200


tim peters wrote:


> There are 3 functions now where the prototypes in unicodeobject.h don't
> match the definitions in unicodeobject.c.  Like, in .h,
> 
> extern DL_IMPORT(Py_UNICODE) _PyUnicode_ToTitlecase(
>     register const Py_UNICODE ch /* Unicode character */
>     );
>
> but in .c:
> 
> Py_UNICODE _PyUnicode_ToTitlecase(register Py_UNICODE ch)

what's that "register" doing in a prototype?

any reason we cannot just change the signature(s) to

    Py_UNICODE _PyUnicode_ToTitlecase(Py_UNICODE ch)

to make it look more like contemporary C code?

</F>