Add new convenience pool allocators for arbitrary types, and use them to keep all TSymbol content in the pool, so they don't have to be deleted.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@24148 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich 2013-11-20 18:37:12 +00:00
parent e1dba1b59f
commit 23bcc02a20
5 changed files with 24 additions and 13 deletions

View file

@ -501,7 +501,7 @@ bool CompileDeferred(
lengths[numStrings + 1] = strlen(strings[numStrings + 1]);
TInputScanner fullInput(numStrings + 2, strings, lengths, 1, 1);
// Push a new symbol allocation scope that can for the shader's globals.
// Push a new symbol allocation scope that will get used for the shader's globals.
symbolTable.push();
// Parse the full shader.