comparison Python/codecs.c @ 13658:f79434ee41fa legacy-trunk

Mass ANSIfication of function definitions. Doesn't cover all 'extern' declarations yet, those come later.
author Thomas Wouters <thomas@python.org>
date Sat, 22 Jul 2000 18:47:25 +0000
parents 5b727ab37092
children 254f8b7c4a83
comparison
equal deleted inserted replaced
13657:6a5314a6c2c2 13658:f79434ee41fa
34 made. 34 made.
35 35
36 */ 36 */
37 37
38 static 38 static
39 int import_encodings() 39 int import_encodings(void)
40 { 40 {
41 PyObject *mod; 41 PyObject *mod;
42 42
43 import_encodings_called = 1; 43 import_encodings_called = 1;
44 mod = PyImport_ImportModule("encodings"); 44 mod = PyImport_ImportModule("encodings");
417 Py_XDECREF(decoder); 417 Py_XDECREF(decoder);
418 Py_XDECREF(result); 418 Py_XDECREF(result);
419 return NULL; 419 return NULL;
420 } 420 }
421 421
422 void _PyCodecRegistry_Init() 422 void _PyCodecRegistry_Init(void)
423 { 423 {
424 if (_PyCodec_SearchPath == NULL) 424 if (_PyCodec_SearchPath == NULL)
425 _PyCodec_SearchPath = PyList_New(0); 425 _PyCodec_SearchPath = PyList_New(0);
426 if (_PyCodec_SearchCache == NULL) 426 if (_PyCodec_SearchCache == NULL)
427 _PyCodec_SearchCache = PyDict_New(); 427 _PyCodec_SearchCache = PyDict_New();
428 if (_PyCodec_SearchPath == NULL || 428 if (_PyCodec_SearchPath == NULL ||
429 _PyCodec_SearchCache == NULL) 429 _PyCodec_SearchCache == NULL)
430 Py_FatalError("can't initialize codec registry"); 430 Py_FatalError("can't initialize codec registry");
431 } 431 }
432 432
433 void _PyCodecRegistry_Fini() 433 void _PyCodecRegistry_Fini(void)
434 { 434 {
435 Py_XDECREF(_PyCodec_SearchPath); 435 Py_XDECREF(_PyCodec_SearchPath);
436 _PyCodec_SearchPath = NULL; 436 _PyCodec_SearchPath = NULL;
437 Py_XDECREF(_PyCodec_SearchCache); 437 Py_XDECREF(_PyCodec_SearchCache);
438 _PyCodec_SearchCache = NULL; 438 _PyCodec_SearchCache = NULL;