Re: [Mesa-dev] [PATCH 5/8] glcpp: Avoid unnecessary call to strlen

2017-08-29 Thread Timothy Arceri
On 30/08/17 05:56, 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 5/8] glcpp: Avoid unnecessary call to strlen

2017-08-29 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