2013-09-30 16:29:55 +02:00
|
|
|
--- src/apprentice.c
|
|
|
|
+++ src/apprentice.c 2013-09-30 00:00:00.000000000 +0000
|
|
|
|
@@ -2072,8 +2072,16 @@ check_format_type(const char *ptr, int t
|
2013-03-22 11:16:05 +01:00
|
|
|
quad = 1;
|
|
|
|
/*FALLTHROUGH*/
|
|
|
|
case FILE_FMT_NUM:
|
|
|
|
+ if (*ptr == '#')
|
|
|
|
+ ptr++;
|
|
|
|
+ if (*ptr == ' ')
|
|
|
|
+ ptr++;
|
|
|
|
if (*ptr == '-')
|
|
|
|
ptr++;
|
|
|
|
+ if (*ptr == '+')
|
|
|
|
+ ptr++;
|
|
|
|
+ if (*ptr == '\'')
|
|
|
|
+ ptr++;
|
|
|
|
if (*ptr == '.')
|
|
|
|
ptr++;
|
|
|
|
while (isdigit((unsigned char)*ptr)) ptr++;
|
2013-09-30 16:29:55 +02:00
|
|
|
@@ -2115,6 +2123,9 @@ check_format_type(const char *ptr, int t
|
2013-03-22 11:16:05 +01:00
|
|
|
default:
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
+ case 'o':
|
|
|
|
+ case 'x':
|
|
|
|
+ case 'X':
|
|
|
|
case 'd':
|
|
|
|
return 0;
|
|
|
|
default:
|