mirror of
https://github.com/curl/curl.git
synced 2026-07-24 10:57:16 +03:00
David J Meyer's large file support.
This commit is contained in:
parent
41c6f68d94
commit
b60e0fa97e
27 changed files with 290 additions and 130 deletions
|
|
@ -167,7 +167,7 @@ static BOOL dprintf_IsQualifierNoDollar(char c)
|
|||
case '0': case '1': case '2': case '3': case '4':
|
||||
case '5': case '6': case '7': case '8': case '9':
|
||||
case 'h': case 'l': case 'L': case 'Z': case 'q':
|
||||
case '*':
|
||||
case '*': case 'O':
|
||||
return TRUE;
|
||||
default:
|
||||
return FALSE;
|
||||
|
|
@ -376,6 +376,13 @@ static int dprintf_Pass1(char *format, va_stack_t *vto, char **endpos, va_list a
|
|||
if (sizeof(size_t) > sizeof(unsigned int))
|
||||
flags |= FLAGS_LONG;
|
||||
break;
|
||||
case 'O':
|
||||
if (sizeof(off_t) > sizeof(unsigned long int)) {
|
||||
flags |= FLAGS_LONGLONG;
|
||||
} else if (sizeof(off_t) > sizeof(unsigned int)) {
|
||||
flags |= FLAGS_LONG;
|
||||
}
|
||||
break;
|
||||
case '0':
|
||||
if (!(flags & FLAGS_LEFT))
|
||||
flags |= FLAGS_PAD_NIL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue