search for: flac_printf

Displaying 3 results from an estimated 3 matches for "flac_printf".

Did you mean: flac_fprintf
2013 Apr 23
2
Metaflac UTF-8 fixes
...01fa5c..529b0e5 100644 --- a/src/metaflac/operations.c +++ b/src/metaflac/operations.c @@ -551,7 +551,7 @@ void write_metadata(const char *filename, FLAC__StreamMetadata *block, unsigned unsigned i, j; /*@@@ yuck, should do this with a varargs function or something: */ -#define PPR if(filename)flac_printf("%s:",filename); +#define PPR if(filename) if(raw) printf("%s:",filename); else flac_printf("%s:",filename); PPR; printf("METADATA block #%u\n", block_number); PPR; printf(" type: %u (%s)\n", (unsigned)block->type, block->type < FLAC__...
2013 Apr 24
1
Metaflac UTF-8 fixes
On 24.4.2013 15:42, Erik de Castro Lopo wrote: > Janne Hyv?rinen wrote: > >> +#define PPR if(filename) if(raw) printf("%s:",filename); else flac_printf("%s:",filename); > Are you sure about that line? > > GCC complains about an ambiguous 'else'. It definitely needs some > curly braces somewhere there to make the intend explicit. > So it seems, I didn't expect any issues so I didn't test with mingw. MSVC a...
2013 Apr 20
2
Metaflac hex dump UTF-8 and locale fix
...} +static inline int local_isprint(int c) +{ + if (c < 0x32) return 0; + return isprint(c); +} + void hexdump(const char *filename, const FLAC__byte *buf, unsigned bytes, const char *indent) { unsigned i, left = bytes; const FLAC__byte *b = buf; for(i = 0; i < bytes; i += 16) { - flac_printf("%s%s%s%08X: " + flac_printf("%s%s", filename? filename:"", filename? ":":""); + printf("%s%08X: " "%02X %02X %02X %02X %02X %02X %02X %02X " "%02X %02X %02X %02X %02X %02X %02X %02X " "%c%c%c%c%c%c%c...