diff options
Diffstat (limited to 'include/smap/wordsplit.h')
-rw-r--r-- | include/smap/wordsplit.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/smap/wordsplit.h b/include/smap/wordsplit.h index 0c257c3..3b27d25 100644 --- a/include/smap/wordsplit.h +++ b/include/smap/wordsplit.h @@ -34,7 +34,7 @@ struct wordsplit { __attribute__ ((__format__ (__printf__, 1, 2))); const char **ws_env; - const char *(*ws_getvar) (const char *, size_t, void *); + char *(*ws_getvar) (const char *, size_t, void *); void *ws_closure; const char *ws_input; @@ -135,6 +135,8 @@ void wordsplit_sh_unquote_copy(char *dst, const char *src, size_t n); void wordsplit_c_unquote_copy(char *dst, const char *src, size_t n); void wordsplit_c_quote_copy(char *dst, const char *src, int quote_hex); +int wordsplit_varnames(const char *input, char ***ret_names, int af); + void wordsplit_perror(struct wordsplit *ws); const char *wordsplit_strerror(struct wordsplit *ws); |