1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-04 13:02:47 -05:00

Move comma-separated string functions into sshcommon.c.

These are just string handling, after all. They could even move into
misc.c if any non-SSH-related code ever had a need for them.
This commit is contained in:
Simon Tatham
2018-09-19 20:39:25 +01:00
parent 968252bbdc
commit 26364bb6a1
3 changed files with 56 additions and 53 deletions

5
ssh.h
View File

@ -1334,3 +1334,8 @@ unsigned alloc_channel_id_general(tree234 *channels, size_t localid_offset);
#define alloc_channel_id(tree, type) \
TYPECHECK(&((type *)0)->localid == (unsigned *)0, \
alloc_channel_id_general(tree, offsetof(type, localid)))
int first_in_commasep_string(char const *needle, char const *haystack,
int haylen);
int in_commasep_string(char const *needle, char const *haystack, int haylen);
void add_to_commasep(strbuf *buf, const char *data);