mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
4746a8b3af
* `crypto_memcmp` was replaced by more specific functions. We never want to compare arbitrary amounts of data this way. We use these functions to compare key material. * apidsl has been bothering people, so now we un-bother them. You're welcome. * Added the memlock/unlock functions from the New Group Chats branch. * Remove some system dependencies in crypto_core_mem.c. * Renamed UPPERCASE_NAMES to Snake_Camel_Case names. |
||
---|---|---|
.. | ||
astylerc | ||
format-source | ||
pre-commit | ||
README.md |
This directory can house various tools and utilities.
How to use astyle
Manually
For all files
Run from toxcore
directory:
astyle --options=./other/astyle/astylerc ./toxcore/*.c ./toxcore/*.h ./testing/*.c ./toxav/*.c ./toxav/*.h ./other/*.c ./other/bootstrap_daemon/*.c ./toxencryptsave/*.c ./toxencryptsave/*.h ./auto_tests/*.c
For selected file
Run from toxcore
directory, e.g. for tox.h
file:
astyle --options=./other/astyle/astylerc ./toxcore/tox.h
Automatically, as pre-commit hook (*NIX only)
Copy astylerc
to toxcore/.git/hooks
Why
astylerc
- this file can be used in the pre-commit hook to try its best at making the code conform to the coding style of toxcore.
Furthermore, it is being used to format tox.h
after using apidsl
to generate it.