diff options
author | bubnikv <bubnikv@gmail.com> | 2018-09-19 12:02:24 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-09-19 12:02:24 +0300 |
commit | 0558b53493a77bae44831cf87bb0f59359828ef5 (patch) | |
tree | c3e8dbdf7d91a051c12d9ebbf7606d41047fea96 /src/png/libpng/scripts/symbols.c | |
parent | 3ddaccb6410478ad02d8c0e02d6d8e6eb1785b9f (diff) |
WIP: Moved sources int src/, separated most of the source code from Perl.
The XS was left only for the unit / integration tests, and it links
libslic3r only. No wxWidgets are allowed to be used from Perl starting
from now.
Diffstat (limited to 'src/png/libpng/scripts/symbols.c')
-rw-r--r-- | src/png/libpng/scripts/symbols.c | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/png/libpng/scripts/symbols.c b/src/png/libpng/scripts/symbols.c new file mode 100644 index 000000000..28b841d8b --- /dev/null +++ b/src/png/libpng/scripts/symbols.c @@ -0,0 +1,58 @@ + +/* symbols.c - find all exported symbols + * + * Last changed in libpng version 1.6.16 [December 22, 2014] + * Copyright (c) 2011-2014 Glenn Randers-Pehrson + * + * This code is released under the libpng license. + * For conditions of distribution and use, see the disclaimer + * and license in png.h + */ + +/* NOTE: making 'symbols.chk' checks both that the exported + * symbols in the library don't change and (implicitly) that + * scripts/pnglibconf.h.prebuilt is as expected. + * If scripts/pnglibconf.h.prebuilt is remade using + * scripts/pnglibconf.dfa then this checks the .dfa file too. + */ + +#define PNG_EXPORTA(ordinal, type, name, args, attributes)\ + PNG_DFN "@" name "@ @@" ordinal "@" +#define PNG_REMOVED(ordinal, type, name, args, attributes)\ + PNG_DFN "; @" name "@ @@" ordinal "@" +#define PNG_EXPORT_LAST_ORDINAL(ordinal)\ + PNG_DFN "; @@" ordinal "@" + +/* Read the defaults, but use scripts/pnglibconf.h.prebuilt; the 'standard' + * header file. + */ +#include "pnglibconf.h.prebuilt" +#include "../png.h" + +/* Some things are turned off by default. Turn these things + * on here (by hand) to get the APIs they expose and validate + * that no harm is done. This list is the set of options + * defaulted to 'off' in scripts/pnglibconf.dfa + * + * Maintenance: if scripts/pnglibconf.dfa options are changed + * from, or to, 'disabled' this needs updating! + */ +#define PNG_BENIGN_ERRORS_SUPPORTED +#define PNG_ERROR_NUMBERS_SUPPORTED +#define PNG_READ_BIG_ENDIAN_SUPPORTED /* should do nothing! */ +#define PNG_INCH_CONVERSIONS_SUPPORTED +#define PNG_READ_16_TO_8_ACCURATE_SCALE_SUPPORTED +#define PNG_SET_OPTION_SUPPORTED + +#undef PNG_H +#include "../png.h" + +/* Finally there are a couple of places where option support + * actually changes the APIs revealed using a #if/#else/#endif + * test in png.h, test these here. + */ +#undef PNG_FLOATING_POINT_SUPPORTED /* Exposes 'fixed' APIs */ +#undef PNG_ERROR_TEXT_SUPPORTED /* Exposes unsupported APIs */ + +#undef PNG_H +#include "../png.h" |