comparison Python/errors.c @ 4654:df81856db58c legacy-trunk

Add const to error and newstring functions
author Guido van Rossum <guido@python.org>
date Tue, 10 Dec 1996 15:33:34 +0000
parents 65d2d8e67da3
children 00fd6857f76b
comparison
equal deleted inserted replaced
4653:3b7cd83b602d 4654:df81856db58c
122 } 122 }
123 123
124 void 124 void
125 err_setstr(exception, string) 125 err_setstr(exception, string)
126 object *exception; 126 object *exception;
127 char *string; 127 const char *string;
128 { 128 {
129 object *value = newstringobject(string); 129 object *value = newstringobject(string);
130 err_setval(exception, value); 130 err_setval(exception, value);
131 XDECREF(value); 131 XDECREF(value);
132 } 132 }