Rizin
unix-like reverse engineering framework and cli tools
diff_output.h
Go to the documentation of this file.
1 #ifndef HAD_DIFF_OUTPUT_H
2 #define HAD_DIFF_OUTPUT_H
3 
4 #include <zip.h>
5 
6 typedef struct {
7  const char *archive_names[2];
8  const char *file_name;
11  int verbose;
13 
14 #if defined(__GNUC__) && __GNUC__ >= 4
15 #define PRINTF_LIKE(n, m) __attribute__((__format__(__printf__, n, m)))
16 #else
17 #define PRINTF_LIKE(n, m)
18 #endif
19 
20 void diff_output_init(diff_output_t *output, int verbose, char *const archive_names[]);
23 
24 void diff_output(diff_output_t *output, int side, const char *fmt, ...) PRINTF_LIKE(3, 4);
25 void diff_output_data(diff_output_t *output, int side, const zip_uint8_t *data, zip_uint64_t data_length, const char *fmt, ...) PRINTF_LIKE(5, 6);
27 
28 #endif /* HAD_DIFF_OUTPUT_H */
#define PRINTF_LIKE(n, m)
Definition: diff_output.h:17
void void void diff_output_file(diff_output_t *output, char side, const char *name, zip_uint64_t size, zip_uint32_t crc)
Definition: diff_output.c:59
void diff_output(diff_output_t *output, int side, const char *fmt,...) PRINTF_LIKE(3
void void diff_output_data(diff_output_t *output, int side, const zip_uint8_t *data, zip_uint64_t data_length, const char *fmt,...) PRINTF_LIKE(5
void diff_output_end_file(diff_output_t *output)
Definition: diff_output.c:34
void diff_output_start_file(diff_output_t *output, const char *name, zip_uint64_t size, zip_uint32_t crc)
Definition: diff_output.c:28
void diff_output_init(diff_output_t *output, int verbose, char *const archive_names[])
Definition: diff_output.c:19
voidpf void uLong size
Definition: ioapi.h:138
#define const
Definition: ansidecl.h:240
const char * file_name
Definition: diff_output.h:8
zip_uint64_t file_size
Definition: diff_output.h:9
zip_uint32_t file_crc
Definition: diff_output.h:10
Definition: z80asm.h:102
static int verbose
Definition: z80asm.c:73
diff_output_t output
Definition: zipcmp.c:237
uint64_t zip_uint64_t
Definition: zipconf.h:39
uint32_t zip_uint32_t
Definition: zipconf.h:37
uint8_t zip_uint8_t
Definition: zipconf.h:33