Check-in [86a1c1d3ad]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Always copy manifest to uncompressed section in the JAR.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 86a1c1d3addb68e1ceeb155e4901aade8a2f42e8
User & Date: stephanie.gawroriski 2019-09-15 00:27:29
Context
2019-09-15
00:28
Add comment as to why the sections are fixed size. check-in: df35bd6594 user: stephanie.gawroriski tags: trunk
00:27
Always copy manifest to uncompressed section in the JAR. check-in: 86a1c1d3ad user: stephanie.gawroriski tags: trunk
00:24
Libretro: support building using tvOS SDK (Merge GitHub PR #52) check-in: 51fb7b7c85 user: yoshi.sugawara tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to runt/libs/tool-jarfile/dev/shadowtail/jarfile/JarMinimizer.java.

230
231
232
233
234
235
236
237





238
239





240
241
242
243
244
245
246
		{
			// There is a manifest
			if (in != null)
			{
				TableSectionOutputStream.Section manifest = out.addSection(
					TableSectionOutputStream.VARIABLE_SIZE, 4);
				
				// Copy the manifest





				if (true)
					throw new todo.TODO();





				
				// Manifest offset and length
				header.writeSectionAddressInt(manifest);
				header.writeSectionSizeInt(manifest);
			}
			
			// There is none







|
>
>
>
>
>
|
<
>
>
>
>
>







230
231
232
233
234
235
236
237
238
239
240
241
242
243

244
245
246
247
248
249
250
251
252
253
254
255
		{
			// There is a manifest
			if (in != null)
			{
				TableSectionOutputStream.Section manifest = out.addSection(
					TableSectionOutputStream.VARIABLE_SIZE, 4);
				
				// Copy the manifest to an uncompressed section
				for (;;)
				{
					int ll = in.read(copybuf);
					
					// EOF?
					if (ll < 0)

						break;
					
					// Write
					manifest.write(copybuf);
				}
				
				// Manifest offset and length
				header.writeSectionAddressInt(manifest);
				header.writeSectionSizeInt(manifest);
			}
			
			// There is none