Overview
Comment: | macros.h: Make sure static_assert is defined. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
71ebf4e8fefcc6dc2c4e50834efb7d1d |
User & Date: | js on 2013-12-07 16:56:10 |
Other Links: | manifest | tags |
Context
2013-12-07
| ||
17:30 | macros.h: Add OF_BIGGEST_ALIGNMENT. check-in: fdfb2be253 user: js tags: trunk | |
16:56 | macros.h: Make sure static_assert is defined. check-in: 71ebf4e8fe user: js tags: trunk | |
16:49 | configure.ac: Use C11 if available. check-in: a6f2b8570c user: js tags: trunk | |
Changes
Modified src/OFURL.m from [a580a39551] to [ccdd5ed7ab].
︙ | ︙ | |||
14 15 16 17 18 19 20 | * file. */ #include "config.h" #include <stdlib.h> #include <string.h> | < | 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | * file. */ #include "config.h" #include <stdlib.h> #include <string.h> #import "OFURL.h" #import "OFString.h" #import "OFArray.h" #import "OFXMLElement.h" #import "OFInvalidArgumentException.h" |
︙ | ︙ | |||
133 134 135 136 137 138 139 | initWithUTF8String: UTF8String]; if ([_scheme isEqual: @"http"]) _port = 80; else if ([_scheme isEqual: @"https"]) _port = 443; else | | | 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 | initWithUTF8String: UTF8String]; if ([_scheme isEqual: @"http"]) _port = 80; else if ([_scheme isEqual: @"https"]) _port = 443; else OF_ENSURE(0); } if ((UTF8String = tmp) != NULL) { if ((tmp = strchr(UTF8String, '#')) != NULL) { *tmp = '\0'; _fragment = [[OFString alloc] |
︙ | ︙ |
Modified src/macros.h from [abc861d5c4] to [4fb27cba60].
︙ | ︙ | |||
108 109 110 111 112 113 114 115 116 117 118 119 120 121 | #define OF_ENSURE(cond) \ if (!(cond)) { \ fprintf(stderr, "Failed to ensure condition in " \ __FILE__ ":%d:\n" #cond "\n", __LINE__); \ abort(); \ } #if !defined(_WIN32) && !defined(__DJGPP__) # define OF_PATH_DELIMITER '/' # define OF_PATH_DELIMITER_STRING @"/" # define OF_IS_PATH_DELIMITER(c) (c == '/') #else # define OF_PATH_DELIMITER '\\' | > > > > > > > > > | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 | #define OF_ENSURE(cond) \ if (!(cond)) { \ fprintf(stderr, "Failed to ensure condition in " \ __FILE__ ":%d:\n" #cond "\n", __LINE__); \ abort(); \ } #if __STDC_VERSION__ >= 201112L # /* C11 compiler, but old libc */ # ifndef static_assert # define static_assert _Static_assert # endif #else # define static_assert assert #endif #if !defined(_WIN32) && !defined(__DJGPP__) # define OF_PATH_DELIMITER '/' # define OF_PATH_DELIMITER_STRING @"/" # define OF_IS_PATH_DELIMITER(c) (c == '/') #else # define OF_PATH_DELIMITER '\\' |
︙ | ︙ |