comparison Python/getargs.c @ 75748:55564dea55e5

kill capsule names that we don't need anymore
author Benjamin Peterson <benjamin@python.org>
date Fri, 16 Mar 2012 12:24:01 -0500
parents 212f20284724
children d08f0f3ab23e
comparison
equal deleted inserted replaced
75747:212f20284724 75748:55564dea55e5
137 return vgetargs1(args, format, &lva, FLAG_SIZE_T); 137 return vgetargs1(args, format, &lva, FLAG_SIZE_T);
138 } 138 }
139 139
140 140
141 /* Handle cleanup of allocated memory in case of exception */ 141 /* Handle cleanup of allocated memory in case of exception */
142
143 #define GETARGS_CAPSULE_NAME_CLEANUP_PTR "getargs.cleanup_ptr"
144 #define GETARGS_CAPSULE_NAME_CLEANUP_BUFFER "getargs.cleanup_buffer"
145 #define GETARGS_CAPSULE_NAME_CLEANUP_CONVERT "getargs.cleanup_convert"
146 142
147 static int 143 static int
148 cleanup_ptr(PyObject *self, void *ptr) 144 cleanup_ptr(PyObject *self, void *ptr)
149 { 145 {
150 if (ptr) { 146 if (ptr) {