ObjFW  Check-in [1ba0dc33b4]

Overview
Comment:of_asprintf: Work around %j & %t missing on HP-UX
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1ba0dc33b493e32beb16736e461f0d994feb5689557b379666b4e38ab188e67d
User & Date: js on 2021-01-01 22:38:15
Other Links: manifest | tags
Context
2021-01-02
22:04
Update copyright check-in: 374e1a1bfa user: js tags: trunk
2021-01-01
22:38
of_asprintf: Work around %j & %t missing on HP-UX check-in: 1ba0dc33b4 user: js tags: trunk
22:34
of_asprintf: Work around %z missing on HP-UX check-in: 8c41063a76 user: js tags: trunk
Changes

Modified src/of_asprintf.m from [00ae3c010b] to [7048f84bee].

285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
		}

		break;
	case 'j':
#if defined(OF_WINDOWS)
		if (!appendSubformat(ctx, "I64", 3))
			return false;
#elif defined(_NEWLIB_VERSION)
		if (!appendSubformat(ctx, "ll", 2))
			return false;
#else
		if (!appendSubformat(ctx, ctx->format + ctx->i, 1))
			return false;
#endif








|







285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
		}

		break;
	case 'j':
#if defined(OF_WINDOWS)
		if (!appendSubformat(ctx, "I64", 3))
			return false;
#elif defined(_NEWLIB_VERSION) || defined(OF_HPUX)
		if (!appendSubformat(ctx, "ll", 2))
			return false;
#else
		if (!appendSubformat(ctx, ctx->format + ctx->i, 1))
			return false;
#endif

317
318
319
320
321
322
323
324
325
326
327
328
329
330
331

		break;
	case 't':
#if defined(OF_WINDOWS)
		if (sizeof(ptrdiff_t) == 8)
			if (!appendSubformat(ctx, "I64", 3))
				return false;
#elif defined(_NEWLIB_VERSION)
		if (!appendSubformat(ctx, "l", 1))
			return false;
#else
		if (!appendSubformat(ctx, ctx->format + ctx->i, 1))
			return false;
#endif








|







317
318
319
320
321
322
323
324
325
326
327
328
329
330
331

		break;
	case 't':
#if defined(OF_WINDOWS)
		if (sizeof(ptrdiff_t) == 8)
			if (!appendSubformat(ctx, "I64", 3))
				return false;
#elif defined(_NEWLIB_VERSION) || defined(OF_HPUX)
		if (!appendSubformat(ctx, "l", 1))
			return false;
#else
		if (!appendSubformat(ctx, ctx->format + ctx->i, 1))
			return false;
#endif