ObjFW  Check-in [ccb0a96ebc]

Overview
Comment:of_asprintf: Work around more Win32 brokenness.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ccb0a96ebcb26a3e704378c9de666ace8bda03cb52334480e23068bb68592f1d
User & Date: js on 2011-11-23 02:17:53
Other Links: manifest | tags
Context
2011-11-30
23:55
Don't copy properties of OFApplication. check-in: 9ec315d070 user: js tags: trunk
2011-11-23
02:17
of_asprintf: Work around more Win32 brokenness. check-in: ccb0a96ebc user: js tags: trunk
00:28
Doxygen is picky about %. check-in: 0a87610175 user: js tags: trunk
Changes

Modified src/of_asprintf.m from [d33bc3adcc] to [3dba5d325a].

203
204
205
206
207
208
209

210
211




212
213
214
215
216

217
218




219
220
221
222
223
224
225
			return false;
#endif

		ctx->lengthModifier = LENGTH_MODIFIER_J;

		break;
	case 'z':

		if (!appendSubformat(ctx, ctx->format + ctx->i, 1))
			return false;





		ctx->lengthModifier = LENGTH_MODIFIER_Z;

		break;
	case 't':

		if (!appendSubformat(ctx, ctx->format + ctx->i, 1))
			return false;





		ctx->lengthModifier = LENGTH_MODIFIER_T;

		break;
	case 'L':
		if (!appendSubformat(ctx, ctx->format + ctx->i, 1))
			return false;







>


>
>
>
>





>


>
>
>
>







203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
			return false;
#endif

		ctx->lengthModifier = LENGTH_MODIFIER_J;

		break;
	case 'z':
#ifndef _WIN32
		if (!appendSubformat(ctx, ctx->format + ctx->i, 1))
			return false;
#else
		if (!appendSubformat(ctx, "I", 1))
			return false;
#endif

		ctx->lengthModifier = LENGTH_MODIFIER_Z;

		break;
	case 't':
#ifndef _WIN32
		if (!appendSubformat(ctx, ctx->format + ctx->i, 1))
			return false;
#else
		if (!appendSubformat(ctx, "I", 1))
			return false;
#endif

		ctx->lengthModifier = LENGTH_MODIFIER_T;

		break;
	case 'L':
		if (!appendSubformat(ctx, ctx->format + ctx->i, 1))
			return false;