22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#include <stdarg.h>
#include <stdbool.h>
#include <wchar.h>
#import "OFString.h"
#import "OFAutoreleasePool.h"
#import "asprintf.h"
#define MAX_SUBFMT_LEN 64
struct context {
const char *fmt;
size_t fmt_len;
char subfmt[MAX_SUBFMT_LEN + 1];
|
>
>
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#include <stdarg.h>
#include <stdbool.h>
#include <wchar.h>
#import "OFString.h"
#import "OFAutoreleasePool.h"
#import "asprintf.h"
#import "macros.h"
#define MAX_SUBFMT_LEN 64
struct context {
const char *fmt;
size_t fmt_len;
char subfmt[MAX_SUBFMT_LEN + 1];
|
228
229
230
231
232
233
234
235
236
237
238
239
240
241
|
return false;
ctx->i += 2;
ctx->len_mod = LENGTH_MODIFIER_LL;
} else
ctx->i--;
break;
#endif
default:
ctx->i--;
break;
}
|
>
>
>
>
>
>
>
>
>
|
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
|
return false;
ctx->i += 2;
ctx->len_mod = LENGTH_MODIFIER_LL;
} else
ctx->i--;
break;
#endif
#ifdef OF_IOS
case 'q': /* iOS uses this for PRI?64 */
if (!appendSubformat(ctx, ctx->format + ctx->i, 1))
return false;
ctx->lengthModifier = LENGTH_MODIFIER_LL;
break;
#endif
default:
ctx->i--;
break;
}
|