Changeset View
Changeset View
Standalone View
Standalone View
src/estream-printf.c
Show First 20 Lines • Show All 1,493 Lines • ▼ Show 20 Lines | _gpgrt_estream_format (estream_printf_out_t outfnc, | ||||
size_t validx; /* Used to index the valuetable. */ | size_t validx; /* Used to index the valuetable. */ | ||||
int max_pos;/* Highest argument position. */ | int max_pos;/* Highest argument position. */ | ||||
size_t nbytes = 0; /* Keep track of the number of bytes passed to | size_t nbytes = 0; /* Keep track of the number of bytes passed to | ||||
the output function. */ | the output function. */ | ||||
int myerrno = errno; /* Save the errno for use with "%m". */ | int myerrno = errno; /* Save the errno for use with "%m". */ | ||||
memset (valuetable_buffer, 0, sizeof valuetable_buffer); | |||||
/* Parse the arguments to come up with descriptive list. We can't | /* Parse the arguments to come up with descriptive list. We can't | ||||
do this on the fly because we need to support positional | do this on the fly because we need to support positional | ||||
arguments. */ | arguments. */ | ||||
rc = parse_format (format, &argspecs, DIM(argspecs_buffer), &argspecs_len); | rc = parse_format (format, &argspecs, DIM(argspecs_buffer), &argspecs_len); | ||||
if (rc) | if (rc) | ||||
goto leave; | goto leave; | ||||
▲ Show 20 Lines • Show All 366 Lines • Show Last 20 Lines |