comparison Modules/socketmodule.c @ 53824:b666e72f602f

turn this into a macro
author Benjamin Peterson <benjamin@python.org>
date Wed, 06 May 2009 02:43:58 +0000
parents 911df82bc25d
children c9bd62efe6ce debb245ebb40
comparison
equal deleted inserted replaced
53823:a2303a74a761 53824:b666e72f602f
4144 { 4144 {
4145 &sock_type, 4145 &sock_type,
4146 NULL 4146 NULL
4147 }; 4147 };
4148 4148
4149 PySocketModule_APIObject *
4150 PySocketModule_ImportModuleAndAPI(void)
4151 {
4152 void *api;
4153 api = PyCapsule_Import(PySocket_CAPSULE_NAME, 1);;
4154 return (PySocketModule_APIObject *)api;
4155 }
4156
4157 4149
4158 /* Initialize the _socket module. 4150 /* Initialize the _socket module.
4159 4151
4160 This module is actually called "_socket", and there's a wrapper 4152 This module is actually called "_socket", and there's a wrapper
4161 "socket.py" which implements some additional functionality. 4153 "socket.py" which implements some additional functionality.