diff --git a/StandAlone/StandAlone.cpp b/StandAlone/StandAlone.cpp index e7d0800838d5968a12dc6141fb23fc15969f270b..2f384d1321589b9b55628adf9cd58f68665e39d7 100644 --- a/StandAlone/StandAlone.cpp +++ b/StandAlone/StandAlone.cpp @@ -257,8 +257,8 @@ bool CompileFile(const char *fileName, ShHandle compiler, int debugOptions, cons return false; #ifdef MEASURE_MEMORY - for (int i = 0; i < 1000; ++i) { - for (int j = 0; j < 100; ++j) + for (int i = 0; i < 10; ++i) { + for (int j = 0; j < 1000; ++j) #endif ret = ShCompile(compiler, data, OutputMultipleStrings, EShOptNone, resources, debugOptions, 100, false, EShMsgDefault); #ifdef MEASURE_MEMORY diff --git a/glslang/Include/ConstantUnion.h b/glslang/Include/ConstantUnion.h index e792c75265b14dcd87aeff4d5144fcd68cecf1ef..7fd7ca8915338689c4c76fba5493846a314f6bb3 100644 --- a/glslang/Include/ConstantUnion.h +++ b/glslang/Include/ConstantUnion.h @@ -1,5 +1,7 @@ // //Copyright (C) 2002-2005 3Dlabs Inc. Ltd. +//Copyright (C) 2013 LunarG, Inc. +// //All rights reserved. // //Redistribution and use in source and binary forms, with or without diff --git a/glslang/MachineIndependent/IntermTraverse.cpp b/glslang/MachineIndependent/IntermTraverse.cpp index 8b8d188647098fd01220d029e3e7a69433d8ed99..9b21538829c6c9637c04bf3e43c1b783c1045687 100644 --- a/glslang/MachineIndependent/IntermTraverse.cpp +++ b/glslang/MachineIndependent/IntermTraverse.cpp @@ -1,5 +1,7 @@ // //Copyright (C) 2002-2005 3Dlabs Inc. Ltd. +//Copyright (C) 2013 LunarG, Inc. +// //All rights reserved. // //Redistribution and use in source and binary forms, with or without diff --git a/glslang/MachineIndependent/ParseHelper.cpp b/glslang/MachineIndependent/ParseHelper.cpp index 033a8c1cb83d94ee2ab0fafa151d4bf5052db970..c4078796425f2dcce698cdce739d49e161b9ef9a 100644 --- a/glslang/MachineIndependent/ParseHelper.cpp +++ b/glslang/MachineIndependent/ParseHelper.cpp @@ -1576,7 +1576,7 @@ void TParseContext::addBlock(int line, TPublicType& publicType, const TString& b void TParseContext::wrapupSwitchSubsequence(TIntermAggregate* statements, TIntermNode* branchNode) { - auto switchSequence = switchSequenceStack.back(); + TIntermSequence* switchSequence = switchSequenceStack.back(); if (statements) { if (switchSequence->size() == 0) { @@ -1605,7 +1605,7 @@ TIntermNode* TParseContext::addSwitch(int line, TIntermTyped* expression, TInter } // If there is nothing to do, drop the switch but still execute the expression - auto switchSequence = switchSequenceStack.back(); + TIntermSequence* switchSequence = switchSequenceStack.back(); if (switchSequence->size() == 0) return expression; diff --git a/glslang/MachineIndependent/RemoveTree.cpp b/glslang/MachineIndependent/RemoveTree.cpp index e4f4dc662332b3fbcaa814e6487ad52f9dd52b34..2b1d8f9718fc054b2845e96cff14d52e3165a6e1 100644 --- a/glslang/MachineIndependent/RemoveTree.cpp +++ b/glslang/MachineIndependent/RemoveTree.cpp @@ -1,5 +1,7 @@ // //Copyright (C) 2002-2005 3Dlabs Inc. Ltd. +//Copyright (C) 2013 LunarG, Inc. +// //All rights reserved. // //Redistribution and use in source and binary forms, with or without diff --git a/glslang/MachineIndependent/SymbolTable.h b/glslang/MachineIndependent/SymbolTable.h index e7a76cdb9629e3450788dec243643eec86afd1ca..f6a500fab9880a30badd43b90b2832a246f1670a 100644 --- a/glslang/MachineIndependent/SymbolTable.h +++ b/glslang/MachineIndependent/SymbolTable.h @@ -1,5 +1,7 @@ // //Copyright (C) 2002-2005 3Dlabs Inc. Ltd. +//Copyright (C) 2013 LunarG, Inc. +// //All rights reserved. // //Redistribution and use in source and binary forms, with or without diff --git a/glslang/MachineIndependent/glslang.l b/glslang/MachineIndependent/glslang.l index e4e01a244ade45b3cb270598888874234b39f514..bcb579bd94ca73bc664659b15315b567860308ef 100644 --- a/glslang/MachineIndependent/glslang.l +++ b/glslang/MachineIndependent/glslang.l @@ -516,8 +516,10 @@ int PaParseStrings(char* argv[], int strLen[], int argc, TParseContext& parseCon argv[0][len] == '\t' || argv[0][len] == '\n' || argv[0][len] == '\r') { - if (++len >= strLen[0]) + if (++len >= strLen[0]) { + delete writeablePreamble; return 0; + } } if (*cpp->PaStrLen > 0) {