| 82 | } |
| 83 | |
| 84 | void strbuf_set_increment(strbuf_t *s, int increment) |
| 85 | { |
| 86 | /* Increment > 0: Linear buffer growth rate |
| 87 | * Increment < -1: Exponential buffer growth rate */ |
| 88 | if (increment == 0 || increment == -1) |
| 89 | die("BUG: Invalid string increment"); |
| 90 | |
| 91 | s->increment = increment; |
| 92 | } |
| 93 | |
| 94 | static inline void debug_stats(strbuf_t *s) |
| 95 | { |