diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2017-07-02 10:30:48 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2017-07-03 21:37:42 +0100 |
commit | 4226691b79845d9b41041e2f64a3a241dcb99f4d (patch) | |
tree | 505a9a3ee5a2d5bf9e5b81e842e1bee21032d972 /src/src/functions.h | |
parent | 687cac44312c8adc6f999882b49f0705bcb8613c (diff) |
Transform string_append_listele{,_n}() to proper expanding-string triplet interface
(but do always maintain a nul-term string result). This avoids always copying the
previous list version, and should do fewer allocs too.
Diffstat (limited to 'src/src/functions.h')
-rw-r--r-- | src/src/functions.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/src/functions.h b/src/src/functions.h index 34f6434d0..41e3ec163 100644 --- a/src/src/functions.h +++ b/src/src/functions.h @@ -440,8 +440,8 @@ extern int stdin_feof(void); extern int stdin_ferror(void); extern int stdin_ungetc(int); extern uschar *string_append(uschar *, int *, int *, int, ...) WARN_UNUSED_RESULT; -extern uschar *string_append_listele(uschar *, uschar, const uschar *); -extern uschar *string_append_listele_n(uschar *, uschar, const uschar *, unsigned); +extern uschar *string_append_listele(uschar *, int *, int *, uschar, const uschar *) WARN_UNUSED_RESULT; +extern uschar *string_append_listele_n(uschar *, int *, int *, uschar, const uschar *, unsigned) WARN_UNUSED_RESULT; extern uschar *string_base62(unsigned long int); extern uschar *string_cat(uschar *, int *, int *, const uschar *) WARN_UNUSED_RESULT; extern uschar *string_catn(uschar *, int *, int *, const uschar *, int) WARN_UNUSED_RESULT; |