#include "tests/STUB.h"
const char *wordlistAdd(wordlist **, const char *) STUB_RETVAL(NULL)
-void wordlistAddWl(wordlist **, wordlist *) STUB
-void wordlistJoin(wordlist **, wordlist **) STUB
void wordlistDestroy(wordlist **) STUB
return (*list)->key;
}
-void
-wordlistJoin(wordlist ** list, wordlist ** wl)
-{
- while (*list)
- list = &(*list)->next;
-
- *list = *wl;
-
- *wl = NULL;
-}
-
-void
-wordlistAddWl(wordlist ** list, wordlist * wl)
-{
- while (*list)
- list = &(*list)->next;
-
- for (; wl; wl = wl->next, list = &(*list)->next) {
- *list = new wordlist(wl->key);
- }
-}
-
void
wordlistCat(const wordlist * w, MemBuf * mb)
{
*/
void wordlistCat(const wordlist *, MemBuf *);
-/** append a wordlist to another
- *
- * \deprecated use SBufList.merge(otherwordlist) instead
- */
-void wordlistAddWl(wordlist **, wordlist *);
-
-/** Concatenate the words in a wordlist
- *
- * \deprecated use SBufListContainerJoin(SBuf()) from sbuf/Algorithms.h instead
- */
-void wordlistJoin(wordlist **, wordlist **);
-
/// destroy a wordlist
void wordlistDestroy(wordlist **);