Re: [Mesa-dev] [PATCH 1/9] util: Add a string buffer implementation

2017-05-21 Thread Timothy Arceri
On 22/05/17 08:28, Timothy Arceri wrote: On 22/05/17 06:49, Thomas Helland wrote: Based on Vladislav Egorov's work on the preprocessor, but split out to a util functionality that should be universal. Setup, teardown, memory handling and general layout is modeled around the hash_table and the s

Re: [Mesa-dev] [PATCH 1/9] util: Add a string buffer implementation

2017-05-21 Thread Timothy Arceri
+ uint32_t num_args, ...); +bool +_mesa_string_buffer_append_len(struct _mesa_string_buffer *str, + char *c, uint32_t len); + +static inline bool +_mesa_string_buffer_append_char(struct _mesa_string_buffer *str, char c) +{ + assert(st

Re: [Mesa-dev] [PATCH 1/9] util: Add a string buffer implementation

2017-05-21 Thread Grazvydas Ignotas
On Sun, May 21, 2017 at 11:49 PM, Thomas Helland wrote: > Based on Vladislav Egorov's work on the preprocessor, but split > out to a util functionality that should be universal. Setup, teardown, > memory handling and general layout is modeled around the hash_table > and the set, to make it familia

Re: [Mesa-dev] [PATCH 1/9] util: Add a string buffer implementation

2017-05-21 Thread Timothy Arceri
On 22/05/17 06:49, Thomas Helland wrote: Based on Vladislav Egorov's work on the preprocessor, but split out to a util functionality that should be universal. Setup, teardown, memory handling and general layout is modeled around the hash_table and the set, to make it familiar for everyone. A not

[Mesa-dev] [PATCH 1/9] util: Add a string buffer implementation

2017-05-21 Thread Thomas Helland
Based on Vladislav Egorov's work on the preprocessor, but split out to a util functionality that should be universal. Setup, teardown, memory handling and general layout is modeled around the hash_table and the set, to make it familiar for everyone. A notable change is that this implementation is