ObjFW  Check-in [35fb680226]

Overview
Comment:Make use of isalnum() safe in case isalnum() is a lookup table.
Fixes build with Clang on NetBSD.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 35fb680226cfa7b801292df0924da092be95010a78366b1bce0d353ef80f7d94
User & Date: js on 2011-05-21 18:05:51
Other Links: manifest | tags
Context
2011-05-21
18:10
Better way to define OF_ENDIANESS_NATIVE. check-in: e52a53d668 user: js tags: trunk
18:05
Make use of isalnum() safe in case isalnum() is a lookup table.
Fixes build with Clang on NetBSD.
check-in: 35fb680226 user: js tags: trunk
18:04
Make sure OF_ENDIANESS_NATIVE is always defined. check-in: 0158f764e3 user: js tags: trunk
Changes

Modified src/OFHTTPRequest.m from [1fb93fc8c1] to [bfdcb9668e].

38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#import "macros.h"

Class of_http_request_tls_socket_class = Nil;

static OF_INLINE void
normalize_key(OFString *key)
{
	char *str = (char*)[key cString];
	BOOL firstLetter = YES;

	while (*str != '\0') {
		if (!isalnum(*str)) {
			firstLetter = YES;
			str++;
			continue;







|







38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#import "macros.h"

Class of_http_request_tls_socket_class = Nil;

static OF_INLINE void
normalize_key(OFString *key)
{
	uint8_t *str = (uint8_t*)[key cString];
	BOOL firstLetter = YES;

	while (*str != '\0') {
		if (!isalnum(*str)) {
			firstLetter = YES;
			str++;
			continue;