about summary refs log tree commit diff
path: root/third_party/cgit/filter.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-06-03 r/878 fix(3p/cgit): Fix compilation under ClangLuke Granger-Brown1-1/+1
Clang treats function-like macros "correctly", in that, per the C11 spec: "Each subsequent instance of the function-like macro name followed by a ( [...] is replaced by the replacement list [...]". Additionally, fprintf is also permitted to be defined as a function-like macro rather than as a true function: "Any function declared in a header may be additionally implemented as a function-like macro defined in the header [...]". The specification then suggests surrounding the name of the function in parens to avoid this, which is the technique we use here to avoid the function-like macro being invoked. The other fix here is to use uintptr_t for some arithmetic, since Git is expecting an int as the value here and not a pointer.
2020-01-11 r/371 merge(third_party/cgit): Import at master of 2020-01-11Vincent Ambo1-0/+457
Imported commit '723dc8fbcb1a4609c264758eae420ee2811a2b55' as 'third_party/cgit'.