]> git.pld-linux.org Git - packages/djvulibre.git/commitdiff
- fixed upstream
authorfreetz <freetz@pld-linux.org>
Tue, 16 May 2006 17:08:39 +0000 (17:08 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    djvulibre-c++.patch -> 1.3

djvulibre-c++.patch [deleted file]

diff --git a/djvulibre-c++.patch b/djvulibre-c++.patch
deleted file mode 100644 (file)
index 1d2965f..0000000
+++ /dev/null
@@ -1,214 +0,0 @@
-diff -urN djvulibre-3.5.16.orig/libdjvu/ByteStream.h djvulibre-3.5.16/libdjvu/ByteStream.h
---- djvulibre-3.5.16.orig/libdjvu/ByteStream.h 2003-11-07 23:08:20.000000000 +0100
-+++ djvulibre-3.5.16/libdjvu/ByteStream.h      2005-12-11 12:39:57.000000000 +0100
-@@ -242,7 +242,7 @@
-       and writes it to the specified stream. */
-   void formatmessage( const char *fmt, ... );
-   /** Looks up the message and writes it to the specified stream. */
--  void ByteStream::writemessage( const char *message );
-+  void writemessage( const char *message );
-   /** Writes a one-byte integer to a ByteStream. */
-   void write8 (unsigned int card8);
-   /** Writes a two-bytes integer to a ByteStream.
-diff -urN djvulibre-3.5.16.orig/libdjvu/GContainer.h djvulibre-3.5.16/libdjvu/GContainer.h
---- djvulibre-3.5.16.orig/libdjvu/GContainer.h 2004-05-13 17:16:34.000000000 +0200
-+++ djvulibre-3.5.16/libdjvu/GContainer.h      2005-12-11 12:39:53.000000000 +0100
-@@ -969,6 +969,92 @@
- // ------------------------------------------------------------
-+// HASH FUNCTIONS
-+// ------------------------------------------------------------
-+
-+
-+/** @name Hash functions
-+    These functions let you use template class \Ref{GMap} with the
-+    corresponding elementary types. The returned hash code may be reduced to
-+    an arbitrary range by computing its remainder modulo the upper bound of
-+    the range.
-+    @memo Hash functions for elementary types. */
-+//@{
-+
-+/** Hashing function (unsigned int). */
-+static inline unsigned int 
-+hash(const unsigned int & x) 
-+{ 
-+  return x; 
-+}
-+
-+/** Hashing function (int). */
-+static inline unsigned int 
-+hash(const int & x) 
-+{ 
-+  return (unsigned int)x;
-+}
-+
-+/** Hashing function (long). */
-+static inline unsigned int
-+hash(const long & x) 
-+{ 
-+  return (unsigned int)x;
-+}
-+
-+/** Hashing function (unsigned long). */
-+static inline unsigned int
-+hash(const unsigned long & x) 
-+{ 
-+  return (unsigned int)x;
-+}
-+
-+/** Hashing function (void *). */
-+static inline unsigned int 
-+hash(void * const & x) 
-+{ 
-+  return (unsigned long) x; 
-+}
-+
-+/** Hashing function (const void *). */
-+static inline unsigned int 
-+hash(const void * const & x) 
-+{ 
-+  return (unsigned long) x; 
-+}
-+
-+/** Hashing function (float). */
-+static inline unsigned int
-+hash(const float & x) 
-+{ 
-+  // optimizer will get rid of unnecessary code  
-+  unsigned int *addr = (unsigned int*)&x;
-+  if (sizeof(float)<2*sizeof(unsigned int))
-+    return addr[0];
-+  else
-+    return addr[0]^addr[1];
-+}
-+
-+/** Hashing function (double). */
-+static inline unsigned int
-+hash(const double & x) 
-+{ 
-+  // optimizer will get rid of unnecessary code
-+  unsigned int *addr = (unsigned int*)&x;
-+  if (sizeof(double)<2*sizeof(unsigned int))
-+    return addr[0];
-+  else if (sizeof(double)<4*sizeof(unsigned int))
-+    return addr[0]^addr[1];
-+  else
-+    return addr[0]^addr[1]^addr[2]^addr[3];    
-+}
-+
-+
-+//@}
-+
-+
-+
-+// ------------------------------------------------------------
- // ASSOCIATIVE MAPS
- // ------------------------------------------------------------
-@@ -1266,89 +1352,6 @@
- };
--// ------------------------------------------------------------
--// HASH FUNCTIONS
--// ------------------------------------------------------------
--
--
--/** @name Hash functions
--    These functions let you use template class \Ref{GMap} with the
--    corresponding elementary types. The returned hash code may be reduced to
--    an arbitrary range by computing its remainder modulo the upper bound of
--    the range.
--    @memo Hash functions for elementary types. */
--//@{
--
--/** Hashing function (unsigned int). */
--static inline unsigned int 
--hash(const unsigned int & x) 
--{ 
--  return x; 
--}
--
--/** Hashing function (int). */
--static inline unsigned int 
--hash(const int & x) 
--{ 
--  return (unsigned int)x;
--}
--
--/** Hashing function (long). */
--static inline unsigned int
--hash(const long & x) 
--{ 
--  return (unsigned int)x;
--}
--
--/** Hashing function (unsigned long). */
--static inline unsigned int
--hash(const unsigned long & x) 
--{ 
--  return (unsigned int)x;
--}
--
--/** Hashing function (void *). */
--static inline unsigned int 
--hash(void * const & x) 
--{ 
--  return (unsigned long) x; 
--}
--
--/** Hashing function (const void *). */
--static inline unsigned int 
--hash(const void * const & x) 
--{ 
--  return (unsigned long) x; 
--}
--
--/** Hashing function (float). */
--static inline unsigned int
--hash(const float & x) 
--{ 
--  // optimizer will get rid of unnecessary code  
--  unsigned int *addr = (unsigned int*)&x;
--  if (sizeof(float)<2*sizeof(unsigned int))
--    return addr[0];
--  else
--    return addr[0]^addr[1];
--}
--
--/** Hashing function (double). */
--static inline unsigned int
--hash(const double & x) 
--{ 
--  // optimizer will get rid of unnecessary code
--  unsigned int *addr = (unsigned int*)&x;
--  if (sizeof(double)<2*sizeof(unsigned int))
--    return addr[0];
--  else if (sizeof(double)<4*sizeof(unsigned int))
--    return addr[0]^addr[1];
--  else
--    return addr[0]^addr[1]^addr[2]^addr[3];    
--}
--
--
--//@}
- //@}
- //@}
-diff -urN djvulibre-3.5.16.orig/libdjvu/GURL.h djvulibre-3.5.16/libdjvu/GURL.h
---- djvulibre-3.5.16.orig/libdjvu/GURL.h       2003-11-07 23:08:21.000000000 +0100
-+++ djvulibre-3.5.16/libdjvu/GURL.h    2005-12-11 12:39:56.000000000 +0100
-@@ -278,10 +278,10 @@
-       //@}
-       /// Returns TRUE if #gurl1# and #gurl2# are the same
--   bool       GURL::operator==(const GURL & gurl2) const;
-+   bool       operator==(const GURL & gurl2) const;
-       /// Returns TRUE if #gurl1# and #gurl2# are different
--   bool       GURL::operator!=(const GURL & gurl2) const;
-+   bool       operator!=(const GURL & gurl2) const;
-       /// Assignment operator
-    GURL &     operator=(const GURL & url);
This page took 0.076997 seconds and 4 git commands to generate.