aboutsummaryrefslogtreecommitdiff
path: root/audio/tclmidi
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2013-05-14 09:28:58 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2013-05-14 09:28:58 +0000
commite8826819bd7bcfc6858f5f5cc32ff47693026f58 (patch)
treea1b298c73920c96c48d3de889a140898273491cc /audio/tclmidi
parent66e9a627c9215a4636462e9854ea1d110adb7144 (diff)
downloadports-e8826819bd7bcfc6858f5f5cc32ff47693026f58.tar.gz
ports-e8826819bd7bcfc6858f5f5cc32ff47693026f58.zip
Notes
Diffstat (limited to 'audio/tclmidi')
-rw-r--r--audio/tclmidi/files/patch-TclmIntp.cxx12
-rw-r--r--audio/tclmidi/files/patch-TclmIntp.h9
-rw-r--r--audio/tclmidi/files/patch-modern112
3 files changed, 77 insertions, 56 deletions
diff --git a/audio/tclmidi/files/patch-TclmIntp.cxx b/audio/tclmidi/files/patch-TclmIntp.cxx
new file mode 100644
index 000000000000..56ca08aafebc
--- /dev/null
+++ b/audio/tclmidi/files/patch-TclmIntp.cxx
@@ -0,0 +1,12 @@
+--- TclmIntp.cxx.orig 2013-05-14 11:25:42.000000000 +0200
++++ TclmIntp.cxx 2013-05-14 11:25:49.000000000 +0200
+@@ -37,8 +37,7 @@
+ #endif
+ #include "TclmIntp.h"
+
+-TclmInterp::TclmInterp() : current_song(0), current_dev(0), current_patch(0),
+- next_event(0)
++TclmInterp::TclmInterp() : current_song(0), current_dev(0), current_patch(0)
+ {
+
+ Tcl_InitHashTable(&song_ht, TCL_STRING_KEYS);
diff --git a/audio/tclmidi/files/patch-TclmIntp.h b/audio/tclmidi/files/patch-TclmIntp.h
new file mode 100644
index 000000000000..ef1452fce43b
--- /dev/null
+++ b/audio/tclmidi/files/patch-TclmIntp.h
@@ -0,0 +1,9 @@
+--- TclmIntp.h.orig 2013-05-14 11:24:39.000000000 +0200
++++ TclmIntp.h 2013-05-14 11:25:36.000000000 +0200
+@@ -64,6 +64,5 @@
+ int current_song;
+ int current_dev;
+ int current_patch;
+- Event *next_event;
+ };
+ #endif
diff --git a/audio/tclmidi/files/patch-modern b/audio/tclmidi/files/patch-modern
index 3f4a55f229d2..393ff7ad70af 100644
--- a/audio/tclmidi/files/patch-modern
+++ b/audio/tclmidi/files/patch-modern
@@ -618,62 +618,6 @@
+extern long VarToFix(const unsigned char *var, int *len);
extern int FixToVar(long fix, unsigned char *var);
#endif
---- song/EvntTree.cxx 1996-08-04 23:47:38.000000000 -0400
-+++ song/EvntTree.cxx 2012-04-11 01:45:51.000000000 -0400
-@@ -611,7 +611,7 @@
- for (j = 0; j < num_found; j++)
- new_found[j] = found[j];
- new_found[j] = e;
-- delete found;
-+ delete[] found;
- found = new_found;
- num_found++;
- }
-@@ -631,7 +631,7 @@
- for (j = 0; j < num_found; j++)
- new_found[j] = found[j];
- new_found[j] = e;
-- delete found;
-+ delete[] found;
- found = new_found;
- num_found++;
- }
-@@ -735,6 +735,7 @@
- assert(new_event != 0);
- place = rb_insert_b(place, (char *)time, (char *)new_event);
- }
-+
- curr_event = new_event;
- new_event->SetEventTreeNode(place);
- return (new_event);
-@@ -746,7 +747,7 @@
- Event *e, *events, *prev;
- EventTreeNode *n, *next_n;
-
-- n = (EventTreeNode *)event.GetEventTreeNode();
-+ n = event.GetEventTreeNode();
- if (n != 0) {
- e = &event;
- prev = e->GetPrevEvent();
-@@ -785,6 +786,9 @@
- }
-
- }
-+ if (e->GetNextEvent() == 0 ||
-+ prev && prev->GetEventTreeNode() != n)
-+ rb_delete_node(n);
- } else {
- // This is the only event in the node
- if (curr_event == e) {
-@@ -818,7 +822,7 @@
- /* get each event in order and delete it */
- while ((e = NextEvent()) != 0)
- DeleteEvent(*e);
--
-+
- /* then free head */
- free(head);
- head = 0;
--- song/Song.cxx 1996-08-04 23:47:39.000000000 -0400
+++ song/Song.cxx 2012-04-11 01:02:09.000000000 -0400
@@ -51,7 +51,7 @@
@@ -2137,3 +2081,59 @@
{
TclmInterp *tclm_interp;
+--- song/EvntTree.cxx.orig 1996-08-05 05:47:38.000000000 +0200
++++ song/EvntTree.cxx 2013-05-14 11:22:45.000000000 +0200
+@@ -611,7 +611,7 @@
+ for (j = 0; j < num_found; j++)
+ new_found[j] = found[j];
+ new_found[j] = e;
+- delete found;
++ delete[] found;
+ found = new_found;
+ num_found++;
+ }
+@@ -631,7 +631,7 @@
+ for (j = 0; j < num_found; j++)
+ new_found[j] = found[j];
+ new_found[j] = e;
+- delete found;
++ delete[] found;
+ found = new_found;
+ num_found++;
+ }
+@@ -735,6 +735,7 @@
+ assert(new_event != 0);
+ place = rb_insert_b(place, (char *)time, (char *)new_event);
+ }
++
+ curr_event = new_event;
+ new_event->SetEventTreeNode(place);
+ return (new_event);
+@@ -746,7 +747,7 @@
+ Event *e, *events, *prev;
+ EventTreeNode *n, *next_n;
+
+- n = (EventTreeNode *)event.GetEventTreeNode();
++ n = event.GetEventTreeNode();
+ if (n != 0) {
+ e = &event;
+ prev = e->GetPrevEvent();
+@@ -785,6 +786,9 @@
+ }
+
+ }
++ if (e->GetNextEvent() == 0 ||
++ (prev && prev->GetEventTreeNode() != n))
++ rb_delete_node(n);
+ } else {
+ // This is the only event in the node
+ if (curr_event == e) {
+@@ -818,7 +822,7 @@
+ /* get each event in order and delete it */
+ while ((e = NextEvent()) != 0)
+ DeleteEvent(*e);
+-
++
+ /* then free head */
+ free(head);
+ head = 0;