toxcore/testing
iphydf 5b57ab6332
Improve C standard compliance.
- Don't cast between object and function pointers.
- Use standard compliant `__VA_ARGS__` in macros.
- Add explicit `__extension__` on unnamed union in struct (it's a GNU
  extension).
- Remove ; after function definitions.
- Replace `const T foo = 3;` for integral types `T` with `enum { foo = 3 };`.
  Folding integral constants like that as compile time constants is a GNU
  extension. Arrays allocated with `foo` as dimension are VLAs on strictly
  compliant C99 compilers.
- Replace empty initialiser list `{}` with zero-initialiser-list `{0}`.
  The former is a GNU extension meaning the latter.
- Cast `T*` (where `T != void`) to `void *` in format arguments. While any
  object pointer can be implicitly converted to and from `void *`, this
  conversion does not happen in variadic function calls.
- Replace arithmetic on `void *` with arithmetic on `char *`. The former
  is non-compliant.
- Replace non-`int`-derived types (like `uint16_t`, which is
  `short`-derived) in bit fields with `int`-derived types. Using any type
  other than `int` or `unsigned int` (or any of their aliases) in bit
  fields is a GNU extension.
2016-09-06 11:09:10 +01:00
..
av_test.c Make friend requests stateless 2016-09-06 02:22:04 -07:00
DHT_test.c Do not use else after return. 2016-09-02 11:02:56 +01:00
dns3_test.c Improve C standard compliance. 2016-09-06 11:09:10 +01:00
irc_syncbot.c Sort #includes in all source files. 2016-09-01 16:35:46 +01:00
Makefile.inc Ported some of the code in testing/ to the new api. 2015-02-24 20:29:01 -05:00
Messenger_test.c Make friend requests stateless 2016-09-06 02:22:04 -07:00
misc_tools.c Improve C standard compliance. 2016-09-06 11:09:10 +01:00
nTox.c Improve C standard compliance. 2016-09-06 11:09:10 +01:00
nTox.h Started as a simple bugfix for wrap(), expanded to more detailed help. 2013-11-10 19:06:17 +01:00
tox_shell.c Sort #includes in all source files. 2016-09-01 16:35:46 +01:00
tox_sync.c Do not use else after return. 2016-09-02 11:02:56 +01:00