andreas-kupries / miniz

Automatically exported from code.google.com/p/miniz
0 stars 0 forks source link

Example 6 completely broken #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

All examples compile except example 6.
It seems you never tested it.

1.)
For example 6 is missing the VCPROJ file.

2.)
In VS2010 it throws a lot of errors.

1>e:\workspace\miniz\example6.c(36): warning C4244: '=' : conversion from 'int' 
to 'uint8', possible loss of data
1>e:\workspace\miniz\example6.c(39): error C2143: syntax error : missing ';' 
before 'type'
1>e:\workspace\miniz\example6.c(40): error C2143: syntax error : missing ';' 
before 'type'
1>e:\workspace\miniz\example6.c(41): error C2143: syntax error : missing ';' 
before 'type'
1>e:\workspace\miniz\example6.c(45): error C2065: 'h' : undeclared identifier
1>e:\workspace\miniz\example6.c(46): error C2065: 'c' : undeclared identifier
1>e:\workspace\miniz\example6.c(46): warning C4244: '=' : conversion from 'int' 
to 'uint8', possible loss of data
1>e:\workspace\miniz\example6.c(46): error C2065: 'X' : undeclared identifier
1>e:\workspace\miniz\example6.c(46): warning C4244: '=' : conversion from 'int' 
to 'uint8', possible loss of data
1>e:\workspace\miniz\example6.c(47): error C2065: 'X' : undeclared identifier
1>e:\workspace\miniz\example6.c(47): warning C4244: '=' : conversion from 'int' 
to 'uint8', possible loss of data
1>e:\workspace\miniz\example6.c(47): error C2065: 'c' : undeclared identifier
1>e:\workspace\miniz\example6.c(47): warning C4244: '=' : conversion from 'int' 
to 'uint8', possible loss of data
1>e:\workspace\miniz\example6.c(48): error C2065: 'c' : undeclared identifier
1>e:\workspace\miniz\example6.c(48): warning C4244: '=' : conversion from 'int' 
to 'uint8', possible loss of data
1>e:\workspace\miniz\example6.c(48): error C2065: 'X' : undeclared identifier
1>e:\workspace\miniz\example6.c(48): warning C4244: '=' : conversion from 'int' 
to 'uint8', possible loss of data
1>e:\workspace\miniz\example6.c(49): error C2065: 'X' : undeclared identifier
1>e:\workspace\miniz\example6.c(49): warning C4244: '=' : conversion from 'int' 
to 'uint8', possible loss of data
1>e:\workspace\miniz\example6.c(49): error C2065: 'c' : undeclared identifier
1>e:\workspace\miniz\example6.c(49): warning C4244: '=' : conversion from 'int' 
to 'uint8', possible loss of data
1>e:\workspace\miniz\example6.c(50): error C2065: 'X' : undeclared identifier
1>e:\workspace\miniz\example6.c(50): warning C4244: '=' : conversion from 'int' 
to 'uint8', possible loss of data
1>e:\workspace\miniz\example6.c(50): error C2065: 'c' : undeclared identifier
1>e:\workspace\miniz\example6.c(50): warning C4244: '=' : conversion from 'int' 
to 'uint8', possible loss of data
1>e:\workspace\miniz\example6.c(51): error C2065: 'c' : undeclared identifier
1>e:\workspace\miniz\example6.c(51): warning C4244: '=' : conversion from 'int' 
to 'uint8', possible loss of data
1>e:\workspace\miniz\example6.c(51): error C2065: 'X' : undeclared identifier
1>e:\workspace\miniz\example6.c(51): warning C4244: '=' : conversion from 'int' 
to 'uint8', possible loss of data
1>e:\workspace\miniz\example6.c(60): error C2143: syntax error : missing ';' 
before 'const'
1>e:\workspace\miniz\example6.c(61): error C2143: syntax error : missing ';' 
before 'const'
1>e:\workspace\miniz\example6.c(64): error C2143: syntax error : missing ';' 
before 'type'
1>e:\workspace\miniz\example6.c(66): error C2143: syntax error : missing ';' 
before 'type'
1>e:\workspace\miniz\example6.c(67): error C2143: syntax error : missing ';' 
before 'const'
1>e:\workspace\miniz\example6.c(68): error C2143: syntax error : missing ';' 
before 'const'
1>e:\workspace\miniz\example6.c(69): error C2143: syntax error : missing ';' 
before 'const'
1>e:\workspace\miniz\example6.c(70): error C2143: syntax error : missing ';' 
before 'const'
1>e:\workspace\miniz\example6.c(72): error C2143: syntax error : missing ';' 
before 'type'
1>e:\workspace\miniz\example6.c(73): error C2143: syntax error : missing ';' 
before 'type'
1>e:\workspace\miniz\example6.c(76): error C2143: syntax error : missing ';' 
before 'type'
1>e:\workspace\miniz\example6.c(77): error C2143: syntax error : missing ';' 
before 'type'
1>e:\workspace\miniz\example6.c(79): error C2143: syntax error : missing ';' 
before 'type'
1>e:\workspace\miniz\example6.c(80): error C2143: syntax error : missing ';' 
before 'const'
1>e:\workspace\miniz\example6.c(83): error C2143: syntax error : missing ';' 
before 'const'
1>e:\workspace\miniz\example6.c(84): error C2143: syntax error : missing ';' 
before 'type'
1>e:\workspace\miniz\example6.c(86): error C2275: 'uint8' : illegal use of this 
type as an expression
1>e:\workspace\miniz\example6.c(86): error C2065: 'pImage' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(86): error C2065: 'iXmax' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(86): error C2065: 'iYmax' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(89): error C2143: syntax error : missing ';' 
before 'type'
1>e:\workspace\miniz\example6.c(91): error C2143: syntax error : missing ';' 
before 'type'
1>e:\workspace\miniz\example6.c(93): error C2065: 'iY' : undeclared identifier
1>e:\workspace\miniz\example6.c(93): error C2065: 'iY' : undeclared identifier
1>e:\workspace\miniz\example6.c(93): error C2065: 'iYmax' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(93): error C2065: 'iY' : undeclared identifier
1>e:\workspace\miniz\example6.c(95): error C2065: 'Cy' : undeclared identifier
1>e:\workspace\miniz\example6.c(95): error C2065: 'CyMin' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(95): error C2065: 'iY' : undeclared identifier
1>e:\workspace\miniz\example6.c(95): error C2065: 'PixelHeight' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(96): error C2065: 'Cy' : undeclared identifier
1>e:\workspace\miniz\example6.c(96): error C2065: 'PixelHeight' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(97): error C2065: 'Cy' : undeclared identifier
1>e:\workspace\miniz\example6.c(97): warning C4244: '=' : conversion from 
'double' to 'int', possible loss of data
1>e:\workspace\miniz\example6.c(99): error C2065: 'iX' : undeclared identifier
1>e:\workspace\miniz\example6.c(99): error C2065: 'iX' : undeclared identifier
1>e:\workspace\miniz\example6.c(99): error C2065: 'iXmax' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(99): error C2065: 'iX' : undeclared identifier
1>e:\workspace\miniz\example6.c(101): error C2065: 'pImage' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(101): error C2065: 'iX' : undeclared identifier
1>e:\workspace\miniz\example6.c(101): error C2065: 'iY' : undeclared identifier
1>e:\workspace\miniz\example6.c(101): error C2065: 'iXmax' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(101): warning C4047: 'initializing' : 'uint8 *' 
differs in levels of indirection from 'int'
1>e:\workspace\miniz\example6.c(103): error C2065: 'Cx' : undeclared identifier
1>e:\workspace\miniz\example6.c(103): error C2065: 'CxMin' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(103): error C2065: 'iX' : undeclared identifier
1>e:\workspace\miniz\example6.c(103): error C2065: 'PixelWidth' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(106): error C2065: 'Zx' : undeclared identifier
1>e:\workspace\miniz\example6.c(106): warning C4244: '=' : conversion from 
'double' to 'int', possible loss of data
1>e:\workspace\miniz\example6.c(107): error C2065: 'Zy' : undeclared identifier
1>e:\workspace\miniz\example6.c(107): warning C4244: '=' : conversion from 
'double' to 'int', possible loss of data
1>e:\workspace\miniz\example6.c(108): error C2065: 'Zx2' : undeclared identifier
1>e:\workspace\miniz\example6.c(108): error C2065: 'Zx' : undeclared identifier
1>e:\workspace\miniz\example6.c(108): error C2065: 'Zx' : undeclared identifier
1>e:\workspace\miniz\example6.c(109): error C2065: 'Zy2' : undeclared identifier
1>e:\workspace\miniz\example6.c(109): error C2065: 'Zy' : undeclared identifier
1>e:\workspace\miniz\example6.c(109): error C2065: 'Zy' : undeclared identifier
1>e:\workspace\miniz\example6.c(111): error C2065: 'Iteration' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(111): error C2065: 'Iteration' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(111): error C2065: 'IterationMax' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(111): error C2065: 'Zx2' : undeclared identifier
1>e:\workspace\miniz\example6.c(111): error C2065: 'Zy2' : undeclared identifier
1>e:\workspace\miniz\example6.c(111): error C2065: 'ER2' : undeclared identifier
1>e:\workspace\miniz\example6.c(111): error C2065: 'Iteration' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(113): error C2065: 'Zy' : undeclared identifier
1>e:\workspace\miniz\example6.c(113): error C2065: 'Zx' : undeclared identifier
1>e:\workspace\miniz\example6.c(113): error C2065: 'Zy' : undeclared identifier
1>e:\workspace\miniz\example6.c(113): error C2065: 'Cy' : undeclared identifier
1>e:\workspace\miniz\example6.c(114): error C2065: 'Zx' : undeclared identifier
1>e:\workspace\miniz\example6.c(114): error C2065: 'Zx2' : undeclared identifier
1>e:\workspace\miniz\example6.c(114): error C2065: 'Zy2' : undeclared identifier
1>e:\workspace\miniz\example6.c(114): error C2065: 'Cx' : undeclared identifier
1>e:\workspace\miniz\example6.c(115): error C2065: 'Zx2' : undeclared identifier
1>e:\workspace\miniz\example6.c(115): error C2065: 'Zx' : undeclared identifier
1>e:\workspace\miniz\example6.c(115): error C2065: 'Zx' : undeclared identifier
1>e:\workspace\miniz\example6.c(116): error C2065: 'Zy2' : undeclared identifier
1>e:\workspace\miniz\example6.c(116): error C2065: 'Zy' : undeclared identifier
1>e:\workspace\miniz\example6.c(116): error C2065: 'Zy' : undeclared identifier
1>e:\workspace\miniz\example6.c(119): error C2065: 'Iteration' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(120): error C2065: 'Iteration' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(120): warning C4333: '>>' : right shift by too 
large amount, data loss
1>e:\workspace\miniz\example6.c(123): error C2065: 'Iteration' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(123): error C2065: 'MinIter' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(124): error C2065: 'MinIter' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(124): error C2065: 'Iteration' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(125): error C2065: 'Iteration' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(125): error C2065: 'MaxIter' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(126): error C2065: 'MaxIter' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(126): error C2065: 'Iteration' : undeclared 
identifier
1>e:\workspace\miniz\example6.c(130): error C2065: 'iY' : undeclared identifier
1>e:\workspace\miniz\example6.c(130): fatal error C1003: error count exceeds 
100; stopping compilation
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Original issue reported on code.google.com by smaragds...@gmail.com on 18 Apr 2015 at 3:46

GoogleCodeExporter commented 9 years ago
Thanks smaragdsof - I'm wondering how I missed that. This test did work when I 
originally wrote it, and I remember testing it. When I move miniz to github 
I'll fix this.

Original comment by richge...@gmail.com on 19 Apr 2015 at 12:44