diff options
-rw-r--r-- | examples/example_4bit_palette.cpp (renamed from example_4bit_palette.cpp) | 0 | ||||
-rw-r--r-- | examples/example_bmp2png.cpp (renamed from example_bmp2png.cpp) | 0 | ||||
-rw-r--r-- | examples/example_decode.c (renamed from example_decode.c) | 0 | ||||
-rw-r--r-- | examples/example_decode.cpp (renamed from example_decode.cpp) | 0 | ||||
-rw-r--r-- | examples/example_encode.c (renamed from example_encode.c) | 0 | ||||
-rw-r--r-- | examples/example_encode.cpp (renamed from example_encode.cpp) | 0 | ||||
-rw-r--r-- | examples/example_gzip.cpp (renamed from example_gzip.cpp) | 0 | ||||
-rw-r--r-- | examples/example_opengl.cpp (renamed from example_opengl.cpp) | 0 | ||||
-rw-r--r-- | examples/example_optimize_png.cpp (renamed from example_optimize_png.cpp) | 0 | ||||
-rw-r--r-- | examples/example_png2bmp.cpp (renamed from example_png2bmp.cpp) | 0 | ||||
-rw-r--r-- | examples/example_png_info.cpp (renamed from example_png_info.cpp) | 0 | ||||
-rw-r--r-- | examples/example_reencode.cpp (renamed from example_reencode.cpp) | 0 | ||||
-rw-r--r-- | examples/example_sdl.c (renamed from example_sdl.c) | 0 | ||||
-rw-r--r-- | examples/example_sdl.cpp (renamed from example_sdl.cpp) | 0 | ||||
-rw-r--r-- | lodepng_unittest.cpp | 14 |
15 files changed, 6 insertions, 8 deletions
diff --git a/example_4bit_palette.cpp b/examples/example_4bit_palette.cpp index f495cca..f495cca 100644 --- a/example_4bit_palette.cpp +++ b/examples/example_4bit_palette.cpp diff --git a/example_bmp2png.cpp b/examples/example_bmp2png.cpp index c6bdd24..c6bdd24 100644 --- a/example_bmp2png.cpp +++ b/examples/example_bmp2png.cpp diff --git a/example_decode.c b/examples/example_decode.c index 1ecec3d..1ecec3d 100644 --- a/example_decode.c +++ b/examples/example_decode.c diff --git a/example_decode.cpp b/examples/example_decode.cpp index 4eee6b8..4eee6b8 100644 --- a/example_decode.cpp +++ b/examples/example_decode.cpp diff --git a/example_encode.c b/examples/example_encode.c index 0e0f8bf..0e0f8bf 100644 --- a/example_encode.c +++ b/examples/example_encode.c diff --git a/example_encode.cpp b/examples/example_encode.cpp index 31dd0b8..31dd0b8 100644 --- a/example_encode.cpp +++ b/examples/example_encode.cpp diff --git a/example_gzip.cpp b/examples/example_gzip.cpp index b2ddf17..b2ddf17 100644 --- a/example_gzip.cpp +++ b/examples/example_gzip.cpp diff --git a/example_opengl.cpp b/examples/example_opengl.cpp index 1879864..1879864 100644 --- a/example_opengl.cpp +++ b/examples/example_opengl.cpp diff --git a/example_optimize_png.cpp b/examples/example_optimize_png.cpp index ecf25cf..ecf25cf 100644 --- a/example_optimize_png.cpp +++ b/examples/example_optimize_png.cpp diff --git a/example_png2bmp.cpp b/examples/example_png2bmp.cpp index 3fd8328..3fd8328 100644 --- a/example_png2bmp.cpp +++ b/examples/example_png2bmp.cpp diff --git a/example_png_info.cpp b/examples/example_png_info.cpp index cd2eca6..cd2eca6 100644 --- a/example_png_info.cpp +++ b/examples/example_png_info.cpp diff --git a/example_reencode.cpp b/examples/example_reencode.cpp index d438612..d438612 100644 --- a/example_reencode.cpp +++ b/examples/example_reencode.cpp diff --git a/example_sdl.c b/examples/example_sdl.c index e4ae3de..e4ae3de 100644 --- a/example_sdl.c +++ b/examples/example_sdl.c diff --git a/example_sdl.cpp b/examples/example_sdl.cpp index 0c68ef5..0c68ef5 100644 --- a/example_sdl.cpp +++ b/examples/example_sdl.cpp diff --git a/lodepng_unittest.cpp b/lodepng_unittest.cpp index f2052fa..032dc07 100644 --- a/lodepng_unittest.cpp +++ b/lodepng_unittest.cpp @@ -32,14 +32,14 @@ Testing instructions: g++ lodepng.cpp lodepng_util.cpp lodepng_unittest.cpp -Wall -Wextra -Wshadow -pedantic -ansi -O3 && ./a.out *) Compile with pure ISO C90 and all warnings: -mv lodepng.cpp lodepng.c ; gcc lodepng.c example_decode.c -ansi -pedantic -Wall -Wextra -O3 ; mv lodepng.c lodepng.cpp +mv lodepng.cpp lodepng.c ; gcc -I ./ lodepng.c examples/example_decode.c -ansi -pedantic -Wall -Wextra -O3 ; mv lodepng.c lodepng.cpp *) try lodepng_benchmark.cpp g++ lodepng.cpp lodepng_benchmark.cpp -Wall -Wextra -pedantic -ansi -lSDL -O3 && ./a.out *) Check if all examples compile without warnings: -g++ lodepng.cpp example*.cpp -W -Wall -ansi -pedantic -O3 -c -mv lodepng.cpp lodepng.c ; gcc lodepng.c example*.c -W -Wall -ansi -pedantic -O3 -c ; mv lodepng.c lodepng.cpp +g++ -I ./ lodepng.cpp examples/''*.cpp -W -Wall -ansi -pedantic -O3 -c +mv lodepng.cpp lodepng.c ; gcc -I ./ lodepng.c examples/''*.c -W -Wall -ansi -pedantic -O3 -c ; mv lodepng.c lodepng.cpp *) Check pngdetail.cpp: g++ lodepng.cpp lodepng_util.cpp pngdetail.cpp -W -Wall -ansi -pedantic -O3 -o pngdetail @@ -79,11 +79,9 @@ cat lodepng.cpp | grep iostream *) check year in copyright message at top of all files as well as at bottom of lodepng.h -*) check example_sdl.cpp with the png test suite images (the "x" ones are expected to show error) -g++ lodepng.cpp example_sdl.cpp -Wall -Wextra -pedantic -ansi -O3 -lSDL -o showpng -*/ -// ./showpng testdata/PngSuite/*.png -/* +*) check examples/sdl.cpp with the png test suite images (the "x" ones are expected to show error) +g++ -I ./ lodepng.cpp examples/example_sdl.cpp -Wall -Wextra -pedantic -ansi -O3 -lSDL -o showpng +./showpng testdata/PngSuite/''*.png *) strip trailing spaces and ensure consistent newlines |