Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(90311)

Delta Between Two Patch Sets: Objects/abstract.c

Issue 11682: PEP 380 reference implementation for 3.3
Left Patch Set: Created 7 years, 7 months ago
Right Patch Set: Created 7 years, 7 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 /* Abstract Object Interface (many thanks to Jim Fulton) */ 1 /* Abstract Object Interface (many thanks to Jim Fulton) */
2 2
3 #include "Python.h" 3 #include "Python.h"
4 #include <ctype.h> 4 #include <ctype.h>
5 #include "structmember.h" /* we need the offsetof() macro from there */ 5 #include "structmember.h" /* we need the offsetof() macro from there */
6 #include "longintrepr.h" 6 #include "longintrepr.h"
7 7
8 8
9 9
10 /* Shorthands to return certain errors */ 10 /* Shorthands to return certain errors */
(...skipping 2787 matching lines...) Expand 10 before | Expand all | Expand 10 after
2798 /* Free's a NULL terminated char** array of C strings. */ 2798 /* Free's a NULL terminated char** array of C strings. */
2799 void 2799 void
2800 _Py_FreeCharPArray(char *const array[]) 2800 _Py_FreeCharPArray(char *const array[])
2801 { 2801 {
2802 Py_ssize_t i; 2802 Py_ssize_t i;
2803 for (i = 0; array[i] != NULL; ++i) { 2803 for (i = 0; array[i] != NULL; ++i) {
2804 free(array[i]); 2804 free(array[i]);
2805 } 2805 }
2806 free((void*)array); 2806 free((void*)array);
2807 } 2807 }
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+