Re: [Mesa-dev] [PATCH 7/9] glcpp: Avoid unnecessary call to strlen

2017-05-21 Thread Timothy Arceri
On 22/05/17 06:49, Thomas Helland wrote: Length of the token was already calculated by flex and stored in yyleng, no need to implicitly call strlen() via linear_strdup(). --- src/compiler/glsl/glcpp/glcpp-lex.l | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/

[Mesa-dev] [PATCH 7/9] glcpp: Avoid unnecessary call to strlen

2017-05-21 Thread Thomas Helland
Length of the token was already calculated by flex and stored in yyleng, no need to implicitly call strlen() via linear_strdup(). --- src/compiler/glsl/glcpp/glcpp-lex.l | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compiler/glsl/glcpp/glcpp-lex.l b/src/compiler/glsl/g