Fix lots of warnings, adjust build flags
Dependencies
- [2]
KEC3WLFNchange: remove debugging lines - [3]
XTVLIC24change: refactor to print_change() - [4]
XJ2PEH74add meson.build - [5]
UHHEEY5JUpdate README with build instructions using muon + samurai - [6]
QYRJIOYPchange: separate decoding and printing of hashed struct - [7]
ZKAOPMCHchange: Implement decoding of edits, atoms, positions, among others - [8]
OBKF6SIIchange: decompress the hashed section too - [9]
FMYCPGKDchange: extract hash list decoding into reused function - [10]
LCEKN25Gchange: parse authors - [11]
2U7P5SFQChange struct names "struct foo -> typedef struct Foo" - [12]
RIWSVVASchange: decompress the 'contents' with zstd_seekable - [13]
JAGXXSR7change: initial work on decoding hunks - [14]
YDQLW2ZOchange: rework printing of patches - print Edit and Newvertex types - [15]
Q7TKZCJPAdd initial support for reading the offsets from a (fixed) change - [16]
N3PUHKQNchange: fix scoping issue - [17]
ML5XMZEUMakefile: rearrange targets - [18]
XTKRT6OQformat the codebase - [*]
B3XLVPNCAdd ani.c and initial Makefile
Change contents
- replacement in meson.build at line 1
project('ani', 'c')project('ani', 'c',default_options : ['c_std=c99'])add_project_arguments('-g3','-D_POSIX_C_SOURCE=200809L',# Extra flags from https://nullprogram.com/blog/2023/04/29/'-Wdouble-promotion','-Wconversion',#'-fsanitize-undefined-trap-on-error',#'-fsanitize=address', # can't have this one because of the assembly :-('-fno-diagnostics-color',language: 'c') - replacement in change.c at line 32
int i;size_t i; - replacement in change.c at line 115
if (compressed_read != compressed_len) {if (compressed_read != (ssize_t)compressed_len) { - replacement in change.c at line 164
int i;size_t i; - replacement in change.c at line 270
int i;size_t i; - replacement in change.c at line 300
int i;size_t i; - replacement in change.c at line 356
int i;size_t i; - replacement in change.c at line 465
int j;size_t j; - replacement in change.c at line 522
int i;size_t i; - replacement in change.c at line 528
printf("P%d.%lu", i + 1, plist->entries[i].pos);printf("P%lu.%lu", i + 1, plist->entries[i].pos); - replacement in change.c at line 542
int i, waseol;size_t i;int waseol; - replacement in change.c at line 583
int i;size_t i; - replacement in change.c at line 592
int j;size_t j; - replacement in change.c at line 610
printf("\n#Hunks\n\n");printf("\n# Hunks\n\n"); - replacement in change.c at line 616
printf("%d. %s", i + 1, hunk_basehunk_type_str(hunk->hunktype));printf("%lu. %s", i + 1, hunk_basehunk_type_str(hunk->hunktype)); - replacement in Makefile at line 36
@muon setup build@meson setup --warnlevel=3 build