libpng/contrib
Cosmin Truta ceb327789b Remove top-level const from function-scope variables
As per the const correctness rules, top-level const-ness of data
in automatic scopes does not propagate outside of these scopes
(unlike const-ness at lower levels, such as pointers to const data).

Previously, const was used liberally, but inconsistently across the
libpng codebase. Using const wherever applicable is not incorrect.
However, _consistent_ use of const is difficult to maintain in such
conditions.

In conclusion, we shall continue to use const only where doing so is
strictly necessary:

1. If a function guarantees that it will not modify an argument
   passed by pointer, the corresponding function parameter should be
   a pointer-to-const (const T *).

2. Static data should not be modified, therefore it should be const.

Reference:
Google C++ Style Guide
https://google.github.io/styleguide/cppguide.html#Use_of_const
2018-08-18 22:47:16 -04:00
..
arm-neon [libpng16] Imported from libpng-1.6.31.tar 2017-07-27 05:27:17 -05:00
conftest More misc. typos 2018-02-09 06:57:29 -05:00
examples Remove top-level const from function-scope variables 2018-08-18 22:47:16 -04:00
gregbook Replace the remaining uses of PNG_CONST with const 2018-08-18 21:01:02 -04:00
libtests Remove top-level const from function-scope variables 2018-08-18 22:47:16 -04:00
mips-msa Added build support for MIPS MSA 2016-08-29 19:07:25 +05:30
oss-fuzz Release libpng version 1.6.35 2018-07-15 23:58:00 -04:00
pngminim [libpng16] Removed unneeded "#define PNG_NO_WARNINGS" from contrib/pngminim/* 2014-02-16 13:56:10 -06:00
pngminus More misc. typos 2018-02-09 06:57:29 -05:00
pngsuite [libpng16] Imported from libpng-1.6.35beta01.tar 2018-03-06 14:06:24 -06:00
powerpc-vsx Remove top-level const from function-scope variables 2018-08-18 22:47:16 -04:00
testpngs More misc. typos 2018-02-09 06:57:29 -05:00
tools Remove top-level const from function-scope variables 2018-08-18 22:47:16 -04:00
visupng [libpng16] Replace the remaining uses of png_size_t with size_t 2018-06-17 22:37:44 -04:00
README.txt [libpng16] Update CHANGES and ANNOUNCE 2015-09-25 18:25:08 -05:00

This "contrib" directory contains contributions which are not necessarily under
the libpng license, although all are open source.  They are not part of
libpng proper and are not used for building the library, although some are used
for testing the library via "make check".