summaryrefslogtreecommitdiff
path: root/audio/mp3check/patches
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2007-08-31 10:37:36 +0000
committerdrochner <drochner@pkgsrc.org>2007-08-31 10:37:36 +0000
commite468da54201b8e5fe854a9ea3653e955874b27a7 (patch)
treede28efbf4e5a30b8bc59a83867bd3e32c8278f3b /audio/mp3check/patches
parenta8019b9d4ee6aea97ffad8f093ffb1aa963b679a (diff)
downloadpkgsrc-e468da54201b8e5fe854a9ea3653e955874b27a7.tar.gz
update to 0.8.3
changes: --add-tag added: automatically add an ID3v1.1 tag to file which do not have any ID3v1.x or v2.x tag, lots of handcrafted algorithms converted 2300 files rather successfully in 37 seconds, the code is obscure though approved by tron
Diffstat (limited to 'audio/mp3check/patches')
-rw-r--r--audio/mp3check/patches/patch-ac13
-rw-r--r--audio/mp3check/patches/patch-ae14
-rw-r--r--audio/mp3check/patches/patch-af13
-rw-r--r--audio/mp3check/patches/patch-ag22
4 files changed, 7 insertions, 55 deletions
diff --git a/audio/mp3check/patches/patch-ac b/audio/mp3check/patches/patch-ac
deleted file mode 100644
index ed109df4656..00000000000
--- a/audio/mp3check/patches/patch-ac
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2003/02/16 23:08:25 abs Exp $
-
---- texception.h.orig Tue Dec 3 22:00:57 2002
-+++ texception.h
-@@ -57,7 +57,7 @@ class TException {
- va_end(ap);
- }
- #endif
--#if !(defined __USE_SVID || defined __USE_BSD || defined __USE_XOPEN_EXTENDED)
-+#ifndef HAVE_STRDUP
- static char *strdup(const char *str) { char *buf; vasprintf(&buf, "%s", str); return buf; }
- #endif
- };
diff --git a/audio/mp3check/patches/patch-ae b/audio/mp3check/patches/patch-ae
index 1da59af9742..3e45c2cf9dc 100644
--- a/audio/mp3check/patches/patch-ae
+++ b/audio/mp3check/patches/patch-ae
@@ -1,26 +1,26 @@
-$NetBSD: patch-ae,v 1.2 2005/12/11 22:03:39 joerg Exp $
+$NetBSD: patch-ae,v 1.3 2007/08/31 10:37:37 drochner Exp $
---- tstring.cc.orig 2003-01-27 21:21:17.000000000 +0000
+--- tstring.cc.orig 2006-09-21 23:17:07.000000000 +0200
+++ tstring.cc
-@@ -27,6 +27,7 @@
+@@ -23,6 +23,7 @@
+ #include <sys/stat.h>
#include <unistd.h>
- #endif
#include <errno.h>
+#include "config.h"
#include "tstring.h"
#include "texception.h"
-@@ -714,12 +715,12 @@ void tstring::truncate(size_t max) {
+@@ -716,12 +717,12 @@ void tstring::truncate(size_t max) {
void tstring::replaceUnprintable(bool only_ascii) {
for(size_t i = 0; i < rep->len; i++) {
-- unsigned char& c = (unsigned char)(*rep)[i];
+- unsigned char& c = (unsigned char &)(*rep)[i];
- if(!isprint(c)) {
- if(c < ' ') {
- c = '!';
- } else if(only_ascii || (c < 0xa0)) {
- c = '?';
-+ unsigned char *c = (unsigned char*)&(*rep)[i];
++ unsigned char *c = (unsigned char *)&(*rep)[i];
+ if(!isprint(*c)) {
+ if(*c < ' ') {
+ *c = '!';
diff --git a/audio/mp3check/patches/patch-af b/audio/mp3check/patches/patch-af
deleted file mode 100644
index 261056f00cf..00000000000
--- a/audio/mp3check/patches/patch-af
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-af,v 1.1 2005/12/11 22:03:39 joerg Exp $
-
---- tmap.h.orig 2005-12-11 21:46:52.000000000 +0000
-+++ tmap.h
-@@ -54,7 +54,7 @@ class tmap: public tmap_base<K,T> {
- // new functionality
-
- /// return whether an element with key is contained or not
-- bool contains(const K& key) const { return find(key) != end(); }
-+ bool contains(const K& key) const { return find(key) != this->end(); }
- /// access element read only (const)
- // g++ 2.95.2 does not allow this:
- // const T& operator[](const K& key) const { const_iterator i = find(key); if(i != end()) return i->second; else throw TNotFoundException(); } // throw(TNotFoundException)
diff --git a/audio/mp3check/patches/patch-ag b/audio/mp3check/patches/patch-ag
deleted file mode 100644
index bfe5c8f4207..00000000000
--- a/audio/mp3check/patches/patch-ag
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-ag,v 1.1 2005/12/11 22:03:39 joerg Exp $
-
---- tvector.h.orig 2005-12-11 21:47:29.000000000 +0000
-+++ tvector.h
-@@ -60,13 +60,13 @@ class tvector: public tvector_base<T> {
- /// append an element to the end
- const tvector& operator += (const T& a) { push_back(a); return *this; }
- /// append another tvector to the end
-- const tvector& operator += (const tvector& a) { insert(end(), a.begin(), a.end()); return *this; }
-+ const tvector& operator += (const tvector& a) { insert(tvector_base<T>::end(), a.begin(), a.end()); return *this; }
- /// direct read only access, safe
-- const T& operator[](size_t i) const { if(i < size()) return tvector_base<T>::operator[](i); else throw TZeroBasedIndexOutOfRangeException(i, size()); } // throw(TZeroBasedIndexOutOfRangeException);
-+ const T& operator[](size_t i) const { if(i < this->size()) return tvector_base<T>::operator[](i); else throw TZeroBasedIndexOutOfRangeException(i, this->size()); } // throw(TZeroBasedIndexOutOfRangeException);
- /// direct read/write access, automatically create new elements
-- T& operator[](size_t i) { if(i >= size()) operator+=(tvector(i - size() + 1)); return tvector_base<T>::operator[](i); }
-+ T& operator[](size_t i) { if(i >= this->size()) operator+=(tvector(i - this->size() + 1)); return tvector_base<T>::operator[](i); }
- /// clear vector
-- void clear() { erase(begin(), end()); }
-+ void clear() { erase(this->begin(), this->end()); }
- };
-
-