Overview
Comment: | OFFile: Remove the b modes from MorphOS
This was an oversight when the b modes were removed. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | 0.90 |
Files: | files | file ages | folders |
SHA3-256: |
37b6ed2a2a6e877a662619191d47457a |
User & Date: | js on 2017-08-02 20:24:25 |
Other Links: | branch diff | manifest | tags |
Context
2017-08-03
| ||
19:17 | OFFileManager: Set errno to 0 before readdir() check-in: e8005a3cc2 user: js tags: 0.90 | |
2017-08-02
| ||
20:24 | OFFile: Remove the b modes from MorphOS check-in: 37b6ed2a2a user: js tags: 0.90 | |
2017-08-01
| ||
13:56 | OFApplication: Don't use SA_RESTART check-in: 9048af968e user: js tags: 0.90-release, 0.90 | |
Changes
Modified src/OFFile.m from [afef5a8ffe] to [44dc0ec6b9].
︙ | |||
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 | 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - | static int parseMode(const char *mode, bool *append) { *append = false; if (strcmp(mode, "r") == 0) return MODE_OLDFILE; if (strcmp(mode, "r+") == 0) return MODE_OLDFILE; if (strcmp(mode, "w") == 0) return MODE_NEWFILE; if (strcmp(mode, "wx") == 0) return MODE_NEWFILE; if (strcmp(mode, "w+") == 0) return MODE_NEWFILE; if (strcmp(mode, "w+x") == 0) return MODE_NEWFILE; if (strcmp(mode, "a") == 0) { *append = true; return MODE_READWRITE; } |
︙ |