ObjFW  Check-in [af56e971bd]

Overview
Comment:Use uint{16,32}_t for of_char{16,32}_t

While C11 uses uint_least{16,32}_t for char{16,32}_t in case a system
does not support uint{16,32}_t, we require uint{16,32}_t anyway and want
to make sure that of_char{16,32}_t always have the expected size.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: af56e971bdc16da11e61d021cd6080193f54757e5cdbdaf8fb67273ad6c0e1a5
User & Date: js on 2017-04-09 12:12:41
Other Links: manifest | tags
Context
2017-04-09
12:26
ofzip: Optimize printing a file from a tar file check-in: 64c64c56c1 user: js tags: trunk
12:12
Use uint{16,32}_t for of_char{16,32}_t check-in: af56e971bd user: js tags: trunk
12:02
Add a missing const check-in: 8433da5605 user: js tags: trunk
Changes

Modified src/OFString.h from [c2a7cfd375] to [df25fe3eba].

35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

@class OFConstantString;

#if defined(__cplusplus) && __cplusplus >= 201103L
typedef char16_t of_char16_t;
typedef char32_t of_char32_t;
#else
typedef uint_least16_t of_char16_t;
typedef uint_least32_t of_char32_t;
#endif
typedef of_char32_t of_unichar_t;

/*!
 * @brief The encoding of a string.
 */
typedef enum of_string_encoding_t {







|
|







35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

@class OFConstantString;

#if defined(__cplusplus) && __cplusplus >= 201103L
typedef char16_t of_char16_t;
typedef char32_t of_char32_t;
#else
typedef uint16_t of_char16_t;
typedef uint32_t of_char32_t;
#endif
typedef of_char32_t of_unichar_t;

/*!
 * @brief The encoding of a string.
 */
typedef enum of_string_encoding_t {