Overview
Comment: | Check for SIZE_T, fallback to SIZE_T_MAX or define as (size_t)-1. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
c180b765606a80539a5742a4d1e4c283 |
User & Date: | js on 2008-12-23 01:57:33 |
Other Links: | manifest | tags |
Context
2008-12-23
| ||
02:10 | Check for sys/mman.h before trying to use madvise. check-in: 14ebaa7ca1 user: js tags: trunk | |
01:57 | Check for SIZE_T, fallback to SIZE_T_MAX or define as (size_t)-1. check-in: c180b76560 user: js tags: trunk | |
2008-12-22
| ||
23:17 | Add missing va_end to asprintf.c. check-in: f9202dfdaf user: js tags: trunk | |
Changes
Modified configure.ac from [b80b9f26b1] to [5e9b3903b6].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | AC_INIT(objfw, 0.1, js-objfw@webkeks.org) AC_CONFIG_SRCDIR(src) AC_CANONICAL_HOST AC_CANONICAL_TARGET AC_PROG_CC AC_PROG_OBJC AC_PROG_CPP AC_PROG_LN_S AC_PATH_PROG(AR, ar) CFLAGS="$CFLAGS -Wall" OBJCFLAGS="$OBJCFLAGS -Wall -fobjc-exceptions" BUILDSYS_SHARED_LIB | > > > > > > > > | > > > > > > > > | > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | AC_INIT(objfw, 0.1, js-objfw@webkeks.org) AC_CONFIG_SRCDIR(src) AC_CANONICAL_HOST AC_CANONICAL_TARGET AC_PROG_CC AC_PROG_OBJC AC_PROG_CPP AC_PROG_LN_S AC_PATH_PROG(AR, ar) AC_PROG_EGREP CFLAGS="$CFLAGS -Wall" OBJCFLAGS="$OBJCFLAGS -Wall -fobjc-exceptions" AC_DEFINE(OF_CONFIG_H, 1, [Define so that we know we got our config.h]) BUILDSYS_SHARED_LIB AC_C_BIGENDIAN([AC_DEFINE(OF_BIG_ENDIAN, 1, [Whether we are big endian])]) AC_MSG_CHECKING(for SIZE_MAX) AC_EGREP_CPP(yes, [ #include <stdint.h> #include <limits.h> #ifdef SIZE_MAX yes #endif], AC_MSG_RESULT(yes), [ AC_MSG_RESULT(no) AC_MSG_CHECKING(for SIZE_T_MAX) AC_EGREP_CPP(yes, [ #include <stdint.h> #include <limits.h> #ifdef SIZE_T_MAX yes #endif], [ AC_MSG_RESULT(yes) size_max="SIZE_T_MAX"], [ AC_MSG_RESULT(no) size_max="((size_t)-1)"]) AC_DEFINE_UNQUOTED(SIZE_MAX, $size_max, [Maximum value for size_t])]) AC_CHECK_FUNC(asprintf, [ have_asprintf="yes" AC_DEFINE(HAVE_ASPRINTF, 1, "Whether we have asprintf")], [ have_asprintf="no" AC_SUBST(ASPRINTF, "asprintf.c")]) AC_MSG_CHECKING(whether snprintf returns something useful) |
︙ | ︙ |
Modified src/OFArray.m from [9150d2b2a3] to [c7e408a064].
︙ | ︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | */ #import "config.h" #import <stdio.h> #import <string.h> #import <unistd.h> #import "OFArray.h" #import "OFExceptions.h" #import "OFMacros.h" static size_t lastpagebyte = 0; extern int getpagesize(void); | > | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | */ #import "config.h" #import <stdio.h> #import <string.h> #import <unistd.h> #import <limits.h> #import "OFArray.h" #import "OFExceptions.h" #import "OFMacros.h" static size_t lastpagebyte = 0; extern int getpagesize(void); |
︙ | ︙ |
Modified src/OFObject.m from [a8fcc0b239] to [6f88f8ea70].
︙ | ︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 | * the packaging of this file. */ #import "config.h" #import <stdlib.h> #import <string.h> #import "OFObject.h" #import "OFExceptions.h" #import "OFMacros.h" @implementation OFObject - init | > | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | * the packaging of this file. */ #import "config.h" #import <stdlib.h> #import <string.h> #import <limits.h> #import "OFObject.h" #import "OFExceptions.h" #import "OFMacros.h" @implementation OFObject - init |
︙ | ︙ |
Modified src/OFXMLFactory.m from [6c7f478ccb] to [c933d562df].
︙ | ︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | */ #import "config.h" #import <stdarg.h> #import <stdlib.h> #import <string.h> #import "OFXMLFactory.h" #import "OFExceptions.h" #import "OFMacros.h" /* * We don't use OFString in this file for performance reasons! | > | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | */ #import "config.h" #import <stdarg.h> #import <stdlib.h> #import <string.h> #import <limits.h> #import "OFXMLFactory.h" #import "OFExceptions.h" #import "OFMacros.h" /* * We don't use OFString in this file for performance reasons! |
︙ | ︙ |
Modified tests/OFArray/OFArray.m from [05d8ab25d4] to [0534139d02].
︙ | ︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | */ #import "config.h" #import <stdio.h> #import <stdlib.h> #import <string.h> #import "OFArray.h" #import "OFExceptions.h" #define CATCH_EXCEPTION(code, exception) \ @try { \ code; \ | > | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | */ #import "config.h" #import <stdio.h> #import <stdlib.h> #import <string.h> #import <limits.h> #import "OFArray.h" #import "OFExceptions.h" #define CATCH_EXCEPTION(code, exception) \ @try { \ code; \ |
︙ | ︙ |
Modified tests/OFObject/OFObject.m from [28e0db1e33] to [63219e8b9b].
︙ | ︙ | |||
9 10 11 12 13 14 15 16 17 18 19 20 21 22 | * the packaging of this file. */ #import "config.h" #import <stdio.h> #import <stdlib.h> #import "OFObject.h" #import "OFExceptions.h" #define CATCH_EXCEPTION(code, exception) \ @try { \ code; \ | > | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | * the packaging of this file. */ #import "config.h" #import <stdio.h> #import <stdlib.h> #import <limits.h> #import "OFObject.h" #import "OFExceptions.h" #define CATCH_EXCEPTION(code, exception) \ @try { \ code; \ |
︙ | ︙ |