aboutsummaryrefslogtreecommitdiff
path: root/PDContainer/include/GlobalStuff.h
diff options
context:
space:
mode:
authorGeorg Holzmann <grholzi@users.sourceforge.net>2005-11-03 20:40:40 +0000
committerGeorg Holzmann <grholzi@users.sourceforge.net>2005-11-03 20:40:40 +0000
commit406758342ee046707e5426f804c7b381a0728335 (patch)
tree7e58947fa006199f05efa8fb5cf6cb932cd51586 /PDContainer/include/GlobalStuff.h
parent9ca96a7b406cde99fabe2956090fef0ea820c0e2 (diff)
additional methods: [getall(, [keys(, [values(
svn path=/trunk/externals/grh/; revision=3832
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));
}