CoreFW  Check-in [27a8cd7393]

Overview
Comment:cfw_string_len() -> cfw_string_length().
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 27a8cd73932a244f510fdec27736ec0b51780caa118b4975a1e867f2288dcc28
User & Date: js on 2012-04-25 09:30:26
Original User & Date: js on 2012-04-25 09:30:27
Other Links: manifest | tags
Context
2012-04-25
09:30
Add -std=c99 -pedantic when using GCC. check-in: 9d5eb55485 user: js tags: trunk
09:30
cfw_string_len() -> cfw_string_length(). check-in: 27a8cd7393 user: js tags: trunk
09:30
Add cfw_strdup(), as strdup() is not C99. check-in: 5c1d214724 user: js tags: trunk
Changes

Modified src/string.c from [14e8b0fd1e] to [cebb101511].

145
146
147
148
149
150
151
152

153
154
155
156
157
158
159
145
146
147
148
149
150
151

152
153
154
155
156
157
158
159







-
+







const char*
cfw_string_c(CFWString *str)
{
	return str->data;
}

size_t
cfw_string_len(CFWString *string)
cfw_string_length(CFWString *string)
{
	return string->len;
}

bool
cfw_string_set(CFWString *str, const char *cstr)
{

Modified src/string.h from [1e1600afb1] to [5343bc593c].

30
31
32
33
34
35
36
37

38
39
40
41
42
30
31
32
33
34
35
36

37
38
39
40
41
42







-
+





#include "class.h"
#include "range.h"

typedef struct CFWString CFWString;
extern CFWClass *cfw_string;
extern char* cfw_strdup(const char*);
extern const char* cfw_string_c(CFWString*);
extern size_t cfw_string_len(CFWString*);
extern size_t cfw_string_length(CFWString*);
extern bool cfw_string_set(CFWString*, const char*);
extern bool cfw_string_append(CFWString*, CFWString*);
extern size_t cfw_string_find(CFWString*, CFWString*, cfw_range_t);

#endif