summaryrefslogtreecommitdiff
path: root/common/test-lib.c
Commit message (Collapse)AuthorAgeFilesLines
* Avoid shadowing local variablesPhaedrus Leeds2020-09-151-5/+5
| | | | | | | | | | | Avoid shadowing variables that are already declared in a previous scope, and make such occurrences compile-time errors. These are not functional changes. In a few places do related code cleanup. A similar ostree PR is here: https://github.com/ostreedev/ostree/pull/2195
* installation: Formally deprecate deprecated methodsSimon McVittie2020-03-251-0/+4
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Remove extra newlines in variable definiton blocksMatthew Leeds2019-02-251-1/+0
| | | | | | | | | | | | | | | | | | | | | | | Uncrustify has an option "nl_func_var_def_blk" which is supposed to ensure there's a newline character between the block of variable definitions and the rest of the function body, but it gets confused and thinks that the first instance of "g_autoptr" or "g_auto" being used on a variable is the start of the function body. So this commit removes those extra newline characters and removes that option in uncrustify.cfg so they don't get re-added the next time uncrustify is run. Here's the command I used: perl -0777 -i -pe 's/\n(\n\s*g_auto\()/\1/g' `git ls-tree --name-only -r HEAD | grep \\\.[ch]$ | grep -v common/valgrind-private.h | grep -v app/flatpak-polkit-agent-text-listener\\\.[ch]` I ran it again with "g_autoptr" in place of "g_auto", and made a few manual edits to add back the newline when the g_auto* was in the middle of a function body rather than at the top. Closes: #2715 Approved by: matthiasclasen
* Remove extra newlines near curly bracesMatthew Leeds2019-02-251-1/+0
| | | | | | | | Edit uncrustify.cfg to add options to remove extra newlines near opening and closing braces, and run uncrustify again. Closes: #2715 Approved by: matthiasclasen
* Run uncrustifyAlexander Larsson2018-07-081-4/+4
| | | | | Closes: #1870 Approved by: alexlarsson
* Make p2p build non-optionalAlexander Larsson2018-06-191-2/+0
| | | | | Closes: #1800 Approved by: alexlarsson
* Merge lib/* into commonAlexander Larsson2018-05-241-0/+457
This moves all the files from lib into common, and it also adds all the libflatpak sources into libflatpak-common, making libflatpak just a wrapper around the common helper library. This move allows the CLI to use all the code from libflatpak. We were already doing this with a few things like flatpak-error*.[ch], and we want to do it even more when sharing FlatpakTransaction. This also allows use to slowly move the CLI to using the libflatpak apis for some things. Closes: #1706 Approved by: alexlarsson