diff options
Diffstat (limited to 'wordsplit.h')
-rw-r--r-- | wordsplit.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wordsplit.h b/wordsplit.h index 3451979..7c14cea 100644 --- a/wordsplit.h +++ b/wordsplit.h @@ -52,6 +52,10 @@ struct wordsplit const char *ws_comment; /* [Input] (WRDSF_COMMENT) Comment characters. */ const char *ws_escape[2]; /* [Input] (WRDSF_ESCAPE) Characters to be escaped with backslash. */ + const char *ws_namechar; /* [Input] (WRDSO_NAMECHAR) Characters that can + be parts of a variable name, in addition to + alphanumerics and underscore. */ + void (*ws_alloc_die) (wordsplit_t *wsp); /* [Input] (WRDSF_ALLOC_DIE) Function called when out of memory. Must not return. */ @@ -247,6 +251,8 @@ struct wordsplit /* Enable negative positional indices (${-1} is the last positional parameter) */ #define WRDSO_PARAM_NEGIDX 0x00008000 +/* ws_namechar member is initialized */ +#define WRDSO_NAMECHAR 0x00010000 #define WRDSO_BSKEEP WRDSO_BSKEEP_WORD #define WRDSO_OESC WRDSO_OESC_WORD |