ObjFW  Check-in [8c41063a76]

Overview
Comment:of_asprintf: Work around %z missing on HP-UX
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8c41063a76f5f50d22cea0747a04365b4ed126994a5ce78d1ae492cfc526a708
User & Date: js on 2021-01-01 22:34:00
Other Links: manifest | tags
Context
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
22:28
OFDataTests: Fix wrong test description check-in: da0a27ee23 user: js tags: trunk
Changes

Modified src/of_asprintf.m from [35d52654ca] to [00ae3c010b].

301
302
303
304
305
306
307
308
309
310
311
312
313
314
315

		break;
	case 'z':
#if defined(OF_WINDOWS)
		if (sizeof(size_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








|







301
302
303
304
305
306
307
308
309
310
311
312
313
314
315

		break;
	case 'z':
#if defined(OF_WINDOWS)
		if (sizeof(size_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