summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/symbol.cc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-07-11 22:39:53 +0000
committerKarl Berry <karl@freefriends.org>2010-07-11 22:39:53 +0000
commit4e8485b0ddecb55f72929dd6233f254a1e7bf5b0 (patch)
tree354324ee6f54d46053b3ce88fe9dc4acf8e2ed81 /Build/source/utils/asymptote/symbol.cc
parent713bb91ad0467fb3b12acad03cae2fa105ed2caa (diff)
asy 2.02
git-svn-id: svn://tug.org/texlive/trunk@19378 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/asymptote/symbol.cc')
-rw-r--r--Build/source/utils/asymptote/symbol.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/Build/source/utils/asymptote/symbol.cc b/Build/source/utils/asymptote/symbol.cc
index 0c6e225af88..b4e173b72be 100644
--- a/Build/source/utils/asymptote/symbol.cc
+++ b/Build/source/utils/asymptote/symbol.cc
@@ -23,11 +23,17 @@ const char SKIP = 2;
struct symbolRecord {
// When a symbol is entered into the table, its hash is computed. If the
// corresponding entry in the table is full, this value is incremented until
- // an empty slot is found. hashplus stores the end value. As entries are
- // removed, each symbol has a unique hashplus value, even if there is a
- // collision in the original hashing function.
+ // an empty slot is found. hashplus stores the end value.
+ // Each symbol has a unique hashplus value, even if there is a collision in
+ // the original hashing function.
uint hashplus;
+
+ // Whether the cell of the table is empty, in use, or a "skip" entry due to
+ // a resizing of the table.
unsigned char flag;
+
+ // Pointer to a copy of the string (allocated on the heap). This string
+ // will never be deallocated. Symbols, in essence, last forever.
char *s;
};