From 4e8485b0ddecb55f72929dd6233f254a1e7bf5b0 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 11 Jul 2010 22:39:53 +0000 Subject: asy 2.02 git-svn-id: svn://tug.org/texlive/trunk@19378 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/utils/asymptote/symbol.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Build/source/utils/asymptote/symbol.cc') 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; }; -- cgit v1.2.3