Overview
Comment: | Add functions/variables for tests to Amiga library |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | amiga-library |
Files: | files | file ages | folders |
SHA3-256: |
9937a79627ff2ed201fa85653518b666 |
User & Date: | js on 2020-06-21 03:02:25 |
Other Links: | branch diff | manifest | tags |
Context
2020-06-21
| ||
11:27 | Fix missing -1 in function list of Amiga library check-in: ab7cb38e25 user: js tags: amiga-library | |
03:02 | Add functions/variables for tests to Amiga library check-in: 9937a79627 user: js tags: amiga-library | |
02:15 | Make of_std{in,out,err} available in Amiga library check-in: 9697334084 user: js tags: amiga-library | |
Changes
Modified src/OFObject.h from [0775955f65] to [b43176a606].
︙ | ︙ | |||
1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 | #ifdef OF_APPLE_RUNTIME extern void *_Null_unspecified objc_autoreleasePoolPush(void); extern void objc_autoreleasePoolPop(void *_Null_unspecified pool); #endif extern id of_alloc_object(Class class_, size_t extraSize, size_t extraAlignment, void *_Nullable *_Nullable extra); extern void OF_NO_RETURN_FUNC of_method_not_found(id self, SEL _cmd); extern uint32_t of_hash_seed; #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END #ifdef __OBJC__ # import "OFObject+KeyValueCoding.h" # import "OFObject+Serialization.h" #endif #endif | > > > > > | 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 | #ifdef OF_APPLE_RUNTIME extern void *_Null_unspecified objc_autoreleasePoolPush(void); extern void objc_autoreleasePoolPop(void *_Null_unspecified pool); #endif extern id of_alloc_object(Class class_, size_t extraSize, size_t extraAlignment, void *_Nullable *_Nullable extra); extern void OF_NO_RETURN_FUNC of_method_not_found(id self, SEL _cmd); #ifndef OF_AMIGAOS extern uint32_t of_hash_seed; #else extern uint32_t *_Nonnull of_hash_seed_ref(void); # define of_hash_seed (*of_hash_seed_ref()) #endif #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END #ifdef __OBJC__ # import "OFObject+KeyValueCoding.h" # import "OFObject+Serialization.h" #endif #endif |
Modified src/OFObject.m from [d6b3535b02] to [99d327411f].
︙ | ︙ | |||
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | #define PRE_MEM_ALIGN ((sizeof(struct pre_mem) + \ (OF_BIGGEST_ALIGNMENT - 1)) & ~(OF_BIGGEST_ALIGNMENT - 1)) #define PRE_MEM(mem) ((struct pre_mem *)(void *)((char *)mem - PRE_MEM_ALIGN)) static struct { Class isa; } allocFailedException; uint32_t of_hash_seed; static const char * typeEncodingForSelector(Class class, SEL selector) { Method method; if ((method = class_getInstanceMethod(class, selector)) == NULL) | > > > > > > > > > > > > | 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | #define PRE_MEM_ALIGN ((sizeof(struct pre_mem) + \ (OF_BIGGEST_ALIGNMENT - 1)) & ~(OF_BIGGEST_ALIGNMENT - 1)) #define PRE_MEM(mem) ((struct pre_mem *)(void *)((char *)mem - PRE_MEM_ALIGN)) static struct { Class isa; } allocFailedException; #ifdef OF_AMIGAOS # undef of_hash_seed #endif uint32_t of_hash_seed; #ifdef OF_AMIGAOS uint32_t * of_hash_seed_ref(void) { return &of_hash_seed; } #endif static const char * typeEncodingForSelector(Class class, SEL selector) { Method method; if ((method = class_getInstanceMethod(class, selector)) == NULL) |
︙ | ︙ |
Modified src/amiga-glue.m from [0f4f4302e3] to [93e24e60c7].
︙ | ︙ | |||
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #include "config.h" #import "OFApplication.h" #import "OFHTTPRequest.h" #import "OFHTTPResponse.h" #import "OFMethodSignature.h" #import "OFStdIOStream.h" #import "OFZIPArchiveEntry.h" #import "amiga-library.h" #import "pbkdf2.h" #import "platform.h" #import "scrypt.h" #import "socket.h" #ifdef OF_AMIGAOS_M68K # define PPC_PARAMS(...) (void) | > > > | 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | #include "config.h" #import "OFApplication.h" #import "OFHTTPRequest.h" #import "OFHTTPResponse.h" #import "OFMethodSignature.h" #import "OFObject.h" #import "OFStdIOStream.h" #import "OFString.h" #import "OFZIPArchiveEntry.h" #import "amiga-library.h" #import "of_strptime.h" #import "pbkdf2.h" #import "platform.h" #import "scrypt.h" #import "socket.h" #ifdef OF_AMIGAOS_M68K # define PPC_PARAMS(...) (void) |
︙ | ︙ | |||
106 107 108 109 110 111 112 113 114 115 116 117 118 119 | size_t __saveds glue_of_alignof_type_encoding PPC_PARAMS(const char *type) { M68K_ARG(const char *, type, a0) return of_alignof_type_encoding(type); } OFStdIOStream **__saveds glue_of_stdin_ref(void) { return of_stdin_ref(); } | > > > > > > | 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | size_t __saveds glue_of_alignof_type_encoding PPC_PARAMS(const char *type) { M68K_ARG(const char *, type, a0) return of_alignof_type_encoding(type); } uint32_t *__saveds glue_of_hash_seed_ref(void) { return of_hash_seed_ref(); } OFStdIOStream **__saveds glue_of_stdin_ref(void) { return of_stdin_ref(); } |
︙ | ︙ | |||
133 134 135 136 137 138 139 140 141 142 143 144 145 146 | glue_of_logv PPC_PARAMS(OFConstantString *format, va_list arguments) { M68K_ARG(OFConstantString *, format, a0) M68K_ARG(va_list, arguments, a1) of_logv(format, arguments); } OFString *__saveds glue_of_zip_archive_entry_version_to_string PPC_PARAMS(uint16_t version) { M68K_ARG(uint16_t, version, d0) return of_zip_archive_entry_version_to_string(version); | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 | glue_of_logv PPC_PARAMS(OFConstantString *format, va_list arguments) { M68K_ARG(OFConstantString *, format, a0) M68K_ARG(va_list, arguments, a1) of_logv(format, arguments); } of_string_encoding_t __saveds glue_of_string_parse_encoding PPC_PARAMS(OFString *string) { M68K_ARG(OFString *, string, a0) return of_string_parse_encoding(string); } OFString *__saveds glue_of_string_name_of_encoding PPC_PARAMS(of_string_encoding_t encoding) { M68K_ARG(of_string_encoding_t, encoding, d0) return of_string_name_of_encoding(encoding); } size_t __saveds glue_of_string_utf8_encode PPC_PARAMS(of_unichar_t c, char *UTF8) { M68K_ARG(of_unichar_t, c, d0) M68K_ARG(char *, UTF8, a0) return of_string_utf8_encode(c, UTF8); } ssize_t __saveds glue_of_string_utf8_decode PPC_PARAMS(const char *UTF8, size_t len, of_unichar_t *c) { M68K_ARG(const char *, UTF8, a0) M68K_ARG(size_t, len, d0) M68K_ARG(of_unichar_t *, c, a1) return of_string_utf8_decode(UTF8, len, c); } size_t __saveds glue_of_string_utf16_length PPC_PARAMS(const of_char16_t *string) { M68K_ARG(const of_char16_t *, string, a0) return of_string_utf16_length(string); } size_t __saveds glue_of_string_utf32_length PPC_PARAMS(const of_char32_t *string) { M68K_ARG(const of_char32_t *, string, a0) return of_string_utf32_length(string); } OFString *__saveds glue_of_zip_archive_entry_version_to_string PPC_PARAMS(uint16_t version) { M68K_ARG(uint16_t, version, d0) return of_zip_archive_entry_version_to_string(version); |
︙ | ︙ | |||
182 183 184 185 186 187 188 189 190 191 192 193 194 195 | M68K_ARG(unsigned char *, key, a3) M68K_ARG(size_t, keyLength, d3) M68K_ARG(bool, allowsSwappableMemory, d4) of_pbkdf2(HMAC, iterations, salt, saltLength, password, passwordLength, key, keyLength, allowsSwappableMemory); } void __saveds glue_of_scrypt PPC_PARAMS(size_t blockSize, size_t costFactor, size_t parallelization, const unsigned char *salt, size_t saltLength, const char *password, size_t passwordLength, unsigned char *key, size_t keyLength, bool allowsSwappableMemory) { | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 | M68K_ARG(unsigned char *, key, a3) M68K_ARG(size_t, keyLength, d3) M68K_ARG(bool, allowsSwappableMemory, d4) of_pbkdf2(HMAC, iterations, salt, saltLength, password, passwordLength, key, keyLength, allowsSwappableMemory); } void __saveds glue_of_salsa20_8_core PPC_PARAMS(uint32_t *buffer) { M68K_ARG(uint32_t *, buffer, a0) of_salsa20_8_core(buffer); } void __saveds glue_of_scrypt_block_mix PPC_PARAMS(uint32_t *output, const uint32_t *input, size_t blockSize) { M68K_ARG(uint32_t *, output, a0) M68K_ARG(const uint32_t *, input, a1) M68K_ARG(size_t, blockSize, d0) of_scrypt_block_mix(output, input, blockSize); } void __saveds glue_of_scrypt_romix PPC_PARAMS(uint32_t *buffer, size_t blockSize, size_t costFactor, uint32_t *tmp) { M68K_ARG(uint32_t *, buffer, a0) M68K_ARG(size_t, blockSize, d0) M68K_ARG(size_t, costFactor, d1) M68K_ARG(uint32_t *, tmp, a1) of_scrypt_romix(buffer, blockSize, costFactor, tmp); } void __saveds glue_of_scrypt PPC_PARAMS(size_t blockSize, size_t costFactor, size_t parallelization, const unsigned char *salt, size_t saltLength, const char *password, size_t passwordLength, unsigned char *key, size_t keyLength, bool allowsSwappableMemory) { |
︙ | ︙ | |||
203 204 205 206 207 208 209 210 211 212 213 214 215 216 | M68K_ARG(unsigned char *, key, a2) M68K_ARG(size_t, keyLength, d5) M68K_ARG(bool, allowsSwappableMemory, d6) of_scrypt(blockSize, costFactor, parallelization, salt, saltLength, password, passwordLength, key, keyLength, allowsSwappableMemory); } void __saveds glue_of_socket_address_parse_ip PPC_PARAMS(of_socket_address_t *address, OFString *IP, uint16_t port) { M68K_ARG(of_socket_address_t *, address, a0) M68K_ARG(OFString *, IP, a1) | > > > > > > > > > > > > | 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 | M68K_ARG(unsigned char *, key, a2) M68K_ARG(size_t, keyLength, d5) M68K_ARG(bool, allowsSwappableMemory, d6) of_scrypt(blockSize, costFactor, parallelization, salt, saltLength, password, passwordLength, key, keyLength, allowsSwappableMemory); } const char *__saveds glue_of_strptime PPC_PARAMS(const char *buf, const char *fmt, struct tm *tm, int16_t *tz) { M68K_ARG(const char *, buf, a0) M68K_ARG(const char *, fmt, a1) M68K_ARG(struct tm *, tm, a2) M68K_ARG(int16_t *, tz, a3) return of_strptime(buf, fmt, tm, tz); } void __saveds glue_of_socket_address_parse_ip PPC_PARAMS(of_socket_address_t *address, OFString *IP, uint16_t port) { M68K_ARG(of_socket_address_t *, address, a0) M68K_ARG(OFString *, IP, a1) |
︙ | ︙ |
Modified src/amiga-library.m from [00ace7a578] to [d5cd39b196].
︙ | ︙ | |||
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | extern bool glue_of_init(void); extern int glue_of_application_main(void); extern const char *glue_of_http_request_method_to_string(void); extern of_http_request_method_t glue_of_http_request_method_from_string(void); extern OFString *glue_of_http_status_code_to_string(void); extern size_t glue_of_sizeof_type_encoding(void); extern size_t glue_of_alignof_type_encoding(void); extern OFStdIOStream **glue_of_stdin_ref(void); extern OFStdIOStream **glue_of_stdout_ref(void); extern OFStdIOStream **glue_of_stderr_ref(void); extern void glue_of_logv(void); extern OFString *glue_of_zip_archive_entry_version_to_string(void); extern OFString *glue_of_zip_archive_entry_compression_method_to_string(void); extern size_t glue_of_zip_archive_entry_extra_field_find(void); extern void glue_of_pbkdf2(void); extern void glue_of_scrypt(void); extern of_socket_address_t glue_of_socket_address_parse_ip(void); extern of_socket_address_t glue_of_socket_address_parse_ipv4(void); extern of_socket_address_t glue_of_socket_address_parse_ipv6(void); extern of_socket_address_t glue_of_socket_address_ipx(void); extern bool glue_of_socket_address_equal(void); extern uint32_t glue_of_socket_address_hash(void); extern OFString *glue_of_socket_address_ip_string(void); | > > > > > > > > > > > | 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 | extern bool glue_of_init(void); extern int glue_of_application_main(void); extern const char *glue_of_http_request_method_to_string(void); extern of_http_request_method_t glue_of_http_request_method_from_string(void); extern OFString *glue_of_http_status_code_to_string(void); extern size_t glue_of_sizeof_type_encoding(void); extern size_t glue_of_alignof_type_encoding(void); extern uint32_t *glue_of_hash_seed_ref(void); extern OFStdIOStream **glue_of_stdin_ref(void); extern OFStdIOStream **glue_of_stdout_ref(void); extern OFStdIOStream **glue_of_stderr_ref(void); extern void glue_of_logv(void); extern of_string_encoding_t glue_of_string_parse_encoding(void); extern OFString *glue_of_string_name_of_encoding(void); extern size_t glue_of_string_utf8_encode(void); extern ssize_t glue_of_string_utf8_decode(void); extern size_t glue_of_string_utf16_length(void); extern size_t glue_of_string_utf32_length(void); extern OFString *glue_of_zip_archive_entry_version_to_string(void); extern OFString *glue_of_zip_archive_entry_compression_method_to_string(void); extern size_t glue_of_zip_archive_entry_extra_field_find(void); extern void glue_of_pbkdf2(void); extern void glue_of_salsa20_8_core(void); extern void glue_of_scrypt_block_mix(void); extern void glue_of_scrypt_romix(void); extern void glue_of_scrypt(void); extern const char *glue_of_strptime(void); extern of_socket_address_t glue_of_socket_address_parse_ip(void); extern of_socket_address_t glue_of_socket_address_parse_ipv4(void); extern of_socket_address_t glue_of_socket_address_parse_ipv6(void); extern of_socket_address_t glue_of_socket_address_ipx(void); extern bool glue_of_socket_address_equal(void); extern uint32_t glue_of_socket_address_hash(void); extern OFString *glue_of_socket_address_ip_string(void); |
︙ | ︙ | |||
618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 | (CONST_APTR)glue_of_init, (CONST_APTR)glue_of_application_main, (CONST_APTR)glue_of_http_request_method_to_string, (CONST_APTR)glue_of_http_request_method_from_string, (CONST_APTR)glue_of_http_status_code_to_string, (CONST_APTR)glue_of_sizeof_type_encoding, (CONST_APTR)glue_of_alignof_type_encoding, (CONST_APTR)glue_of_stdin_ref, (CONST_APTR)glue_of_stdout_ref, (CONST_APTR)glue_of_stderr_ref, (CONST_APTR)glue_of_logv, (CONST_APTR)glue_of_zip_archive_entry_version_to_string, (CONST_APTR)glue_of_zip_archive_entry_compression_method_to_string, (CONST_APTR)glue_of_zip_archive_entry_extra_field_find, (CONST_APTR)glue_of_pbkdf2, (CONST_APTR)glue_of_scrypt, (CONST_APTR)glue_of_socket_address_parse_ip, (CONST_APTR)glue_of_socket_address_parse_ipv4, (CONST_APTR)glue_of_socket_address_parse_ipv6, (CONST_APTR)glue_of_socket_address_ipx, (CONST_APTR)glue_of_socket_address_equal, (CONST_APTR)glue_of_socket_address_hash, (CONST_APTR)glue_of_socket_address_ip_string, | > > > > > > > > > > > | 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 | (CONST_APTR)glue_of_init, (CONST_APTR)glue_of_application_main, (CONST_APTR)glue_of_http_request_method_to_string, (CONST_APTR)glue_of_http_request_method_from_string, (CONST_APTR)glue_of_http_status_code_to_string, (CONST_APTR)glue_of_sizeof_type_encoding, (CONST_APTR)glue_of_alignof_type_encoding, (CONST_APTR)of_hash_seed_ref, (CONST_APTR)glue_of_stdin_ref, (CONST_APTR)glue_of_stdout_ref, (CONST_APTR)glue_of_stderr_ref, (CONST_APTR)glue_of_logv, (CONST_APTR)glue_of_string_parse_encoding, (CONST_APTR)glue_of_string_name_of_encoding, (CONST_APTR)glue_of_string_utf8_encode, (CONST_APTR)glue_of_string_utf8_decode, (CONST_APTR)glue_of_string_utf16_length, (CONST_APTR)glue_of_string_utf32_length, (CONST_APTR)glue_of_zip_archive_entry_version_to_string, (CONST_APTR)glue_of_zip_archive_entry_compression_method_to_string, (CONST_APTR)glue_of_zip_archive_entry_extra_field_find, (CONST_APTR)glue_of_pbkdf2, (CONST_APTR)glue_of_salsa20_8_core, (CONST_APTR)glue_of_scrypt_block_mix, (CONST_APTR)glue_of_scrypt_romix, (CONST_APTR)glue_of_scrypt, (CONST_APTR)glue_of_strptime, (CONST_APTR)glue_of_socket_address_parse_ip, (CONST_APTR)glue_of_socket_address_parse_ipv4, (CONST_APTR)glue_of_socket_address_parse_ipv6, (CONST_APTR)glue_of_socket_address_ipx, (CONST_APTR)glue_of_socket_address_equal, (CONST_APTR)glue_of_socket_address_hash, (CONST_APTR)glue_of_socket_address_ip_string, |
︙ | ︙ |
Modified src/amigaos3.sfd from [3ca3f88236] to [f505beb2f6].
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 | ==base _ObjFWBase ==basetype struct Library * ==libname objfw68k.library ==bias 30 ==public * The following function is only for the linklib. bool glue_of_init(unsigned int version, struct of_libc *_Nonnull libc, FILE *_Nonnull *_Nonnull sF)(d0,a0,a1) int glue_of_application_main(int *_Nonnull argc, char *_Nullable *_Nonnull *_Nonnull argv, id <OFApplicationDelegate> delegate)(a0,a1,a2) const char *_Nullable glue_of_http_request_method_to_string(of_http_request_method_t method)(d0) of_http_request_method_t glue_of_http_request_method_from_string(OFString *string)(a0) OFString *_Nonnull glue_of_http_status_code_to_string(short code)(d0) size_t glue_of_sizeof_type_encoding(const char *type)(a0) size_t glue_of_alignof_type_encoding(const char *type)(a0) OFStdIOStream *_Nonnull *_Nullable glue_of_stdin_ref(void)() OFStdIOStream *_Nonnull *_Nullable glue_of_stdout_ref(void)() OFStdIOStream *_Nonnull *_Nullable glue_of_stderr_ref(void)() void glue_of_logv(OFConstantString *format, va_list arguments)(a0,a1) OFString *_Nonnull glue_of_zip_archive_entry_version_to_string(uint16_t version)(d0) OFString *_Nonnull glue_of_zip_archive_entry_compression_method_to_string(uint16_t compressionMethod)(d0) size_t glue_of_zip_archive_entry_extra_field_find(OFData *extraField, uint16_t tag, uint16_t *size)(a0,d0,a1) void glue_of_pbkdf2(OFHMAC *HMAC, size_t iterations, const unsigned char *salt, size_t saltLength, const char *password, size_t passwordLength, unsigned char *key, size_t keyLength, bool allowsSwappableMemory)(a0,d0,a1,d1,a2,d2,a3,d3,d4) void glue_of_scrypt(size_t blockSize, size_t costFactor, size_t parallelization, const unsigned char *salt, size_t saltLength, const char *password, size_t passwordLength, unsigned char *key, size_t keyLength, bool allowsSwappableMemory)(d0,d1,d2,a0,d3,a1,d4,a2,d5,d6) void glue_of_socket_address_parse_ip(of_socket_address_t *_Nonnull address, OFString *IP, uint16_t port)(a0,a1,d0) void glue_of_socket_address_parse_ipv4(of_socket_address_t *_Nonnull address, OFString *IP, uint16_t port)(a0,a1,d0) void glue_of_socket_address_parse_ipv6(of_socket_address_t *_Nonnull address, OFString *IP, uint16_t port)(a0,a1,d0) void glue_of_socket_address_ipx(of_socket_address_t *_Nonnull address, const unsigned char *_Nonnull node, uint32_t network, uint16_t port)(a0,a1,d0,d1) bool glue_of_socket_address_equal(const of_socket_address_t *_Nonnull address1, const of_socket_address_t *_Nonnull address2)(a0,a1) uint32_t glue_of_socket_address_hash(const of_socket_address_t *_Nonnull address)(a0) OFString *_Nonnull glue_of_socket_address_ip_string(const of_socket_address_t *_Nonnull address, uint16_t *_Nullable port)(a0,a1) void glue_of_socket_address_set_port(of_socket_address_t *_Nonnull address, uint16_t port)(a0,d0) uint16_t glue_of_socket_address_get_port(const of_socket_address_t *_Nonnull address)(a0) void glue_of_socket_address_set_ipx_network(of_socket_address_t *_Nonnull address, uint32_t network)(a0,d0) uint32_t glue_of_socket_address_get_ipx_network(const of_socket_address_t *_Nonnull address)(a0) void glue_of_socket_address_set_ipx_node(of_socket_address_t *_Nonnull address, const unsigned char *_Nonnull node)(a0,a1) void glue_of_socket_address_get_ipx_node(const of_socket_address_t *_Nonnull address, unsigned char *_Nonnull node)(a0,a1) | > > > > > > > > > > > | 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 | ==base _ObjFWBase ==basetype struct Library * ==libname objfw68k.library ==bias 30 ==public * The following function is only for the linklib. bool glue_of_init(unsigned int version, struct of_libc *_Nonnull libc, FILE *_Nonnull *_Nonnull sF)(d0,a0,a1) int glue_of_application_main(int *_Nonnull argc, char *_Nullable *_Nonnull *_Nonnull argv, id <OFApplicationDelegate> delegate)(a0,a1,a2) const char *_Nullable glue_of_http_request_method_to_string(of_http_request_method_t method)(d0) of_http_request_method_t glue_of_http_request_method_from_string(OFString *string)(a0) OFString *_Nonnull glue_of_http_status_code_to_string(short code)(d0) size_t glue_of_sizeof_type_encoding(const char *type)(a0) size_t glue_of_alignof_type_encoding(const char *type)(a0) uint32_t *_Nonnull glue_of_hash_seed_ref(void)() OFStdIOStream *_Nonnull *_Nullable glue_of_stdin_ref(void)() OFStdIOStream *_Nonnull *_Nullable glue_of_stdout_ref(void)() OFStdIOStream *_Nonnull *_Nullable glue_of_stderr_ref(void)() void glue_of_logv(OFConstantString *format, va_list arguments)(a0,a1) of_string_encoding_t glue_of_string_parse_encoding(OFString *string)(a0) OFString *_Nullable glue_of_string_name_of_encoding(of_string_encoding_t encoding)(d0) size_t glue_of_string_utf8_encode(of_unichar_t c, char *UTF8)(d0,a0) ssize_t glue_of_string_utf8_decode(const char *UTF8, size_t len, of_unichar_t *c)(a0,d0,a1) size_t glue_of_string_utf16_length(const of_char16_t *string)(a0) size_t glue_of_string_utf32_length(const of_char32_t *string)(a0) OFString *_Nonnull glue_of_zip_archive_entry_version_to_string(uint16_t version)(d0) OFString *_Nonnull glue_of_zip_archive_entry_compression_method_to_string(uint16_t compressionMethod)(d0) size_t glue_of_zip_archive_entry_extra_field_find(OFData *extraField, uint16_t tag, uint16_t *size)(a0,d0,a1) void glue_of_pbkdf2(OFHMAC *HMAC, size_t iterations, const unsigned char *salt, size_t saltLength, const char *password, size_t passwordLength, unsigned char *key, size_t keyLength, bool allowsSwappableMemory)(a0,d0,a1,d1,a2,d2,a3,d3,d4) void glue_of_salsa20_8_core(uint32_t *_Nonnull buffer)(a0) void glue_of_scrypt_block_mix(uint32_t *_Nonnull output, const uint32_t *_Nonnull input, size_t blockSize)(a0,a1,d0) void glue_of_scrypt_romix(uint32_t *buffer, size_t blockSize, size_t costFactor, uint32_t *tmp)(a0,d0,d1,a1) void glue_of_scrypt(size_t blockSize, size_t costFactor, size_t parallelization, const unsigned char *salt, size_t saltLength, const char *password, size_t passwordLength, unsigned char *key, size_t keyLength, bool allowsSwappableMemory)(d0,d1,d2,a0,d3,a1,d4,a2,d5,d6) const char *_Nullable glue_of_strptime(const char *buf, const char *fmt, struct tm *tm, int16_t *_Nullable tz)(a0,a1,a2,a3) void glue_of_socket_address_parse_ip(of_socket_address_t *_Nonnull address, OFString *IP, uint16_t port)(a0,a1,d0) void glue_of_socket_address_parse_ipv4(of_socket_address_t *_Nonnull address, OFString *IP, uint16_t port)(a0,a1,d0) void glue_of_socket_address_parse_ipv6(of_socket_address_t *_Nonnull address, OFString *IP, uint16_t port)(a0,a1,d0) void glue_of_socket_address_ipx(of_socket_address_t *_Nonnull address, const unsigned char *_Nonnull node, uint32_t network, uint16_t port)(a0,a1,d0,d1) bool glue_of_socket_address_equal(const of_socket_address_t *_Nonnull address1, const of_socket_address_t *_Nonnull address2)(a0,a1) uint32_t glue_of_socket_address_hash(const of_socket_address_t *_Nonnull address)(a0) OFString *_Nonnull glue_of_socket_address_ip_string(const of_socket_address_t *_Nonnull address, uint16_t *_Nullable port)(a0,a1) void glue_of_socket_address_set_port(of_socket_address_t *_Nonnull address, uint16_t port)(a0,d0) uint16_t glue_of_socket_address_get_port(const of_socket_address_t *_Nonnull address)(a0) void glue_of_socket_address_set_ipx_network(of_socket_address_t *_Nonnull address, uint32_t network)(a0,d0) uint32_t glue_of_socket_address_get_ipx_network(const of_socket_address_t *_Nonnull address)(a0) void glue_of_socket_address_set_ipx_node(of_socket_address_t *_Nonnull address, const unsigned char *_Nonnull node)(a0,a1) void glue_of_socket_address_get_ipx_node(const of_socket_address_t *_Nonnull address, unsigned char *_Nonnull node)(a0,a1) |
Modified src/linklib/linklib.m from [e9e8c52c2c] to [3deba01f01].
︙ | ︙ | |||
260 261 262 263 264 265 266 267 268 269 270 271 272 273 | void *__objc_class_name_OFConditionWaitFailedException; void *__objc_class_name_OFThreadJoinFailedException; void *__objc_class_name_OFThreadStartFailedException; void *__objc_class_name_OFThreadStillRunningException; #endif #include "OFFileManager_constants.m" #include "OFRunLoop_constants.m" static void __attribute__((__used__)) ctor(void) { static bool initialized = false; struct of_libc libc = { .malloc = malloc, | > > > > > > > > | 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 | void *__objc_class_name_OFConditionWaitFailedException; void *__objc_class_name_OFThreadJoinFailedException; void *__objc_class_name_OFThreadStartFailedException; void *__objc_class_name_OFThreadStillRunningException; #endif #include "OFFileManager_constants.m" #include "OFRunLoop_constants.m" /* The following __objc_class_name_* are only required for the tests. */ void *__objc_class_name_OFBitSetCharacterSet; void *__objc_class_name_OFMapTableSet; void *__objc_class_name_OFMutableMapTableSet; void *__objc_class_name_OFMutableUTF8String; void *__objc_class_name_OFRangeCharacterSet; void *__objc_class_name_OFSelectKernelEventObserver; void *__objc_class_name_OFUTF8String; static void __attribute__((__used__)) ctor(void) { static bool initialized = false; struct of_libc libc = { .malloc = malloc, |
︙ | ︙ | |||
393 394 395 396 397 398 399 400 401 402 403 404 405 406 | } size_t of_alignof_type_encoding(const char *type) { return glue_of_alignof_type_encoding(type); } OFStdIOStream ** of_stdin_ref(void) { return glue_of_stdin_ref(); } | > > > > > > | 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 | } size_t of_alignof_type_encoding(const char *type) { return glue_of_alignof_type_encoding(type); } uint32_t * of_hash_seed_ref(void) { return glue_of_hash_seed_ref(); } OFStdIOStream ** of_stdin_ref(void) { return glue_of_stdin_ref(); } |
︙ | ︙ | |||
417 418 419 420 421 422 423 424 425 426 427 428 429 430 | } void of_logv(OFConstantString *format, va_list arguments) { glue_of_logv(format, arguments); } OFString * of_zip_archive_entry_version_to_string(uint16_t version) { return glue_of_zip_archive_entry_version_to_string(version); } | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 | } void of_logv(OFConstantString *format, va_list arguments) { glue_of_logv(format, arguments); } of_string_encoding_t of_string_parse_encoding(OFString *string) { return glue_of_string_parse_encoding(string); } OFString * of_string_name_of_encoding(of_string_encoding_t encoding) { return glue_of_string_name_of_encoding(encoding); } size_t of_string_utf8_encode(of_unichar_t c, char *UTF8) { return glue_of_string_utf8_encode(c, UTF8); } ssize_t of_string_utf8_decode(const char *UTF8, size_t len, of_unichar_t *c) { return glue_of_string_utf8_decode(UTF8, len, c); } size_t of_string_utf16_length(const of_char16_t *string) { return glue_of_string_utf16_length(string); } size_t of_string_utf32_length(const of_char32_t *string) { return glue_of_string_utf32_length(string); } OFString * of_zip_archive_entry_version_to_string(uint16_t version) { return glue_of_zip_archive_entry_version_to_string(version); } |
︙ | ︙ | |||
447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 | of_pbkdf2(OFHMAC *HMAC, size_t iterations, const unsigned char *salt, size_t saltLength, const char *password, size_t passwordLength, unsigned char *key, size_t keyLength, bool allowsSwappableMemory) { glue_of_pbkdf2(HMAC, iterations, salt, saltLength, password, passwordLength, key, keyLength, allowsSwappableMemory); } void of_scrypt(size_t blockSize, size_t costFactor, size_t parallelization, const unsigned char *salt, size_t saltLength, const char *password, size_t passwordLength, unsigned char *key, size_t keyLength, bool allowsSwappableMemory) { glue_of_scrypt(blockSize, costFactor, parallelization, salt, saltLength, password, passwordLength, key, keyLength, allowsSwappableMemory); } of_socket_address_t of_socket_address_parse_ip(OFString *IP, uint16_t port) { of_socket_address_t address; glue_of_socket_address_parse_ip(&address, IP, port); | > > > > > > > > > > > > > > > > > > > > > > > > > | 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 | of_pbkdf2(OFHMAC *HMAC, size_t iterations, const unsigned char *salt, size_t saltLength, const char *password, size_t passwordLength, unsigned char *key, size_t keyLength, bool allowsSwappableMemory) { glue_of_pbkdf2(HMAC, iterations, salt, saltLength, password, passwordLength, key, keyLength, allowsSwappableMemory); } void of_salsa20_8_core(uint32_t *buffer) { glue_of_salsa20_8_core(buffer); } void of_scrypt_block_mix(uint32_t *output, const uint32_t *input, size_t blockSize) { glue_of_scrypt_block_mix(output, input, blockSize); } void of_scrypt_romix(uint32_t *buffer, size_t blockSize, size_t costFactor, uint32_t *tmp) { glue_of_scrypt_romix(buffer, blockSize, costFactor, tmp); } void of_scrypt(size_t blockSize, size_t costFactor, size_t parallelization, const unsigned char *salt, size_t saltLength, const char *password, size_t passwordLength, unsigned char *key, size_t keyLength, bool allowsSwappableMemory) { glue_of_scrypt(blockSize, costFactor, parallelization, salt, saltLength, password, passwordLength, key, keyLength, allowsSwappableMemory); } const char * of_strptime(const char *buf, const char *fmt, struct tm *tm, int16_t *tz) { return glue_of_strptime(buf, fmt, tm, tz); } of_socket_address_t of_socket_address_parse_ip(OFString *IP, uint16_t port) { of_socket_address_t address; glue_of_socket_address_parse_ip(&address, IP, port); |
︙ | ︙ |
Modified src/of_strptime.h from [9a2eae4c29] to [be5859fecb].
︙ | ︙ | |||
27 28 29 30 31 32 33 | #import "macros.h" OF_ASSUME_NONNULL_BEGIN #ifdef __cplusplus extern "C" { #endif | | | | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | #import "macros.h" OF_ASSUME_NONNULL_BEGIN #ifdef __cplusplus extern "C" { #endif extern const char *_Nullable of_strptime(const char *buf, const char *fmt, struct tm *tm, int16_t *_Nullable tz); #ifdef __cplusplus } #endif OF_ASSUME_NONNULL_END |