Overview
Comment: | Remove wchar_t stuff, as that's not portable anyway. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
4360177618d7440bb53147dc2313840c |
User & Date: | js on 2008-12-20 14:19:36 |
Other Links: | manifest | tags |
Context
2008-12-20
| ||
14:26 | Fix printf in tests. check-in: b023058e08 user: js tags: trunk | |
14:19 | Remove wchar_t stuff, as that's not portable anyway. check-in: 4360177618 user: js tags: trunk | |
2008-12-19
| ||
23:15 | Add errno in exceptions where it's useful. check-in: e668c03098 user: js tags: trunk | |
Changes
Modified src/OFString.h from [d8d41ef5ac] to [80f285a39b].
1 2 3 4 5 6 7 8 9 10 11 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | - - - + - - - - - - - - - - - - - - - - - + - - - - - - | /* * Copyright (c) 2008 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ |
︙ | |||
117 118 119 120 121 122 123 | 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | - - - - - - - | /** * Append a C string to the OFString. * * \param str A C string to append */ - appendCString: (const char*)str; |
︙ |
Modified src/OFString.m from [9f7f197b86] to [737d54ed05].
︙ | |||
9 10 11 12 13 14 15 | 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | - + - - - - - - - - - - - - - + + - - - + - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + - - + | * the packaging of this file. */ #import "config.h" #import <stdlib.h> #import <string.h> |
︙ | |||
208 209 210 211 212 213 214 | 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | - + - + | } - upper { size_t i = length; while (i--) |
Modified src/OFXMLFactory.h from [74179aac78] to [3e158df444].
1 2 3 4 5 6 7 8 9 10 11 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | /* * Copyright (c) 2008 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ |
Modified src/OFXMLFactory.m from [cb13f5e9ce] to [6c7f478ccb].
︙ | |||
10 11 12 13 14 15 16 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | - | */ #import "config.h" #import <stdarg.h> #import <stdlib.h> #import <string.h> |
︙ | |||
47 48 49 50 51 52 53 | 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | *str = str2; *len = len2; return YES; } |
︙ | |||
155 156 157 158 159 160 161 | 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | case '&': if (OF_UNLIKELY(!xf_add2chars(&ret, &nlen, &j, "&"))) @throw [OFNoMemException newWithObject: nil andSize: nlen + 5]; break; |
︙ | |||
329 330 331 332 333 334 335 | 217 218 219 220 221 222 223 224 225 226 227 228 229 230 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | } else xml[i++] = '>'; xml[i] = 0; return xml; } |
︙ | |||
459 460 461 462 463 464 465 | 246 247 248 249 250 251 252 253 254 255 256 257 258 259 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | free(ret); @throw [OFNoMemException newWithObject: nil andSize: len + strlen(strs[i])]; } } |
Modified tests/OFList/OFList.m from [4f9ae6f06a] to [2042f99cd4].
1 2 3 4 5 6 7 8 9 10 11 12 13 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | - - - - + + - + - + - - - - + + + + - - - + + + - + - - + + - + | /* * Copyright (c) 2008 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import "config.h" |
Modified tests/OFString/OFString.m from [8dc320290e] to [acd4c64051].
︙ | |||
39 40 41 42 43 44 45 | 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | - + - + - + - + - + | if (![s2 compareTo: s4]) puts("s2 and s4 match! GOOD!"); else { puts("s2 and s4 don't match!"); return 1; } |
︙ |
Modified tests/OFXMLFactory/OFXMLFactory.m from [7fe10add51] to [38666c43a6].
1 2 3 4 5 6 7 8 9 10 11 12 13 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | - - - - - + - + - + - - - - - - - - - - - - - - - - - - - | /* * Copyright (c) 2008 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of libobjfw. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import "config.h" |
︙ | |||
83 84 85 86 87 88 89 | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | - - - - - - - - - - - - - - - - - - - - - - - - - | strs[2] = s3; strs[3] = NULL; check_result([OFXMLFactory concatAndFreeCStrings: strs], "<foo>bar<test/>"); } |
︙ | |||
163 164 165 166 167 168 169 170 | 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - | "bar", "b'az", "x", "y", "a", "b", NULL], "<foo bar='b'az' x='y' a='b'>bar</foo>"); } inline void |