aboutsummaryrefslogtreecommitdiff
path: root/PDContainer/include/GlobalStuff.h
diff options
context:
space:
mode:
Diffstat (limited to 'PDContainer/include/GlobalStuff.h')
-rwxr-xr-xPDContainer/include/GlobalStuff.h54
1 files changed, 1 insertions, 53 deletions
diff --git a/PDContainer/include/GlobalStuff.h b/PDContainer/include/GlobalStuff.h
index 6cb96cc..6424a99 100755
--- a/PDContainer/include/GlobalStuff.h
+++ b/PDContainer/include/GlobalStuff.h
@@ -32,7 +32,7 @@ using std::endl;
// current version
-#define PDC_VERSION "0.2"
+#define PDC_VERSION "0.2.1"
// TinyXML
@@ -78,19 +78,6 @@ class Element
if(atom_ && size_)
{
length = size_;
-
- // !!!! FIXME !!!!
- // hack to avoid lockating too much memory
- // (somewhere I read an uninitialized value ...
- // ... but where !?)
- if(length>999)
- {
- post("Element, constr1: invalid construction !!! should be fixed !!!");
- length=0;
- atom=NULL;
- return;
- }
-
atom = (t_atom*)copybytes(atom_, length*sizeof(t_atom));
}
}
@@ -101,19 +88,6 @@ class Element
if(src.atom)
{
length = src.length;
-
- // !!!! FIXME !!!!
- // hack to avoid lockating too much memory
- // (somewhere I read an uninitialized value ...
- // ... but where !?)
- if(length>999)
- {
- post("Element, constr2: invalid construction !!! should be fixed !!!");
- length=0;
- atom=NULL;
- return;
- }
-
atom = (t_atom*)copybytes(src.atom, length*sizeof(t_atom));
}
}
@@ -138,19 +112,6 @@ class Element
if(atom_)
{
length = size_;
-
- // !!!! FIXME !!!!
- // hack to avoid lockating too much memory
- // (somewhere I read an uninitialized value ...
- // ... but where !?)
- if(length>999)
- {
- post("Element, setAtoms: invalid construction !!! should be fixed !!!");
- length=0;
- atom=NULL;
- return;
- }
-
atom = (t_atom*)copybytes(atom_, length*sizeof(t_atom));
}
}
@@ -175,19 +136,6 @@ class Element
if(src.atom)
{
length = src.length;
-
- // !!!! FIXME !!!!
- // hack to avoid lockating too much memory
- // (somewhere I read an uninitialized value ...
- // ... but where !?)
- if(length>999)
- {
- post("Element, assignment: invalid construction !!! should be fixed !!!");
- length=0;
- atom=NULL;
- return (*this);
- }
-
atom = (t_atom*)copybytes(src.atom, length*sizeof(t_atom));
}