mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Add const to error and newstring functions
This commit is contained in:
parent
36dd0d27c4
commit
067998f35e
4 changed files with 6 additions and 6 deletions
|
@ -69,7 +69,7 @@ static stringobject *nullstring;
|
|||
*/
|
||||
object *
|
||||
newsizedstringobject(str, size)
|
||||
char *str;
|
||||
const char *str;
|
||||
int size;
|
||||
{
|
||||
register stringobject *op;
|
||||
|
@ -116,7 +116,7 @@ newsizedstringobject(str, size)
|
|||
|
||||
object *
|
||||
newstringobject(str)
|
||||
char *str;
|
||||
const char *str;
|
||||
{
|
||||
register unsigned int size = strlen(str);
|
||||
register stringobject *op;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue