ObjFW  Check-in [bfc99fa4ac]

Overview
Comment:ofzip: Only print OS identifier if it exists
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: bfc99fa4aced77fb8e1c7bb5258c4a733e20721a5839ebbff3c6c26343e1ae8d
User & Date: js on 2018-05-27 11:14:18
Other Links: manifest | tags
Context
2018-05-27
12:34
OFLHAArchiveEntry: Add support for LHA level 1 check-in: f0edbd81c3 user: js tags: trunk
11:14
ofzip: Only print OS identifier if it exists check-in: bfc99fa4ac user: js tags: trunk
11:07
OFLHAArchiveEntry: Add support for LHA level 0 check-in: 57f9bc6ace user: js tags: trunk
Changes

Modified utils/ofzip/LHAArchive.m from [50bf2d19a1] to [760ffd8cfa].

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
				    @"Group: %[group]",
				    @"group", [entry group])];
			}

			if (app->_outputLevel >= 2) {
				OFString *level = [OFString stringWithFormat:
				    @"%" PRIu8, [entry level]];
				OFString *OSID = [OFString stringWithFormat:
				    @"%c", [entry operatingSystemIdentifier]];

				[of_stdout writeString: @"\t"];
				[of_stdout writeLine: OF_LOCALIZED(
				    @"list_level",
				    @"Level: %[level]",
				    @"level", level)];

				[of_stdout writeString: @"\t"];
				[of_stdout writeLine: OF_LOCALIZED(
				    @"list_method",
				    @"Method: %[method]",
				    @"method", [entry method])];






				[of_stdout writeString: @"\t"];
				[of_stdout writeLine: OF_LOCALIZED(
				    @"list_osid",
				    @"Operating system identifier: %[osid]",

				    @"osid", OSID)];

			}
		}

		objc_autoreleasePoolPop(pool);
	}
}








<
<













>
>
>
>
>
|
|
|
|
>
|
>







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
				    @"Group: %[group]",
				    @"group", [entry group])];
			}

			if (app->_outputLevel >= 2) {
				OFString *level = [OFString stringWithFormat:
				    @"%" PRIu8, [entry level]];



				[of_stdout writeString: @"\t"];
				[of_stdout writeLine: OF_LOCALIZED(
				    @"list_level",
				    @"Level: %[level]",
				    @"level", level)];

				[of_stdout writeString: @"\t"];
				[of_stdout writeLine: OF_LOCALIZED(
				    @"list_method",
				    @"Method: %[method]",
				    @"method", [entry method])];

				if ([entry operatingSystemIdentifier] != '\0') {
					OFString *OSID =
					    [OFString stringWithFormat: @"%c",
					    [entry operatingSystemIdentifier]];

					[of_stdout writeString: @"\t"];
					[of_stdout writeLine: OF_LOCALIZED(
					    @"list_osid",
					    @"Operating system identifier: "
					    "%[osid]",
					    @"osid", OSID)];
				}
			}
		}

		objc_autoreleasePoolPop(pool);
	}
}