ObjFW  Check-in [d871468a3a]

Overview
Comment:Some MinGW versions are missing alloca() in <stdlib.h>.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d871468a3a66cd91e1bc3fc6df3b125ded9ee436170247bf6a3f88db148e5a63
User & Date: js on 2012-01-01 19:41:44
Other Links: manifest | tags
Context
2012-01-01
19:54
Fix using select() on Win32, the check was at the wrong place. check-in: 3c65515ada user: js tags: trunk
19:41
Some MinGW versions are missing alloca() in <stdlib.h>. check-in: d871468a3a user: js tags: trunk
2011-12-31
18:15
Remove a cast not required anymore. check-in: 3eae98e873 user: js tags: trunk
Changes

Modified src/OFObject.m from [f8865835bf] to [066d7adb4c].

57
58
59
60
61
62
63

64
65
66
67
68
69
70
71
72
73
#if defined(OF_ATOMIC_OPS)
# import "atomic.h"
#elif defined(OF_THREADS)
# import "threading.h"
#endif

struct pre_ivar {

	void	      **memoryChunks;
	unsigned int  memoryChunksSize;
	int32_t	      retainCount;
#if !defined(OF_ATOMIC_OPS) && defined(OF_THREADS)
	of_spinlock_t retainCountSpinlock;
#endif
};

/* Hopefully no arch needs more than 16 bytes padding */
#ifndef __BIGGEST_ALIGNMENT__







>


<







57
58
59
60
61
62
63
64
65
66

67
68
69
70
71
72
73
#if defined(OF_ATOMIC_OPS)
# import "atomic.h"
#elif defined(OF_THREADS)
# import "threading.h"
#endif

struct pre_ivar {
	int32_t	      retainCount;
	void	      **memoryChunks;
	unsigned int  memoryChunksSize;

#if !defined(OF_ATOMIC_OPS) && defined(OF_THREADS)
	of_spinlock_t retainCountSpinlock;
#endif
};

/* Hopefully no arch needs more than 16 bytes padding */
#ifndef __BIGGEST_ALIGNMENT__

Modified src/OFString.m from [3c525cf553] to [293d78932d].

17
18
19
20
21
22
23




24
25
26
27
28
29
30
#include "config.h"

#include <stdarg.h>
#include <stdlib.h>
#include <string.h>

#include <sys/stat.h>





#import "OFString.h"
#import "OFString_UTF8.h"
#import "OFArray.h"
#import "OFDictionary.h"
#import "OFFile.h"
#import "OFURL.h"







>
>
>
>







17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include "config.h"

#include <stdarg.h>
#include <stdlib.h>
#include <string.h>

#include <sys/stat.h>

#ifdef _WIN32
# include <malloc.h>
#endif

#import "OFString.h"
#import "OFString_UTF8.h"
#import "OFArray.h"
#import "OFDictionary.h"
#import "OFFile.h"
#import "OFURL.h"