char *pp = p;
int match = 0;
int i;
+
+ if (p == NULL)
+ return;
for(i=0; i<MAXMAL; i++) if (malloc_pointers[i].ptr == p) {
mm_log((1,"myfree_file_line: pointer %i (%s) freed at %s (%i)\n", i, malloc_pointers[i].comm, file, line));
void
malloc_state() {
- printf("malloc_state: not in debug mode\n");
}
void*
This doesn't support the extended UTF8 encoding used by later versions
of Perl.
+This doesn't check that the UTF8 charecter is using the shortest
+possible representation.
+
=cut
*/
-unsigned long i_utf8_advance(char const **p, int *len) {
+unsigned long
+i_utf8_advance(char const **p, int *len) {
unsigned char c;
int i, ci, clen = 0;
unsigned char codes[3];
for (i = 0; i < sizeof(utf8_sizes)/sizeof(*utf8_sizes); ++i) {
if ((c & utf8_sizes[i].mask) == utf8_sizes[i].expect) {
clen = utf8_sizes[i].size;
+ break;
}
}
if (clen == 0 || *len < clen-1) {