[libpng17] moved scripts/chunkdesc.h to pngchunk.h

This commit is contained in:
Glenn Randers-Pehrson 2015-09-15 23:53:49 -05:00
parent bb4e79c947
commit 497ff3400c
3 changed files with 15 additions and 6 deletions

View File

@ -82,7 +82,8 @@ lib_LTLIBRARIES=libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@.la
libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES = png.c pngerror.c\ libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_SOURCES = png.c pngerror.c\
pngget.c pngmem.c pngpread.c pngread.c pngrio.c pngrtran.c pngrutil.c\ pngget.c pngmem.c pngpread.c pngread.c pngrio.c pngrtran.c pngrutil.c\
pngset.c pngtrans.c pngwio.c pngwrite.c pngwtran.c pngwutil.c\ pngset.c pngtrans.c pngwio.c pngwrite.c pngwtran.c pngwutil.c\
png.h pngconf.h pngdebug.h pnginfo.h pngpriv.h pngstruct.h pngusr.dfa png.h pngconf.h pngdebug.h pnginfo.h pngpriv.h pngstruct.h pngchunk.h \
pngusr.dfa
# Include libpng extensions, if appropriate. This uses a Makefile.am fragment, # Include libpng extensions, if appropriate. This uses a Makefile.am fragment,
# pre-set things that might be changed by addition: # pre-set things that might be changed by addition:
@ -285,7 +286,7 @@ scripts/pnglibconf.c: scripts/pnglibconf.dfa scripts/options.awk pngconf.h
rm pnglibconf.tf6 rm pnglibconf.tf6
mv pnglibconf.tf7 $@ mv pnglibconf.tf7 $@
$(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_OBJECTS): png.h pngconf.h \ $(libpng@PNGLIB_MAJOR@@PNGLIB_MINOR@_la_OBJECTS): png.h pngconf.h pngchunk.h \
pnglibconf.h pngpriv.h pngdebug.h pnginfo.h pngstruct.h pngprefix.h pnglibconf.h pngpriv.h pngdebug.h pnginfo.h pngstruct.h pngprefix.h
test: check-am test: check-am

View File

@ -1,4 +1,12 @@
/* PNG CHUNK DESCRIPTIONS.
/* pngchunk.h - PNG chunk descriptions
*
* Last changed in libpng 1.7.0 [(PENDING RELEASE)]
* Copyright (c) 2015 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
* *
* If this list is changed in any way scripts/chunkhash.c must be rebuilt and * If this list is changed in any way scripts/chunkhash.c must be rebuilt and
* run to regenerate the lookup functions for the tables described from this * run to regenerate the lookup functions for the tables described from this

View File

@ -2706,7 +2706,7 @@ png_known_chunks[] =
#define after_PLTE (after_start+PNG_HAVE_PLTE) /* NOTE: PLTE optional */ #define after_PLTE (after_start+PNG_HAVE_PLTE) /* NOTE: PLTE optional */
#define after_IDAT (after_PLTE+PNG_AFTER_IDAT) /* NOTE: PLTE optional */ #define after_IDAT (after_PLTE+PNG_AFTER_IDAT) /* NOTE: PLTE optional */
/* See scripts/chunkdesc.h for how this works: */ /* See pngchunk.h for how this works: */
#define PNG_CHUNK_END(n, c1, c2, c3, c4, before, after)\ #define PNG_CHUNK_END(n, c1, c2, c3, c4, before, after)\
{ png_handle_ ## n, png_ ##n, before, after } { png_handle_ ## n, png_ ##n, before, after }
#define PNG_CHUNK(n, c1, c2, c3, c4, before, after)\ #define PNG_CHUNK(n, c1, c2, c3, c4, before, after)\
@ -2714,7 +2714,7 @@ png_known_chunks[] =
#define PNG_CHUNK_BEGIN(n, c1, c2, c3, c4, before, after)\ #define PNG_CHUNK_BEGIN(n, c1, c2, c3, c4, before, after)\
PNG_CHUNK_END(n, c1, c2, c3, c4, before, after), PNG_CHUNK_END(n, c1, c2, c3, c4, before, after),
{ {
# include "scripts/chunkdesc.h" # include "pngchunk.h"
}; };
#undef PNG_CHUNK_START #undef PNG_CHUNK_START
#undef PNG_CHUNK #undef PNG_CHUNK
@ -2723,7 +2723,7 @@ png_known_chunks[] =
#define C_KNOWN ((sizeof png_known_chunks)/(sizeof png_known_chunks[0])) #define C_KNOWN ((sizeof png_known_chunks)/(sizeof png_known_chunks[0]))
/* See: scripts/chunkhash.c for code to generate this. This reads the same /* See: scripts/chunkhash.c for code to generate this. This reads the same
* description file (scripts/chunkdesc.h) as is included above. Whenever * description file (pngchunk.h) as is included above. Whenever
* that file is changed chunkhash needs to be re-run to generate the lines * that file is changed chunkhash needs to be re-run to generate the lines
* following this comment. * following this comment.
* *