[Libreoffice-commits] .: libvisio/libvisio-0.0.1.patch libvisio/libvisio-0.0.1-warnings.patch libvisio/libvisio-0.0.2.patch libvisio/libvisio-android.patch libvisio/libvisio-mingw-cross.patch libvisio/makefile.mk

Fridrich Strba fridrich at kemper.freedesktop.org
Thu Jul 7 22:05:56 CEST 2011


 libvisio/libvisio-0.0.1-warnings.patch |  217 ---------------------------------
 libvisio/libvisio-0.0.1.patch          |   20 ---
 libvisio/libvisio-0.0.2.patch          |   20 +++
 libvisio/libvisio-android.patch        |   14 --
 libvisio/libvisio-mingw-cross.patch    |   11 -
 libvisio/makefile.mk                   |    9 -
 6 files changed, 23 insertions(+), 268 deletions(-)

New commits:
commit 17eb0edec19508f59ffed84d7b52de6379ab08d5
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date:   Thu Jul 7 22:02:05 2011 +0200

    Uploading second alpha version of libvisio

diff --git a/libvisio/libvisio-0.0.1-warnings.patch b/libvisio/libvisio-0.0.1-warnings.patch
deleted file mode 100644
index 12b128f..0000000
--- 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.1.patch
deleted file mode 100644
index b00f54f..0000000
--- a/libvisio/libvisio-0.0.1.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- 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
-@@ -31,17 +31,8 @@
- 
- #else
- 
--#ifdef HAVE_CONFIG_H
--#include <config.h>
--#endif
--
--#ifdef HAVE_STDINT_H
- #include <stdint.h>
--#endif
--
--#ifdef HAVE_INTTYPES_H
- #include <inttypes.h>
--#endif
- 
- #endif
- 
diff --git a/libvisio/libvisio-0.0.2.patch b/libvisio/libvisio-0.0.2.patch
new file mode 100644
index 0000000..8dfba6c
--- /dev/null
+++ b/libvisio/libvisio-0.0.2.patch
@@ -0,0 +1,20 @@
+--- 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
+ 
+-#ifdef HAVE_CONFIG_H
+-#include <config.h>
+-#endif
+-
+-#ifdef HAVE_STDINT_H
+ #include <stdint.h>
+-#endif
+-
+-#ifdef HAVE_INTTYPES_H
+ #include <inttypes.h>
+-#endif
+ 
+ #endif
+ 
diff --git a/libvisio/libvisio-android.patch b/libvisio/libvisio-android.patch
deleted file mode 100644
index 74ff767..0000000
--- 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 957d505..0000000
--- 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 d3bcfe6..33b2a5e 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)


More information about the Libreoffice-commits mailing list