[libpng16] chore: Clean up the leading blank lines from all source files
The leading blank lines are apparently an artefact of an older source
control system. They are not required and they look like accidents,
because starting a source file with a blank line is not a regular habit
of software developers nowadays.
This is a cherry-pick of commit 37cc20add8fb5b83bb5299a26cd3b41e0f776017
from branch 'libpng18'.
Signed-off-by: John Bowler <jbowler@acm.org>
Signed-off-by: Cosmin Truta <ctruta@gmail.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index afce772..77eafdb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,3 @@
-
# CMakeLists.txt - CMake lists for libpng
#
# Copyright (c) 2018-2024 Cosmin Truta.
diff --git a/INSTALL b/INSTALL
index 042d729..df1a494 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,4 +1,3 @@
-
Installing libpng
Contents
diff --git a/arm/arm_init.c b/arm/arm_init.c
index 84d0555..5037608 100644
--- a/arm/arm_init.c
+++ b/arm/arm_init.c
@@ -1,4 +1,3 @@
-
/* arm_init.c - NEON optimised filter functions
*
* Copyright (c) 2018-2022 Cosmin Truta
diff --git a/arm/filter_neon.S b/arm/filter_neon.S
index fc3c7a2..0cbd372 100644
--- a/arm/filter_neon.S
+++ b/arm/filter_neon.S
@@ -1,4 +1,3 @@
-
/* filter_neon.S - placeholder file
*
* Copyright (c) 2024 Cosmin Truta
diff --git a/arm/filter_neon_intrinsics.c b/arm/filter_neon_intrinsics.c
index 4466d48..7c3e0da 100644
--- a/arm/filter_neon_intrinsics.c
+++ b/arm/filter_neon_intrinsics.c
@@ -1,4 +1,3 @@
-
/* filter_neon_intrinsics.c - NEON optimised filter functions
*
* Copyright (c) 2018 Cosmin Truta
diff --git a/arm/palette_neon_intrinsics.c b/arm/palette_neon_intrinsics.c
index 484eb41..3068e9b 100644
--- a/arm/palette_neon_intrinsics.c
+++ b/arm/palette_neon_intrinsics.c
@@ -1,4 +1,3 @@
-
/* palette_neon_intrinsics.c - NEON optimised palette expansion functions
*
* Copyright (c) 2018-2019 Cosmin Truta
diff --git a/contrib/examples/README.txt b/contrib/examples/README.txt
index 48dab4f..7833d53 100644
--- a/contrib/examples/README.txt
+++ b/contrib/examples/README.txt
@@ -1,4 +1,3 @@
-
This directory (contrib/examples) contains examples of libpng usage.
NO COPYRIGHT RIGHTS ARE CLAIMED TO ANY OF THE FILES IN THIS DIRECTORY.
diff --git a/contrib/libtests/pngimage.c b/contrib/libtests/pngimage.c
index be176b2..1d65247 100644
--- a/contrib/libtests/pngimage.c
+++ b/contrib/libtests/pngimage.c
@@ -1,4 +1,3 @@
-
/* pngimage.c
*
* Copyright (c) 2021 Cosmin Truta
diff --git a/contrib/libtests/pngstest.c b/contrib/libtests/pngstest.c
index b4e9c5e..1d15421 100644
--- a/contrib/libtests/pngstest.c
+++ b/contrib/libtests/pngstest.c
@@ -1,4 +1,3 @@
-
/* pngstest.c
*
* Copyright (c) 2021 Cosmin Truta
diff --git a/contrib/libtests/pngunknown.c b/contrib/libtests/pngunknown.c
index dfa9d10..88133de 100644
--- a/contrib/libtests/pngunknown.c
+++ b/contrib/libtests/pngunknown.c
@@ -1,4 +1,3 @@
-
/* pngunknown.c - test the read side unknown chunk handling
*
* Copyright (c) 2021 Cosmin Truta
diff --git a/contrib/libtests/pngvalid.c b/contrib/libtests/pngvalid.c
index 71b7b52..74352e5 100644
--- a/contrib/libtests/pngvalid.c
+++ b/contrib/libtests/pngvalid.c
@@ -1,4 +1,3 @@
-
/* pngvalid.c - validate libpng by constructing then reading png files.
*
* Copyright (c) 2021 Cosmin Truta
diff --git a/contrib/libtests/readpng.c b/contrib/libtests/readpng.c
index 7528e90..376616a 100644
--- a/contrib/libtests/readpng.c
+++ b/contrib/libtests/readpng.c
@@ -1,4 +1,3 @@
-
/* readpng.c
*
* Copyright (c) 2013 John Cunningham Bowler
diff --git a/contrib/libtests/tarith.c b/contrib/libtests/tarith.c
index e35b7ab..d41b9e1 100644
--- a/contrib/libtests/tarith.c
+++ b/contrib/libtests/tarith.c
@@ -1,4 +1,3 @@
-
/* tarith.c
*
* Copyright (c) 2021 Cosmin Truta
diff --git a/contrib/libtests/timepng.c b/contrib/libtests/timepng.c
index 0093a45..a66f513 100644
--- a/contrib/libtests/timepng.c
+++ b/contrib/libtests/timepng.c
@@ -1,4 +1,3 @@
-
/* timepng.c
*
* Copyright (c) 2013,2016 John Cunningham Bowler
diff --git a/contrib/mips-mmi/linux.c b/contrib/mips-mmi/linux.c
index 31525fd..dc00380 100644
--- a/contrib/mips-mmi/linux.c
+++ b/contrib/mips-mmi/linux.c
@@ -1,4 +1,3 @@
-
/* contrib/mips-mmi/linux.c
*
* Copyright (c) 2024 Cosmin Truta
diff --git a/contrib/mips-msa/linux.c b/contrib/mips-msa/linux.c
index cae8ca5..5651df7 100644
--- a/contrib/mips-msa/linux.c
+++ b/contrib/mips-msa/linux.c
@@ -1,4 +1,3 @@
-
/* contrib/mips-msa/linux.c
*
* Copyright (c) 2020-2023 Cosmin Truta
diff --git a/contrib/oss-fuzz/libpng_read_fuzzer.cc b/contrib/oss-fuzz/libpng_read_fuzzer.cc
index ad9f9ad..bfb5d9d 100644
--- a/contrib/oss-fuzz/libpng_read_fuzzer.cc
+++ b/contrib/oss-fuzz/libpng_read_fuzzer.cc
@@ -1,4 +1,3 @@
-
// libpng_read_fuzzer.cc
// Copyright 2017-2018 Glenn Randers-Pehrson
// Copyright 2015 The Chromium Authors. All rights reserved.
diff --git a/contrib/pngminim/README b/contrib/pngminim/README
index e17fe35..51d5a3c 100644
--- a/contrib/pngminim/README
+++ b/contrib/pngminim/README
@@ -1,4 +1,3 @@
-
This demonstrates the use of PNG_USER_CONFIG, pngusr.h and pngusr.dfa
to build minimal decoder, encoder, and progressive reader applications.
diff --git a/contrib/pngminus/CHANGES.txt b/contrib/pngminus/CHANGES.txt
index 85e590a..12535b1 100644
--- a/contrib/pngminus/CHANGES.txt
+++ b/contrib/pngminus/CHANGES.txt
@@ -1,4 +1,3 @@
-
pnm2png / png2pnm --- conversion from PBM/PGM/PPM-file to PNG-file
copyright (C) 1999-2019 by Willem van Schaik <willem at schaik dot com>
diff --git a/contrib/pngminus/LICENSE.txt b/contrib/pngminus/LICENSE.txt
index a8d4137..6bdb4f8 100644
--- a/contrib/pngminus/LICENSE.txt
+++ b/contrib/pngminus/LICENSE.txt
@@ -1,4 +1,3 @@
-
pnm2png / png2pnm --- conversion from PBM/PGM/PPM-file to PNG-file
copyright (C) 1999-2019 by Willem van Schaik <willem at schaik dot com>
diff --git a/contrib/pngsuite/README b/contrib/pngsuite/README
index d236b02..25f0f54 100644
--- a/contrib/pngsuite/README
+++ b/contrib/pngsuite/README
@@ -1,4 +1,3 @@
-
pngsuite
--------
Copyright (c) Willem van Schaik, 1999, 2011, 2012
diff --git a/contrib/pngsuite/interlaced/README b/contrib/pngsuite/interlaced/README
index f171eee..296fffb 100644
--- a/contrib/pngsuite/interlaced/README
+++ b/contrib/pngsuite/interlaced/README
@@ -1,2 +1 @@
-
These images fail the "pngimage-quick" and "pngimage-full" tests.
diff --git a/example.c b/example.c
index 3465fbb..dd53d8a 100644
--- a/example.c
+++ b/example.c
@@ -1,4 +1,3 @@
-
#if 0 /* in case someone actually tries to compile this */
/* example.c - an example of using libpng
diff --git a/intel/filter_sse2_intrinsics.c b/intel/filter_sse2_intrinsics.c
index d3c0fe9..2993f65 100644
--- a/intel/filter_sse2_intrinsics.c
+++ b/intel/filter_sse2_intrinsics.c
@@ -1,4 +1,3 @@
-
/* filter_sse2_intrinsics.c - SSE2 optimized filter functions
*
* Copyright (c) 2018 Cosmin Truta
diff --git a/intel/intel_init.c b/intel/intel_init.c
index 2f8168b..9e4610d 100644
--- a/intel/intel_init.c
+++ b/intel/intel_init.c
@@ -1,4 +1,3 @@
-
/* intel_init.c - SSE2 optimized filter functions
*
* Copyright (c) 2018 Cosmin Truta
diff --git a/mips/filter_msa_intrinsics.c b/mips/filter_msa_intrinsics.c
index 614898e..a294f55 100644
--- a/mips/filter_msa_intrinsics.c
+++ b/mips/filter_msa_intrinsics.c
@@ -1,4 +1,3 @@
-
/* filter_msa_intrinsics.c - MSA optimised filter functions
*
* Copyright (c) 2018-2024 Cosmin Truta
diff --git a/mips/mips_init.c b/mips/mips_init.c
index 5c6fa1d..143f0a3 100644
--- a/mips/mips_init.c
+++ b/mips/mips_init.c
@@ -1,4 +1,3 @@
-
/* mips_init.c - MSA optimised filter functions
*
* Copyright (c) 2018-2024 Cosmin Truta
diff --git a/png.c b/png.c
index 240db5a..8cd0179 100644
--- a/png.c
+++ b/png.c
@@ -1,4 +1,3 @@
-
/* png.c - location for general purpose libpng functions
*
* Copyright (c) 2018-2024 Cosmin Truta
diff --git a/png.h b/png.h
index 50834ad..f5aa4c3 100644
--- a/png.h
+++ b/png.h
@@ -1,4 +1,3 @@
-
/* png.h - header file for PNG reference library
*
* libpng version 1.6.45.git
diff --git a/pngconf.h b/pngconf.h
index 77e7c2a..6060644 100644
--- a/pngconf.h
+++ b/pngconf.h
@@ -1,4 +1,3 @@
-
/* pngconf.h - machine-configurable file for libpng
*
* libpng version 1.6.45.git
diff --git a/pngdebug.h b/pngdebug.h
index 00d5a45..ab9ea63 100644
--- a/pngdebug.h
+++ b/pngdebug.h
@@ -1,4 +1,3 @@
-
/* pngdebug.h - Debugging macros for libpng, also used in pngtest.c
*
* Copyright (c) 2018 Cosmin Truta
diff --git a/pngerror.c b/pngerror.c
index 1babf9f..aa0ae58 100644
--- a/pngerror.c
+++ b/pngerror.c
@@ -1,4 +1,3 @@
-
/* pngerror.c - stub functions for i/o and memory allocation
*
* Copyright (c) 2018-2024 Cosmin Truta
diff --git a/pngget.c b/pngget.c
index 1084b26..fac370d 100644
--- a/pngget.c
+++ b/pngget.c
@@ -1,4 +1,3 @@
-
/* pngget.c - retrieval of values from info struct
*
* Copyright (c) 2018-2024 Cosmin Truta
diff --git a/pnginfo.h b/pnginfo.h
index 1f98ded..ea4f115 100644
--- a/pnginfo.h
+++ b/pnginfo.h
@@ -1,4 +1,3 @@
-
/* pnginfo.h - header file for PNG reference library
*
* Copyright (c) 2018 Cosmin Truta
diff --git a/pngmem.c b/pngmem.c
index 09ed9c1..d391c13 100644
--- a/pngmem.c
+++ b/pngmem.c
@@ -1,4 +1,3 @@
-
/* pngmem.c - stub functions for memory allocation
*
* Copyright (c) 2018 Cosmin Truta
diff --git a/pngpread.c b/pngpread.c
index ffab19c..1a59fae 100644
--- a/pngpread.c
+++ b/pngpread.c
@@ -1,4 +1,3 @@
-
/* pngpread.c - read a png file in push mode
*
* Copyright (c) 2018-2024 Cosmin Truta
diff --git a/pngpriv.h b/pngpriv.h
index b59084e..62615be 100644
--- a/pngpriv.h
+++ b/pngpriv.h
@@ -1,4 +1,3 @@
-
/* pngpriv.h - private declarations for use inside libpng
*
* Copyright (c) 2018-2024 Cosmin Truta
diff --git a/pngread.c b/pngread.c
index 07a39df..b10b426 100644
--- a/pngread.c
+++ b/pngread.c
@@ -1,4 +1,3 @@
-
/* pngread.c - read a PNG file
*
* Copyright (c) 2018-2024 Cosmin Truta
diff --git a/pngrio.c b/pngrio.c
index 7946358..3b137f2 100644
--- a/pngrio.c
+++ b/pngrio.c
@@ -1,4 +1,3 @@
-
/* pngrio.c - functions for data input
*
* Copyright (c) 2018 Cosmin Truta
diff --git a/pngrtran.c b/pngrtran.c
index 1526123..1249066 100644
--- a/pngrtran.c
+++ b/pngrtran.c
@@ -1,4 +1,3 @@
-
/* pngrtran.c - transforms the data in a row for PNG readers
*
* Copyright (c) 2018-2024 Cosmin Truta
diff --git a/pngrutil.c b/pngrutil.c
index d31dc21..16a3c62 100644
--- a/pngrutil.c
+++ b/pngrutil.c
@@ -1,4 +1,3 @@
-
/* pngrutil.c - utilities to read a PNG file
*
* Copyright (c) 2018-2024 Cosmin Truta
diff --git a/pngset.c b/pngset.c
index eb1c8c7..b530f65 100644
--- a/pngset.c
+++ b/pngset.c
@@ -1,4 +1,3 @@
-
/* pngset.c - storage of image information into info struct
*
* Copyright (c) 2018-2024 Cosmin Truta
diff --git a/pngstruct.h b/pngstruct.h
index e591d94..7e919d0 100644
--- a/pngstruct.h
+++ b/pngstruct.h
@@ -1,4 +1,3 @@
-
/* pngstruct.h - header file for PNG reference library
*
* Copyright (c) 2018-2022 Cosmin Truta
diff --git a/pngtest.c b/pngtest.c
index e19ed41..bcf0f30 100644
--- a/pngtest.c
+++ b/pngtest.c
@@ -1,4 +1,3 @@
-
/* pngtest.c - a test program for libpng
*
* Copyright (c) 2018-2024 Cosmin Truta
diff --git a/pngtrans.c b/pngtrans.c
index 62cb21e..222b498 100644
--- a/pngtrans.c
+++ b/pngtrans.c
@@ -1,4 +1,3 @@
-
/* pngtrans.c - transforms the data in a row (used by both readers and writers)
*
* Copyright (c) 2018-2024 Cosmin Truta
diff --git a/pngwio.c b/pngwio.c
index 10e919d..38c9c00 100644
--- a/pngwio.c
+++ b/pngwio.c
@@ -1,4 +1,3 @@
-
/* pngwio.c - functions for data output
*
* Copyright (c) 2018 Cosmin Truta
diff --git a/pngwrite.c b/pngwrite.c
index 77e412f..0ed6a55 100644
--- a/pngwrite.c
+++ b/pngwrite.c
@@ -1,4 +1,3 @@
-
/* pngwrite.c - general routines to write a PNG file
*
* Copyright (c) 2018-2024 Cosmin Truta
diff --git a/pngwtran.c b/pngwtran.c
index 49a13c1..a208470 100644
--- a/pngwtran.c
+++ b/pngwtran.c
@@ -1,4 +1,3 @@
-
/* pngwtran.c - transforms the data in a row for PNG writers
*
* Copyright (c) 2018 Cosmin Truta
diff --git a/pngwutil.c b/pngwutil.c
index 14cc4ce..9d73071 100644
--- a/pngwutil.c
+++ b/pngwutil.c
@@ -1,4 +1,3 @@
-
/* pngwutil.c - utilities to write a PNG file
*
* Copyright (c) 2018-2024 Cosmin Truta
diff --git a/powerpc/powerpc_init.c b/powerpc/powerpc_init.c
index 54426c5..9027480 100644
--- a/powerpc/powerpc_init.c
+++ b/powerpc/powerpc_init.c
@@ -1,4 +1,3 @@
-
/* powerpc_init.c - POWERPC optimised filter functions
*
* Copyright (c) 2018 Cosmin Truta
diff --git a/scripts/descrip.mms b/scripts/descrip.mms
index c440fc3..f0d0b48 100644
--- a/scripts/descrip.mms
+++ b/scripts/descrip.mms
@@ -1,4 +1,3 @@
-
cc_defs = /inc=$(ZLIBSRC)
c_deb =
diff --git a/scripts/intprefix.c b/scripts/intprefix.c
index 4085e54..3c9dc57 100644
--- a/scripts/intprefix.c
+++ b/scripts/intprefix.c
@@ -1,4 +1,3 @@
-
/* intprefix.c - generate an unprefixed internal symbol list
*
* Copyright (c) 2013-2014 Glenn Randers-Pehrson
diff --git a/scripts/libpng-config-body.in b/scripts/libpng-config-body.in
index b466432..181984b 100644
--- a/scripts/libpng-config-body.in
+++ b/scripts/libpng-config-body.in
@@ -1,4 +1,3 @@
-
usage()
{
cat <<EOF
diff --git a/scripts/prefix.c b/scripts/prefix.c
index 06576ae..8a39482 100644
--- a/scripts/prefix.c
+++ b/scripts/prefix.c
@@ -1,4 +1,3 @@
-
/* prefix.c - generate an unprefixed symbol list
*
* Copyright (c) 2013-2014 Glenn Randers-Pehrson
diff --git a/scripts/sym.c b/scripts/sym.c
index 7571de2..0749449 100644
--- a/scripts/sym.c
+++ b/scripts/sym.c
@@ -1,4 +1,3 @@
-
/* sym.c - define format of libpng.sym
*
* Copyright (c) 2011-2014 Glenn Randers-Pehrson
diff --git a/scripts/symbols.c b/scripts/symbols.c
index d51a830..d5bb1d0 100644
--- a/scripts/symbols.c
+++ b/scripts/symbols.c
@@ -1,4 +1,3 @@
-
/* symbols.c - find all exported symbols
*
* Copyright (c) 2011-2014 Glenn Randers-Pehrson
diff --git a/scripts/vers.c b/scripts/vers.c
index d749726..137749c 100644
--- a/scripts/vers.c
+++ b/scripts/vers.c
@@ -1,4 +1,3 @@
-
/* vers.c - define format of libpng.vers
*
* Copyright (c) 2011-2014 Glenn Randers-Pehrson