[Mesa-dev] [PATCH 0/8] Resend of preprocessor series

Thomas Helland thomashelland90 at gmail.com
Tue Aug 29 19:56:30 UTC 2017


This is a resend of the string buffer implementation and
related patches sent out back in May. I've done one more
change to the string buffer; using u_string.h for a compatible
vsnprintf version to reduce the code even more. I've not been
able to test this due to two build breakages (xmlpool and dri)
that I'm still trying to figure out of. But since I promised
to send these out this evening, I'm sending them untested.
I did test them thoroughly the last time around though,
so I believe it should be mostly good as long as I haven't
messed up the rebasing. I believe the string buffer part of
the series is the most important; the rest I've not really
gotten around to performance test much.

Thomas Helland (7):
  util: Add a string buffer implementation
  util: Add tests for the string buffer
  glsl: Change the parser to use the string buffer
  glcpp: Use string_buffer for line continuation removal
  glcpp: Avoid unnecessary call to strlen
  port to gtest
  fix test makefile

Vladislav Egorov (1):
  glcpp: Use Bloom filter before identifier search

 configure.ac                                      |   2 +
 src/compiler/glsl/glcpp/glcpp-lex.l               |   3 +-
 src/compiler/glsl/glcpp/glcpp-parse.y             | 219 ++++++++-------------
 src/compiler/glsl/glcpp/glcpp.h                   |  18 +-
 src/compiler/glsl/glcpp/pp.c                      |  64 ++++---
 src/util/Makefile.am                              |   3 +-
 src/util/Makefile.sources                         |   2 +
 src/util/string_buffer.c                          | 155 +++++++++++++++
 src/util/string_buffer.h                          |  87 +++++++++
 src/util/tests/string_buffer/Makefile.am          |  38 ++++
 src/util/tests/string_buffer/append_and_print.cpp | 221 ++++++++++++++++++++++
 11 files changed, 633 insertions(+), 179 deletions(-)
 create mode 100644 src/util/string_buffer.c
 create mode 100644 src/util/string_buffer.h
 create mode 100644 src/util/tests/string_buffer/Makefile.am
 create mode 100644 src/util/tests/string_buffer/append_and_print.cpp

-- 
2.13.3



More information about the mesa-dev mailing list