diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8073ed0..e1a5537 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,4 +1,3 @@ - SET (LIBGD_SRC_FILES bmp.h gd.c diff --git a/src/COPYING b/src/COPYING index 6a59667..a1e4c78 100644 --- a/src/COPYING +++ b/src/COPYING @@ -1,4 +1,3 @@ - Portions copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002 by Cold Spring Harbor Laboratory. Funded under Grant P41-RR02188 by the National Institutes of Health. diff --git a/src/fontsizetest.c b/src/fontsizetest.c index c205899..c32c777 100644 --- a/src/fontsizetest.c +++ b/src/fontsizetest.c @@ -1,4 +1,3 @@ - #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/src/fontwheeltest.c b/src/fontwheeltest.c index 82a6fd3..a225810 100644 --- a/src/fontwheeltest.c +++ b/src/fontwheeltest.c @@ -1,4 +1,3 @@ - #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/src/gd2copypal.c b/src/gd2copypal.c index eaa67b5..5a46755 100644 --- a/src/gd2copypal.c +++ b/src/gd2copypal.c @@ -1,4 +1,3 @@ - #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/src/gd2topng.c b/src/gd2topng.c index fc8282f..5e8ca87 100644 --- a/src/gd2topng.c +++ b/src/gd2topng.c @@ -1,4 +1,3 @@ - #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/src/gd_nnquant.h b/src/gd_nnquant.h index 348a4db..11643b7 100644 --- a/src/gd_nnquant.h +++ b/src/gd_nnquant.h @@ -1,4 +1,3 @@ - /* maximum number of colours that can be used. actual number is now passed to initcolors */ #define MAXNETSIZE 256 diff --git a/src/gddemo.c b/src/gddemo.c index 9818e87..69d9d35 100644 --- a/src/gddemo.c +++ b/src/gddemo.c @@ -1,4 +1,3 @@ - #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/src/gdfontg.c b/src/gdfontg.c index 2adf6da..2fe7166 100644 --- a/src/gdfontg.c +++ b/src/gdfontg.c @@ -1,5 +1,3 @@ - - /* This is a header file for gd font, generated using bdftogd version 0.51 by Jan Pazdziora, adelton@fi.muni.cz diff --git a/src/gdfontl.c b/src/gdfontl.c index 97f7a65..f7ce272 100644 --- a/src/gdfontl.c +++ b/src/gdfontl.c @@ -1,5 +1,3 @@ - - /* This is a header file for gd font, generated using bdftogd version 0.5 by Jan Pazdziora, adelton@fi.muni.cz diff --git a/src/gdfontmb.c b/src/gdfontmb.c index debee4e..ed0f1ac 100644 --- a/src/gdfontmb.c +++ b/src/gdfontmb.c @@ -1,5 +1,3 @@ - - /* This is a header file for gd font, generated using bdftogd version 0.5 by Jan Pazdziora, adelton@fi.muni.cz diff --git a/src/gdfontt.c b/src/gdfontt.c index e7bb345..1fb96e1 100644 --- a/src/gdfontt.c +++ b/src/gdfontt.c @@ -1,5 +1,3 @@ - - /* This is a header file for gd font, generated using bdftogd version 0.5 by Jan Pazdziora, adelton@fi.muni.cz diff --git a/src/gdft.c b/src/gdft.c index c84f59a..ab60764 100644 --- a/src/gdft.c +++ b/src/gdft.c @@ -1,4 +1,3 @@ - /********************************************/ /* gd interface to freetype library */ /* */ diff --git a/src/gdparttopng.c b/src/gdparttopng.c index 4b07d29..4bf2fc8 100644 --- a/src/gdparttopng.c +++ b/src/gdparttopng.c @@ -1,4 +1,3 @@ - #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/src/gdtables.c b/src/gdtables.c index 7753b21..d368b8d 100644 --- a/src/gdtables.c +++ b/src/gdtables.c @@ -1,4 +1,3 @@ - const int gdCosT[] = { 1024, 1023, diff --git a/src/gdtestft.c b/src/gdtestft.c index 7e0e7b2..4c82a83 100644 --- a/src/gdtestft.c +++ b/src/gdtestft.c @@ -1,4 +1,3 @@ - #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/src/gdtopng.c b/src/gdtopng.c index 388e3a9..c937558 100644 --- a/src/gdtopng.c +++ b/src/gdtopng.c @@ -1,4 +1,3 @@ - #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/src/pngtogd2.c b/src/pngtogd2.c index 53a81d0..20fbee2 100644 --- a/src/pngtogd2.c +++ b/src/pngtogd2.c @@ -1,4 +1,3 @@ - #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/src/testac.c b/src/testac.c index 8893cdd..bea4308 100644 --- a/src/testac.c +++ b/src/testac.c @@ -1,4 +1,3 @@ - #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 7eef4bf..4dc0c00 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,4 +1,3 @@ - if (BUILD_TEST) SET(DART_TESTING_TIMEOUT 5) diff --git a/tests/source/whitespace.py b/tests/source/whitespace.py index b08415b..2d979fd 100755 --- a/tests/source/whitespace.py +++ b/tests/source/whitespace.py @@ -14,17 +14,21 @@ import sys def check(path): with open(path, 'rb') as fp: # Skip 0 byte files. - fp.seek(0, 2) - size = fp.tell() - if size == 0: + first_byte = fp.read(1) + if not first_byte: return 0 + # Check for leading blank lines. + if b'\n' == first_byte: + print('%s: trim leading blank lines' % (path,), file=sys.stderr) + return 1 + # Check for missing trailing new line. fp.seek(-1, 2) if b'\n' != fp.read(1): print('%s: missing trailing new line' % (path,), file=sys.stderr) return 1 - elif size == 1: + elif fp.tell() == 1: print('%s: dummy file' % (path,), file=sys.stderr) return 1 diff --git a/windows/msys/Makefile b/windows/msys/Makefile index f572fbe..167986b 100644 --- a/windows/msys/Makefile +++ b/windows/msys/Makefile @@ -1,4 +1,3 @@ - # Simple makefile for building and testing libgd under MSYS/MinGW on # Windows diff --git a/windows/msys/README.MSYS.md b/windows/msys/README.MSYS.md index d17011f..87d0b8d 100644 --- a/windows/msys/README.MSYS.md +++ b/windows/msys/README.MSYS.md @@ -1,4 +1,3 @@ - # MSYS Fallback Makefile This is a simple, straightforward Makefile for building LibGD with