Differences From Artifact [a8b4eb7167]:
- File src/OFString.m — part of check-in [74af3973f8] at 2008-12-21 20:17:47 on branch trunk — This looked nicer, but GCC couldn't optimize it. (user: js, size: 6072) [annotate] [blame] [check-ins using]
To Artifact [c064e2be95]:
- File src/OFString.m — part of check-in [ab9eb34112] at 2008-12-22 03:05:02 on branch trunk — Don't try to use madvise on win32. (user: js, size: 6135) [annotate] [blame] [check-ins using]
︙ | |||
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | + + + + | #import "config.h" #import <stdlib.h> #import <string.h> #import <ctype.h> #ifndef _WIN32 #import <sys/mman.h> #else #define madvise(addr, len, advise) #endif #import "OFString.h" #import "OFExceptions.h" #import "OFMacros.h" static OF_INLINE int check_utf8(const char *str, size_t len) |
︙ |