diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-07-07 22:02:05 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-07-07 22:02:05 +0200 |
commit | ee81fde4477409eaf8062434534fbdf404a33cc9 (patch) | |
tree | 37290a70b208912c5c8a509783a33fbda0418b43 /libvisio | |
parent | Don't hardcode -arch armv7 here, breaks build for simulator (diff) | |
download | core-ee81fde4477409eaf8062434534fbdf404a33cc9.tar.gz core-ee81fde4477409eaf8062434534fbdf404a33cc9.zip |
Uploading second alpha version of libvisio
Diffstat (limited to 'libvisio')
-rw-r--r-- | libvisio/libvisio-0.0.1-warnings.patch | 217 | ||||
-rw-r--r-- | libvisio/libvisio-0.0.2.patch (renamed from libvisio/libvisio-0.0.1.patch) | 4 | ||||
-rw-r--r-- | libvisio/libvisio-android.patch | 14 | ||||
-rw-r--r-- | libvisio/libvisio-mingw-cross.patch | 11 | ||||
-rw-r--r-- | libvisio/makefile.mk | 9 |
5 files changed, 5 insertions, 250 deletions
diff --git a/libvisio/libvisio-0.0.1-warnings.patch b/libvisio/libvisio-0.0.1-warnings.patch deleted file mode 100644 index 12b128f84096..000000000000 --- a/libvisio/libvisio-0.0.1-warnings.patch +++ /dev/null @@ -1,217 +0,0 @@ ---- misc/libvisio-0.0.1/src/lib/VSD11Parser.cpp 2011-06-23 16:38:31.000000000 +0200 -+++ misc/build/libvisio-0.0.1/src/lib/VSD11Parser.cpp 2011-06-23 19:21:13.365713910 +0200 -@@ -46,11 +46,10 @@ - return sColour; - } - --const struct libvisio::VSD11Parser::StreamHandler libvisio::VSD11Parser::streamHandlers[] = --{ -+const libvisio::VSD11Parser::StreamHandler libvisio::VSD11Parser::streamHandlers[] = { - {0xa, "Name", 0}, - {0xb, "Name Idx", 0}, -- {0x14, "Trailer, 0"}, -+ {0x14, "Trailer", 0}, - {0x15, "Page", &libvisio::VSD11Parser::handlePage}, - {0x16, "Colors", &libvisio::VSD11Parser::handleColours}, - {0x17, "??? seems to have no data", 0}, -@@ -58,7 +57,7 @@ - {0x1a, "Styles", 0}, - {0x1b, "??? saw 'Acrobat PDFWriter' string here", 0}, - {0x1c, "??? saw 'winspool.Acrobat PDFWriter.LPT1' string here", 0}, -- {0x1d, "Stencils"}, -+ {0x1d, "Stencils", 0}, - {0x1e, "Stencil Page (collection of Shapes, one collection per each stencil item)", 0}, - {0x20, "??? seems to have no data", 0}, - {0x21, "??? seems to have no data", 0}, -@@ -141,10 +140,10 @@ - ptrFormat = readU16(&trailerStream); - - int index = -1; -- for (int i = 0; (index < 0) && streamHandlers[i].type; i++) -+ for (int j = 0; (index < 0) && streamHandlers[j].type; j++) - { -- if (streamHandlers[i].type == ptrType) -- index = i; -+ if (streamHandlers[j].type == ptrType) -+ index = j; - } - - if (index < 0) -@@ -199,10 +198,10 @@ - ptrFormat = readU16(&stream); - - int index = -1; -- for (int i = 0; (index < 0) && streamHandlers[i].type; i++) -+ for (int j = 0; (index < 0) && streamHandlers[j].type; j++) - { -- if (streamHandlers[i].type == ptrType) -- index = i; -+ if (streamHandlers[j].type == ptrType) -+ index = j; - } - - if (index < 0) -@@ -225,8 +224,8 @@ - - bool compressed = ((ptrFormat & 2) == 2); - m_input->seek(ptrOffset, WPX_SEEK_SET); -- VSDInternalStream stream(m_input, ptrLength, compressed); -- (this->*streamHandler)(stream, painter); -+ VSDInternalStream tmpStream(m_input, ptrLength, compressed); -+ (this->*streamHandler)(tmpStream, painter); - } - } - } -@@ -234,7 +233,7 @@ - - void libvisio::VSD11Parser::handlePage(VSDInternalStream &stream, libwpg::WPGPaintInterface *painter) - { -- ChunkHeader header = {0}; -+ ChunkHeader header; - m_groupXForms.clear(); - - while (!stream.atEOS()) -@@ -294,11 +293,11 @@ - } - } - --void libvisio::VSD11Parser::handleColours(VSDInternalStream &stream, libwpg::WPGPaintInterface *painter) -+void libvisio::VSD11Parser::handleColours(VSDInternalStream &stream, libwpg::WPGPaintInterface * /*painter*/) - { - stream.seek(6, WPX_SEEK_SET); - unsigned int numColours = readU8(&stream); -- Colour tmpColour = {0}; -+ Colour tmpColour; - - stream.seek(1, WPX_SEEK_CUR); - -@@ -318,10 +317,10 @@ - WPXPropertyListVector path; - WPXPropertyList styleProps; - WPXPropertyListVector gradientProps; -- XForm xform = {0}; // Shape xform data -+ XForm xform; // Shape xform data - unsigned int foreignType = 0; // Tracks current foreign data type - unsigned int foreignFormat = 0; // Tracks foreign data format -- ChunkHeader header = {0}; -+ ChunkHeader header; - unsigned long tmpBytesRead = 0; - unsigned long streamPos = 0; - -@@ -378,7 +377,7 @@ - stream.seek(1, WPX_SEEK_CUR); - styleProps.insert("svg:stroke-width", m_scale*readDouble(&stream)); - stream.seek(1, WPX_SEEK_CUR); -- Colour c = {0}; -+ Colour c; - c.r = readU8(&stream); - c.g = readU8(&stream); - c.b = readU8(&stream); ---- misc/libvisio-0.0.1/src/lib/VSD11Parser.h 2011-06-23 16:38:31.000000000 +0200 -+++ misc/build/libvisio-0.0.1/src/lib/VSD11Parser.h 2011-06-23 18:34:24.733064592 +0200 -@@ -41,7 +41,7 @@ - - typedef void (VSD11Parser::*StreamMethod)(VSDInternalStream&, libwpg::WPGPaintInterface*); - struct StreamHandler { unsigned int type; const char *name; StreamMethod handler;}; -- static const struct StreamHandler streamHandlers[32]; -+ static const StreamHandler streamHandlers[]; - - typedef void (VSD11Parser::*ChunkMethod)(VSDInternalStream&, libwpg::WPGPaintInterface*); - struct ChunkHandler { unsigned int type; const char *name; ChunkMethod handler;}; ---- misc/libvisio-0.0.1/src/lib/VSD6Parser.cpp 2011-06-23 16:38:31.000000000 +0200 -+++ misc/build/libvisio-0.0.1/src/lib/VSD6Parser.cpp 2011-06-23 19:22:14.762503528 +0200 -@@ -26,19 +26,18 @@ - #include "VSD6Parser.h" - #include "VSDInternalStream.h" - --const struct libvisio::VSD6Parser::StreamHandler libvisio::VSD6Parser::handlers[] = --{ -+const libvisio::VSD6Parser::StreamHandler libvisio::VSD6Parser::handlers[] = { - {0xa, "Name", 0}, - {0xb, "Name Idx", 0}, -- {0x14, "Trailer, 0"}, -+ {0x14, "Trailer", 0}, - {0x15, "Page", &libvisio::VSD6Parser::handlePage}, -- {0x16, "Colors"}, -+ {0x16, "Colors", 0}, - {0x17, "??? seems to have no data", 0}, - {0x18, "FontFaces (ver.11)", 0}, - {0x1a, "Styles", 0}, - {0x1b, "??? saw 'Acrobat PDFWriter' string here", 0}, - {0x1c, "??? saw 'winspool.Acrobat PDFWriter.LPT1' string here", 0}, -- {0x1d, "Stencils"}, -+ {0x1d, "Stencils", 0}, - {0x1e, "Stencil Page (collection of Shapes, one collection per each stencil item)", 0}, - {0x20, "??? seems to have no data", 0}, - {0x21, "??? seems to have no data", 0}, -@@ -113,10 +112,10 @@ - ptrFormat = readU16(&trailerStream); - - int index = -1; -- for (int i = 0; (index < 0) && handlers[i].type; i++) -+ for (int j = 0; (index < 0) && handlers[j].type; j++) - { -- if (handlers[i].type == ptrType) -- index = i; -+ if (handlers[j].type == ptrType) -+ index = j; - } - - if (index < 0) -@@ -171,10 +170,10 @@ - ptrFormat = readU16(&stream); - - int index = -1; -- for (int i = 0; (index < 0) && handlers[i].type; i++) -+ for (int j = 0; (index < 0) && handlers[j].type; j++) - { -- if (handlers[i].type == ptrType) -- index = i; -+ if (handlers[j].type == ptrType) -+ index = j; - } - - if (index < 0) -@@ -197,8 +196,8 @@ - - bool compressed = ((ptrFormat & 2) == 2); - m_input->seek(ptrOffset, WPX_SEEK_SET); -- VSDInternalStream stream(m_input, ptrLength, compressed); -- (this->*streamHandler)(stream, painter); -+ VSDInternalStream tmpStream(m_input, ptrLength, compressed); -+ (this->*streamHandler)(tmpStream, painter); - } - } - } -@@ -207,7 +206,7 @@ - void libvisio::VSD6Parser::handlePage(VSDInternalStream &stream, libwpg::WPGPaintInterface *painter) - { - WPXPropertyList pageProps; -- XForm xform = {0}; // Tracks current xform data -+ XForm xform; // Tracks current xform data - unsigned int foreignType = 0; // Tracks current foreign data type - unsigned int foreignFormat = 0; // Tracks foreign data format - unsigned long tmpBytesRead = 0; ---- misc/libvisio-0.0.1/src/lib/VSD6Parser.h 2011-06-23 16:38:31.000000000 +0200 -+++ misc/build/libvisio-0.0.1/src/lib/VSD6Parser.h 2011-06-23 18:35:03.491206892 +0200 -@@ -41,7 +41,7 @@ - - typedef void (VSD6Parser::*Method)(VSDInternalStream&, libwpg::WPGPaintInterface*); - struct StreamHandler { unsigned int type; const char *name; Method handler;}; -- static const struct StreamHandler handlers[32]; -+ static const StreamHandler handlers[]; - void handlePages(VSDInternalStream &stream, libwpg::WPGPaintInterface *painter); - void handlePage(VSDInternalStream &stream, libwpg::WPGPaintInterface *painter); - }; ---- misc/libvisio-0.0.1/src/lib/VSDXParser.h 2011-06-23 16:38:31.000000000 +0200 -+++ misc/build/libvisio-0.0.1/src/lib/VSDXParser.h 2011-06-23 19:18:51.492069602 +0200 -@@ -53,6 +53,9 @@ - bool flipY; - double x; - double y; -+ XForm() : pinX(0.0), pinY(0.0), height(0.0), width(0.0), -+ pinLocX(0.0), pinLocY(0.0), angle(0.0), -+ flipX(false), flipY(false), x(0.0), y(0.0) {} - }; - - bool m_isPageStarted; diff --git a/libvisio/libvisio-0.0.1.patch b/libvisio/libvisio-0.0.2.patch index b00f54fa065c..8dfba6c2465c 100644 --- a/libvisio/libvisio-0.0.1.patch +++ b/libvisio/libvisio-0.0.2.patch @@ -1,5 +1,5 @@ ---- misc/libvisio-0.0.1/src/lib/libvisio_utils.h 2011-06-23 16:38:31.000000000 +0200 -+++ misc/build/libvisio-0.0.1/src/lib/libvisio_utils.h 2011-06-23 17:41:15.259239694 +0200 +--- misc/libvisio-0.0.2/src/lib/libvisio_utils.h ++++ misc/build/libvisio-0.0.2/src/lib/libvisio_utils.h @@ -31,17 +31,8 @@ #else diff --git a/libvisio/libvisio-android.patch b/libvisio/libvisio-android.patch deleted file mode 100644 index 74ff767041dd..000000000000 --- a/libvisio/libvisio-android.patch +++ /dev/null @@ -1,14 +0,0 @@ ---- misc/build/libvisio-0.0.1/src/lib/VSDSVGGenerator.cpp -+++ misc/build/libvisio-0.0.1/src/lib/VSDSVGGenerator.cpp -@@ -33,7 +33,11 @@ - { - std::ostringstream tempStream; - tempStream << value; -+#ifndef __ANDROID__ - std::string decimalPoint(localeconv()->decimal_point); -+#else -+ std::string decimalPoint("."); -+#endif - if ((decimalPoint.size() == 0) || (decimalPoint == ".")) - return tempStream.str(); - std::string stringValue(tempStream.str()); diff --git a/libvisio/libvisio-mingw-cross.patch b/libvisio/libvisio-mingw-cross.patch deleted file mode 100644 index 957d5058ed13..000000000000 --- a/libvisio/libvisio-mingw-cross.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- misc/build/libvisio-0.0.1/src/lib/makefile.mk -+++ misc/build/libvisio-0.0.1/src/lib/makefile.mk -@@ -9,7 +9,7 @@ - - .INCLUDE : settings.mk - --.IF "$(GUI)"=="WNT" -+.IF "$(COM)"=="MSC" - CFLAGS+=-GR - .ENDIF - .IF "$(COM)"=="GCC" diff --git a/libvisio/makefile.mk b/libvisio/makefile.mk index d3bcfe678bf7..33b2a5e2fbfc 100644 --- a/libvisio/makefile.mk +++ b/libvisio/makefile.mk @@ -54,14 +54,11 @@ INCPRE+=$(LIBWPG_CFLAGS) INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpg .ENDIF -TARFILE_NAME=libvisio-0.0.1 -TARFILE_MD5=4bb835ea2225c8f5f6c2b2e63d25993c +TARFILE_NAME=libvisio-0.0.2 +TARFILE_MD5=979a3f3da4dc176e80fe8c6b759cb7f4 PATCH_FILES=\ - libvisio-0.0.1.patch \ - libvisio-0.0.1-warnings.patch \ - libvisio-mingw-cross.patch \ - libvisio-android.patch + libvisio-0.0.2.patch BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS) |