CoreFW  Check-in [ceb7a22af1]

Overview
Comment:ISO C forbids empty initializer braces.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ceb7a22af1d847de5372d3297d80d0d350f3d692574b792241c6571699ef5489
User & Date: js on 2012-04-25 09:22:42
Other Links: manifest | tags
Context
2012-04-25
09:30
Add cfw_strdup(), as strdup() is not C99. check-in: 5c1d214724 user: js tags: trunk
09:22
ISO C forbids empty initializer braces. check-in: ceb7a22af1 user: js tags: trunk
09:17
Oops. check-in: 0adce25085 user: js tags: trunk
Changes

Modified src/map.c from [e562e52fa7] to [c5e3bf3b39].

29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "object.h"
#include "map.h"
#include "hash.h"

static struct bucket {
	CFWObject *key, *obj;
	uint32_t hash;
} deleted = {};

struct CFWMap {
	CFWObject obj;
	struct bucket **data;
	uint32_t size;
	size_t items;
};







|







29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "object.h"
#include "map.h"
#include "hash.h"

static struct bucket {
	CFWObject *key, *obj;
	uint32_t hash;
} deleted = { NULL, NULL, 0 };

struct CFWMap {
	CFWObject obj;
	struct bucket **data;
	uint32_t size;
	size_t items;
};