Rizin
unix-like reverse engineering framework and cli tools
|
#include "diff_output.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "compat.h"
Go to the source code of this file.
Macros | |
#define | MAX_BYTES 64 |
Functions | |
static void | ensure_header (diff_output_t *output) |
void | diff_output_init (diff_output_t *output, int verbose, char *const archive_names[]) |
void | diff_output_start_file (diff_output_t *output, const char *name, zip_uint64_t size, zip_uint32_t crc) |
void | diff_output_end_file (diff_output_t *output) |
void | diff_output (diff_output_t *output, int side, const char *fmt,...) |
void | diff_output_file (diff_output_t *output, char side, const char *name, zip_uint64_t size, zip_uint32_t crc) |
void | diff_output_data (diff_output_t *output, int side, const zip_uint8_t *data, zip_uint64_t data_length, const char *fmt,...) |
#define MAX_BYTES 64 |
Definition at line 74 of file diff_output.c.
void diff_output | ( | diff_output_t * | output, |
int | side, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 38 of file diff_output.c.
References diff_output_file(), ensure_header(), diff_output_t::file_crc, diff_output_t::file_name, diff_output_t::file_size, NULL, output, printf(), and diff_output_t::verbose.
Referenced by diff_output_data(), and entry_paranoia_checks().
void diff_output_data | ( | diff_output_t * | output, |
int | side, | ||
const zip_uint8_t * | data, | ||
zip_uint64_t | data_length, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 75 of file diff_output.c.
References diff_output(), i, MAX_BYTES, output, prefix, PRIu64, sprintf, diff_output_t::verbose, and vsnprintf.
Referenced by compare_zip(), ef_print(), and entry_paranoia_checks().
void diff_output_end_file | ( | diff_output_t * | output | ) |
Definition at line 34 of file diff_output.c.
References diff_output_t::file_name, NULL, and output.
Referenced by compare_list().
void diff_output_file | ( | diff_output_t * | output, |
char | side, | ||
const char * | name, | ||
zip_uint64_t | size, | ||
zip_uint32_t | crc | ||
) |
Definition at line 59 of file diff_output.c.
References ensure_header(), output, printf(), PRIu64, and diff_output_t::verbose.
Referenced by diff_output(), and entry_print().
void diff_output_init | ( | diff_output_t * | output, |
int | verbose, | ||
char *const | archive_names[] | ||
) |
Definition at line 19 of file diff_output.c.
References diff_output_t::archive_names, diff_output_t::file_crc, diff_output_t::file_name, diff_output_t::file_size, NULL, output, verbose, and diff_output_t::verbose.
Referenced by compare_zip().
void diff_output_start_file | ( | diff_output_t * | output, |
const char * | name, | ||
zip_uint64_t | size, | ||
zip_uint32_t | crc | ||
) |
Definition at line 28 of file diff_output.c.
References diff_output_t::file_crc, diff_output_t::file_name, diff_output_t::file_size, name, and output.
Referenced by entry_start_file().
|
static |
Definition at line 10 of file diff_output.c.
References diff_output_t::archive_names, NULL, output, and printf().
Referenced by diff_output(), and diff_output_file().