Overview
Comment: | Added OFFile. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
71119a787bfd1248e054badb193173c4 |
User & Date: | js on 2008-10-07 17:18:54 |
Other Links: | manifest | tags |
Context
2008-10-07
| ||
21:25 | OFFile improvements. check-in: 6072f61f83 user: js tags: trunk | |
17:18 | Added OFFile. check-in: 71119a787b user: js tags: trunk | |
2008-10-05
| ||
19:20 | Reworked String API. check-in: cf85bee74f user: js tags: trunk | |
Changes
Modified src/Makefile from [be14b6ad32] to [3ff534d15e].
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 | 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 | + + | LIB = ${LIB_PREFIX}objfw${LIB_SUFFIX} LIB_MAJOR = 1 LIB_MINOR = 0 SRCS = OFConstCString.m \ OFCString.m \ OFConstWideCString.m \ OFExceptions.m \ OFFile.m \ OFList.m \ OFListObject.m \ OFObject.m \ OFString.m \ OFWideCString.m INCLUDES = OFConstString.h \ OFCString.h \ OFConstWideString.h \ OFExceptions.h \ OFFile.h \ OFList.h \ OFListObject.h \ OFObject.h \ OFString.h \ OFWideString.h include ../buildsys.mk |
︙ |
Modified src/OFExceptions.h from [da96e169ec] to [fce9b442b5].
︙ | |||
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 | - - + + - - - - + + + + - - - - + + + + - - - - + + + + + + + + + + + + + + + + + + | * the packaging of this file. */ #import <stddef.h> #import "OFObject.h" @interface OFException: OFObject |
Modified src/OFExceptions.m from [864964c046] to [77c759a696].
︙ | |||
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 111 112 113 114 115 116 117 118 119 120 121 122 123 | - + - + - + + - - + + - - + + - - + + + + - - + + - - + + - - + + + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + | * the packaging of this file. */ #import <stdio.h> #import "OFExceptions.h" @implementation OFException |
Added src/OFFile.h version [3d1d09b7c8].
|
Added src/OFFile.m version [a6ec8db29d].
|
Modified src/OFObject.m from [0937ee4297] to [deca1fe096].
︙ | |||
23 24 25 26 27 28 29 | 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | - - - + + + - - + + | } - (void*)getMem: (size_t)size { struct __ofobject_allocated_mem *iter; if ((iter = malloc(sizeof(struct __ofobject_allocated_mem))) == NULL) { |
︙ | |||
55 56 57 58 59 60 61 | 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 | - - + + - - + + | toSize: (size_t)size { struct __ofobject_allocated_mem *iter; for (iter = __mem_pool; iter != NULL; iter = iter->prev) { if (iter->ptr == ptr) { if ((ptr = realloc(iter->ptr, size)) == NULL) { |
︙ | |||
90 91 92 93 94 95 96 | 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | - - + + | free(iter); free(ptr); return; } } |
︙ |
Modified src/OFString.m from [3e627dd8f1] to [7599c02c21].
︙ | |||
38 39 40 41 42 43 44 | 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 | - + + - + + - + + - + + - + + | + newWithWideCString: (wchar_t*)str { return [[OFWideCString alloc] initWithWideCString: str]; } - (char*)cString { |