ObjFW  Diff

Differences From Artifact [f4a7b8e070]:

To Artifact [faffa6159e]:


267
268
269
270
271
272
273
274

275
276
277
278
279
280


281
282
283
284


285
286
287
288
289
290
291
267
268
269
270
271
272
273

274
275
276
277



278
279
280



281
282
283
284
285
286
287
288
289







-
+



-
-
-
+
+

-
-
-
+
+







			}
		}
	} while (!done);
}

- (void)writeFiles
{
	OFString *path;
	OFURL *URL;

	[of_stdout writeString: @"Writing files…"];

	path = [OFString pathWithComponents: [OFArray arrayWithObjects:
	    OF_PATH_PARENT_DIRECTORY, @"src", @"unicode.m", nil]];
	[self writeTablesToFile: path];
	URL = [OFURL fileURLWithPath: @"../src/unicode.m"];
	[self writeTablesToFile: [URL fileSystemRepresentation]];

	path = [OFString pathWithComponents: [OFArray arrayWithObjects:
	    OF_PATH_PARENT_DIRECTORY, @"src", @"unicode.h", nil]];
	[self writeHeaderToFile: path];
	URL = [OFURL fileURLWithPath: @"../src/unicode.h"];
	[self writeHeaderToFile: [URL fileSystemRepresentation]];

	[of_stdout writeLine: @" done"];

	[OFApplication terminate];
}

- (void)writeTablesToFile: (OFString *)path