summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/array.h
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-06-14 23:14:16 +0000
committerKarl Berry <karl@freefriends.org>2010-06-14 23:14:16 +0000
commitc2175edc7aa44ca0b526f008d473d6f8a8ac4933 (patch)
treed6c491676b413ad1922481f8c3fc7b64c3afc0a5 /Build/source/utils/asymptote/array.h
parent5d08e9ff4fe5fc836d237ea08e82c82b27d558a2 (diff)
asy 1.98
git-svn-id: svn://tug.org/texlive/trunk@18982 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/array.h')
-rw-r--r--Build/source/utils/asymptote/array.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/Build/source/utils/asymptote/array.h b/Build/source/utils/asymptote/array.h
index beee263c815..58a97d7b253 100644
--- a/Build/source/utils/asymptote/array.h
+++ b/Build/source/utils/asymptote/array.h
@@ -27,7 +27,7 @@ public:
: mem::vector<item>(n), cycle(false)
{}
- array(size_t n, item i, Int depth);
+ array(size_t n, item i, size_t depth);
void push(item i)
{
@@ -58,7 +58,7 @@ public:
return cycle;
}
- array *copyToDepth(Int depth);
+ array *copyToDepth(size_t depth);
};
template <typename T>
@@ -95,17 +95,10 @@ inline size_t checkArrays(const vm::array *a, const vm::array *b)
return asize;
}
-// Tests if an item is actually an array. This needs to be defined here,
-// after the array type is declared.
-inline bool isarray(const item& it)
-{
- return *it.kind == typeid(array);
-}
-
-// Copies an item to a depth d. If d==0 or if the item is not array, then the
-// item is just returned without copying, otherwise, the array and its
-// subarrays are copied as deeply as possible up to a depth d.
-item copyItemToDepth(item i, Int depth);
+// Copies an item to a depth d. If d == 0 then the item is just returned
+// without copying, otherwise, the array and its subarrays are copied to
+// depth d.
+item copyItemToDepth(item i, size_t depth);
} // namespace vm