summaryrefslogtreecommitdiff
path: root/other/astyle
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-12-14 09:17:19 +0000
committeriphydf <iphydf@users.noreply.github.com>2016-12-14 11:35:43 +0000
commitbbdd7982563b7d8f89fcd3b7297b5fbdf21fc57f (patch)
treeed7c949449b8ca3cae0b74299a328872af0092ec /other/astyle
parent22fca79ad76147a07fcb3950a0a6ec1578ecc492 (diff)
Fix unresolved reference in toxencryptsave API.
Also, make sure this won't happen again by checking for it in format-source.
Diffstat (limited to 'other/astyle')
-rwxr-xr-xother/astyle/format-source5
1 files changed, 5 insertions, 0 deletions
diff --git a/other/astyle/format-source b/other/astyle/format-source
index b702b488..c6d9982e 100755
--- a/other/astyle/format-source
+++ b/other/astyle/format-source
@@ -40,6 +40,11 @@ $APIDSL toxcore/tox.api.h > toxcore/tox.h
40$APIDSL toxav/toxav.api.h > toxav/toxav.h 40$APIDSL toxav/toxav.api.h > toxav/toxav.h
41$APIDSL toxencryptsave/toxencryptsave.api.h > toxencryptsave/toxencryptsave.h 41$APIDSL toxencryptsave/toxencryptsave.api.h > toxencryptsave/toxencryptsave.h
42 42
43if grep '<unresolved>' */*.h; then
44 echo "error: some apidsl references were unresolved"
45 exit 1
46fi
47
43SOURCES=`find . -name "*.[ch]" -and -not -name "*.api.h" -and -not -wholename "*crypto_pwhash*" -and -not -wholename "./super_donators/*"` 48SOURCES=`find . -name "*.[ch]" -and -not -name "*.api.h" -and -not -wholename "*crypto_pwhash*" -and -not -wholename "./super_donators/*"`
44 49
45$ASTYLE -n --options=other/astyle/astylerc $SOURCES 50$ASTYLE -n --options=other/astyle/astylerc $SOURCES