parent
4960d4c6c1
commit
f462d941f7
@ -1 +1,2 @@
|
|||||||
/librevenge-0.0.0.tar.xz
|
/librevenge-0.0.0.tar.xz
|
||||||
|
/librevenge-0.0.1.tar.xz
|
||||||
|
@ -1,203 +0,0 @@
|
|||||||
From 27adcd8bdba57db50b2e718054563c76f99aebfa Mon Sep 17 00:00:00 2001
|
|
||||||
From: David Tardon <dtardon@redhat.com>
|
|
||||||
Date: Sat, 24 May 2014 00:24:46 +0200
|
|
||||||
Subject: [PATCH] fix license headers for gdb printers
|
|
||||||
|
|
||||||
---
|
|
||||||
data/gdb/auto-load/librevenge-stream.py.in | 28 ++++++++++++----------------
|
|
||||||
data/gdb/auto-load/librevenge.py.in | 28 ++++++++++++----------------
|
|
||||||
data/gdb/librevenge/util/compatibility.py | 25 ++++++++++---------------
|
|
||||||
data/gdb/librevenge/util/printing.py | 25 ++++++++++---------------
|
|
||||||
data/gdb/librevenge/v0_0/streams.py | 5 -----
|
|
||||||
data/gdb/librevenge/v0_0/types.py | 5 -----
|
|
||||||
6 files changed, 44 insertions(+), 72 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/data/gdb/auto-load/librevenge-stream.py.in b/data/gdb/auto-load/librevenge-stream.py.in
|
|
||||||
index d4dbc09..de4a9d2 100644
|
|
||||||
--- a/data/gdb/auto-load/librevenge-stream.py.in
|
|
||||||
+++ b/data/gdb/auto-load/librevenge-stream.py.in
|
|
||||||
@@ -1,22 +1,18 @@
|
|
||||||
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
||||||
-# Auto-load of all the printers.
|
|
||||||
-#
|
|
||||||
-# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
|
|
||||||
-#
|
|
||||||
-# This file is part of boost-gdb-printers.
|
|
||||||
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
|
|
||||||
+# librevenge
|
|
||||||
+# Version: MPL 2.0 / LGPLv2.1+
|
|
||||||
#
|
|
||||||
-# This program is free software; you can redistribute it and/or modify
|
|
||||||
-# it under the terms of the GNU General Public License as published by
|
|
||||||
-# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
-# (at your option) any later version.
|
|
||||||
+# This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
+# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
#
|
|
||||||
-# This program is distributed in the hope that it will be useful,
|
|
||||||
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
-# GNU General Public License for more details.
|
|
||||||
+# Alternatively, the contents of this file may be used under the terms
|
|
||||||
+# of the GNU Lesser General Public License Version 2.1 or later
|
|
||||||
+# (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
|
|
||||||
+# applicable instead of those above.
|
|
||||||
#
|
|
||||||
-# You should have received a copy of the GNU General Public License
|
|
||||||
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+# Auto-load of all the printers.
|
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
diff --git a/data/gdb/auto-load/librevenge.py.in b/data/gdb/auto-load/librevenge.py.in
|
|
||||||
index 6e7eb50..af4dba2 100644
|
|
||||||
--- a/data/gdb/auto-load/librevenge.py.in
|
|
||||||
+++ b/data/gdb/auto-load/librevenge.py.in
|
|
||||||
@@ -1,22 +1,18 @@
|
|
||||||
-# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
||||||
-# Auto-load of all the printers.
|
|
||||||
-#
|
|
||||||
-# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
|
|
||||||
-#
|
|
||||||
-# This file is part of boost-gdb-printers.
|
|
||||||
+# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
|
|
||||||
+# librevenge
|
|
||||||
+# Version: MPL 2.0 / LGPLv2.1+
|
|
||||||
#
|
|
||||||
-# This program is free software; you can redistribute it and/or modify
|
|
||||||
-# it under the terms of the GNU General Public License as published by
|
|
||||||
-# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
-# (at your option) any later version.
|
|
||||||
+# This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
+# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
#
|
|
||||||
-# This program is distributed in the hope that it will be useful,
|
|
||||||
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
-# GNU General Public License for more details.
|
|
||||||
+# Alternatively, the contents of this file may be used under the terms
|
|
||||||
+# of the GNU Lesser General Public License Version 2.1 or later
|
|
||||||
+# (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
|
|
||||||
+# applicable instead of those above.
|
|
||||||
#
|
|
||||||
-# You should have received a copy of the GNU General Public License
|
|
||||||
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
+
|
|
||||||
+# Auto-load of all the printers.
|
|
||||||
|
|
||||||
import sys
|
|
||||||
|
|
||||||
diff --git a/data/gdb/librevenge/util/compatibility.py b/data/gdb/librevenge/util/compatibility.py
|
|
||||||
index 788d2f5..240874f 100644
|
|
||||||
--- a/data/gdb/librevenge/util/compatibility.py
|
|
||||||
+++ b/data/gdb/librevenge/util/compatibility.py
|
|
||||||
@@ -1,23 +1,18 @@
|
|
||||||
# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
|
|
||||||
-# Compatibility with older versions of GDB.
|
|
||||||
-#
|
|
||||||
-# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
|
|
||||||
+# librevenge
|
|
||||||
+# Version: MPL 2.0 / LGPLv2.1+
|
|
||||||
#
|
|
||||||
-# This file is part of boost-gdb-printers.
|
|
||||||
+# This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
+# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
#
|
|
||||||
-# This program is free software; you can redistribute it and/or modify
|
|
||||||
-# it under the terms of the GNU General Public License as published by
|
|
||||||
-# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
-# (at your option) any later version.
|
|
||||||
+# Alternatively, the contents of this file may be used under the terms
|
|
||||||
+# of the GNU Lesser General Public License Version 2.1 or later
|
|
||||||
+# (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
|
|
||||||
+# applicable instead of those above.
|
|
||||||
#
|
|
||||||
-# This program is distributed in the hope that it will be useful,
|
|
||||||
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
-# GNU General Public License for more details.
|
|
||||||
-#
|
|
||||||
-# You should have received a copy of the GNU General Public License
|
|
||||||
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
+# Compatibility with older versions of GDB.
|
|
||||||
|
|
||||||
import gdb
|
|
||||||
|
|
||||||
diff --git a/data/gdb/librevenge/util/printing.py b/data/gdb/librevenge/util/printing.py
|
|
||||||
index 28e6779..6187d21 100644
|
|
||||||
--- a/data/gdb/librevenge/util/printing.py
|
|
||||||
+++ b/data/gdb/librevenge/util/printing.py
|
|
||||||
@@ -1,23 +1,18 @@
|
|
||||||
# -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
|
|
||||||
-# Printer interface adaptor.
|
|
||||||
-#
|
|
||||||
-# Copyright (C) 2012 Red Hat, Inc., David Tardon <dtardon@redhat.com>
|
|
||||||
+# librevenge
|
|
||||||
+# Version: MPL 2.0 / LGPLv2.1+
|
|
||||||
#
|
|
||||||
-# This file is part of boost-gdb-printers.
|
|
||||||
+# This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
+# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
#
|
|
||||||
-# This program is free software; you can redistribute it and/or modify
|
|
||||||
-# it under the terms of the GNU General Public License as published by
|
|
||||||
-# the Free Software Foundation; either version 3 of the License, or
|
|
||||||
-# (at your option) any later version.
|
|
||||||
+# Alternatively, the contents of this file may be used under the terms
|
|
||||||
+# of the GNU Lesser General Public License Version 2.1 or later
|
|
||||||
+# (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
|
|
||||||
+# applicable instead of those above.
|
|
||||||
#
|
|
||||||
-# This program is distributed in the hope that it will be useful,
|
|
||||||
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
-# GNU General Public License for more details.
|
|
||||||
-#
|
|
||||||
-# You should have received a copy of the GNU General Public License
|
|
||||||
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
+# Printer interface adaptor.
|
|
||||||
|
|
||||||
from collections import Mapping
|
|
||||||
import gdb
|
|
||||||
diff --git a/data/gdb/librevenge/v0_0/streams.py b/data/gdb/librevenge/v0_0/streams.py
|
|
||||||
index 7a60a33..7ea3753 100644
|
|
||||||
--- a/data/gdb/librevenge/v0_0/streams.py
|
|
||||||
+++ b/data/gdb/librevenge/v0_0/streams.py
|
|
||||||
@@ -6,11 +6,6 @@
|
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
#
|
|
||||||
-# Major Contributor(s):
|
|
||||||
-# Copyright (C) 2014 David Tardon (dtardon@redhat.com)
|
|
||||||
-#
|
|
||||||
-# For minor contributions see the git repository.
|
|
||||||
-#
|
|
||||||
# Alternatively, the contents of this file may be used under the terms
|
|
||||||
# of the GNU Lesser General Public License Version 2.1 or later
|
|
||||||
# (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
|
|
||||||
diff --git a/data/gdb/librevenge/v0_0/types.py b/data/gdb/librevenge/v0_0/types.py
|
|
||||||
index 3a49d45..4075aa2 100644
|
|
||||||
--- a/data/gdb/librevenge/v0_0/types.py
|
|
||||||
+++ b/data/gdb/librevenge/v0_0/types.py
|
|
||||||
@@ -6,11 +6,6 @@
|
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
||||||
#
|
|
||||||
-# Major Contributor(s):
|
|
||||||
-# Copyright (C) 2014 David Tardon (dtardon@redhat.com)
|
|
||||||
-#
|
|
||||||
-# For minor contributions see the git repository.
|
|
||||||
-#
|
|
||||||
# Alternatively, the contents of this file may be used under the terms
|
|
||||||
# of the GNU Lesser General Public License Version 2.1 or later
|
|
||||||
# (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
|
|
||||||
--
|
|
||||||
1.9.0
|
|
||||||
|
|
@ -1,103 +0,0 @@
|
|||||||
From 0952de614e7cdb101478bbdbfa48fee5f1f70a5b Mon Sep 17 00:00:00 2001
|
|
||||||
From: David Tardon <dtardon@redhat.com>
|
|
||||||
Date: Fri, 23 May 2014 22:36:59 +0200
|
|
||||||
Subject: [PATCH] fix type sizes for CPPUNIT_ASSERT_EQUAL
|
|
||||||
|
|
||||||
---
|
|
||||||
src/test/RVNGBinaryDataTest.cpp | 10 +++++-----
|
|
||||||
src/test/RVNGStringTest.cpp | 10 +++++-----
|
|
||||||
2 files changed, 10 insertions(+), 10 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/src/test/RVNGBinaryDataTest.cpp b/src/test/RVNGBinaryDataTest.cpp
|
|
||||||
index 13b5e9c..7b10a92 100644
|
|
||||||
--- a/src/test/RVNGBinaryDataTest.cpp
|
|
||||||
+++ b/src/test/RVNGBinaryDataTest.cpp
|
|
||||||
@@ -101,19 +101,19 @@ void RVNGBinaryDataTest::testConstruction()
|
|
||||||
const unsigned char input[] = "hello world";
|
|
||||||
const size_t len = RVNG_NUM_ELEMENTS(input);
|
|
||||||
RVNGBinaryData data(input, len);
|
|
||||||
- CPPUNIT_ASSERT_EQUAL(len, data.size());
|
|
||||||
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), data.size());
|
|
||||||
CPPUNIT_ASSERT(!data.empty());
|
|
||||||
CPPUNIT_ASSERT(equal(input, input + len, data.getDataBuffer()));
|
|
||||||
|
|
||||||
{
|
|
||||||
// copy construction
|
|
||||||
RVNGBinaryData copy(data);
|
|
||||||
- CPPUNIT_ASSERT_EQUAL(len, copy.size());
|
|
||||||
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), copy.size());
|
|
||||||
CPPUNIT_ASSERT(equal(input, input + len, copy.getDataBuffer()));
|
|
||||||
}
|
|
||||||
// COW: destruction of a copy does not touch the original
|
|
||||||
// this should be tested under valgrind
|
|
||||||
- CPPUNIT_ASSERT_EQUAL(len, data.size());
|
|
||||||
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), data.size());
|
|
||||||
CPPUNIT_ASSERT(equal(input, input + len, data.getDataBuffer()));
|
|
||||||
|
|
||||||
// assignment
|
|
||||||
@@ -121,7 +121,7 @@ void RVNGBinaryDataTest::testConstruction()
|
|
||||||
CPPUNIT_ASSERT_EQUAL(0ul, assign.size());
|
|
||||||
CPPUNIT_ASSERT(assign.empty());
|
|
||||||
assign = data;
|
|
||||||
- CPPUNIT_ASSERT_EQUAL(len, assign.size());
|
|
||||||
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), assign.size());
|
|
||||||
CPPUNIT_ASSERT(!assign.empty());
|
|
||||||
CPPUNIT_ASSERT(equal(input, input + len, assign.getDataBuffer()));
|
|
||||||
|
|
||||||
@@ -148,7 +148,7 @@ void RVNGBinaryDataTest::testAppend()
|
|
||||||
CPPUNIT_ASSERT_EQUAL(static_cast<unsigned char>('h'), data.getDataBuffer()[0]);
|
|
||||||
|
|
||||||
data2.append(input + 1, len - 1);
|
|
||||||
- CPPUNIT_ASSERT_EQUAL(len, data2.size());
|
|
||||||
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), data2.size());
|
|
||||||
CPPUNIT_ASSERT(equal(input, input + len, data2.getDataBuffer()));
|
|
||||||
// again, the original is unchanged
|
|
||||||
CPPUNIT_ASSERT_EQUAL(1ul, data.size());
|
|
||||||
diff --git a/src/test/RVNGStringTest.cpp b/src/test/RVNGStringTest.cpp
|
|
||||||
index abaa8a5..5f99027 100644
|
|
||||||
--- a/src/test/RVNGStringTest.cpp
|
|
||||||
+++ b/src/test/RVNGStringTest.cpp
|
|
||||||
@@ -118,27 +118,27 @@ void RVNGStringTest::testConstruction()
|
|
||||||
const char input[] = "hello world";
|
|
||||||
const size_t len = RVNG_NUM_ELEMENTS(input) - 1;
|
|
||||||
RVNGString str(input);
|
|
||||||
- CPPUNIT_ASSERT_EQUAL(len, str.size());
|
|
||||||
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), str.size());
|
|
||||||
CPPUNIT_ASSERT_EQUAL(int(len), str.len());
|
|
||||||
CPPUNIT_ASSERT(equal(input, input + len, str.cstr()));
|
|
||||||
|
|
||||||
// copy construction
|
|
||||||
RVNGString copy(str);
|
|
||||||
- CPPUNIT_ASSERT_EQUAL(len, copy.size());
|
|
||||||
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), copy.size());
|
|
||||||
CPPUNIT_ASSERT_EQUAL(int(len), copy.len());
|
|
||||||
CPPUNIT_ASSERT(equal(input, input + len, copy.cstr()));
|
|
||||||
|
|
||||||
// assignment
|
|
||||||
RVNGString assign;
|
|
||||||
assign = str;
|
|
||||||
- CPPUNIT_ASSERT_EQUAL(len, assign.size());
|
|
||||||
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), assign.size());
|
|
||||||
CPPUNIT_ASSERT_EQUAL(int(len), assign.len());
|
|
||||||
CPPUNIT_ASSERT(equal(input, input + len, assign.cstr()));
|
|
||||||
|
|
||||||
// assignment from C string
|
|
||||||
RVNGString assign2;
|
|
||||||
assign2 = input;
|
|
||||||
- CPPUNIT_ASSERT_EQUAL(len, assign.size());
|
|
||||||
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), assign.size());
|
|
||||||
CPPUNIT_ASSERT_EQUAL(int(len), assign.len());
|
|
||||||
CPPUNIT_ASSERT(equal(input, input + len, assign.cstr()));
|
|
||||||
}
|
|
||||||
@@ -164,7 +164,7 @@ void RVNGStringTest::testAppend()
|
|
||||||
|
|
||||||
// appending a C string
|
|
||||||
str2.append(input + 1);
|
|
||||||
- CPPUNIT_ASSERT_EQUAL(len, str2.size());
|
|
||||||
+ CPPUNIT_ASSERT_EQUAL(static_cast<unsigned long>(len), str2.size());
|
|
||||||
CPPUNIT_ASSERT_EQUAL(int(len), str2.len());
|
|
||||||
CPPUNIT_ASSERT(equal(input, input + len, str2.cstr()));
|
|
||||||
}
|
|
||||||
--
|
|
||||||
1.9.0
|
|
||||||
|
|
Loading…
Reference in new issue