Branch: Tag:

2016-12-31

2016-12-31 17:12:22 by Arne Goedeke <el@laramies.com>

describe_svalue: do not use global buffer

This commit removes the dynamic buffer from describe_svalue and related
funtions.

8:   #define SVALUE_H      #include "global.h" + #include "buffer.h"      #ifndef STRUCT_ARRAY_DECLARED   #define STRUCT_ARRAY_DECLARED
813:   PMOD_EXPORT int is_equal(const struct svalue *a, const struct svalue *b);   PMOD_EXPORT int is_lt(const struct svalue *a, const struct svalue *b);   PMOD_EXPORT int is_le(const struct svalue *a, const struct svalue *b); - PMOD_EXPORT void describe_svalue(const struct svalue *s,int indent,struct processing *p); - PMOD_EXPORT void safe_describe_svalue(const struct svalue *s,int indent,struct processing *p); + PMOD_EXPORT void describe_svalue(struct byte_buffer *buf, const struct svalue *s,int indent, +  struct processing *p); + PMOD_EXPORT void safe_describe_svalue(struct byte_buffer *buf, const struct svalue *s, +  int indent,struct processing *p);   PMOD_EXPORT void print_svalue (FILE *out, const struct svalue *s);   PMOD_EXPORT void safe_print_svalue (FILE *out, const struct svalue *s);   PMOD_EXPORT void print_short_svalue (FILE *out, const union anything *a, TYPE_T type);