diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-05-14 19:59:07 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-05-14 19:59:07 +0300 |
commit | 39beda10e855d265b5af74ea53a5d7a89a91296a (patch) | |
tree | 86f671ebea706d691d1667304522c260f56924bd /include | |
parent | f6586d810d8430d6d9f833119af39726a60e4a6c (diff) | |
download | grecs-39beda10e855d265b5af74ea53a5d7a89a91296a.tar.gz grecs-39beda10e855d265b5af74ea53a5d7a89a91296a.tar.bz2 |
wordsplit: whitespace cleanup
Diffstat (limited to 'include')
-rw-r--r-- | include/wordsplit.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/include/wordsplit.h b/include/wordsplit.h index d7eb26f..d4975b3 100644 --- a/include/wordsplit.h +++ b/include/wordsplit.h @@ -32,6 +32,6 @@ typedef struct wordsplit wordsplit_t; given member. - + If not redefined explicitly, most of them are set to some reasonable default value upon entry to wordsplit(). */ -struct wordsplit +struct wordsplit { @@ -41,3 +41,3 @@ struct wordsplit elements in ws_wordv to fill with NULLs. */ - size_t ws_wordn; /* Number of elements ws_wordv can accomodate. */ + size_t ws_wordn; /* Number of elements ws_wordv can accomodate. */ int ws_flags; /* [Input] Flags passed to wordsplit. */ @@ -55,11 +55,11 @@ struct wordsplit void (*ws_alloc_die) (wordsplit_t *wsp); - /* [Input] (WRDSF_ALLOC_DIE) Function called when + /* [Input] (WRDSF_ALLOC_DIE) Function called when out of memory. Must not return. */ void (*ws_error) (const char *, ...) - __attribute__ ((__format__ (__printf__, 1, 2))); - /* [Input] (WRDSF_ERROR) Function used for error + __attribute__ ((__format__ (__printf__, 1, 2))); + /* [Input] (WRDSF_ERROR) Function used for error reporting */ void (*ws_debug) (const char *, ...) - __attribute__ ((__format__ (__printf__, 1, 2))); - /* [Input] (WRDSF_DEBUG) Function used for debug + __attribute__ ((__format__ (__printf__, 1, 2))); + /* [Input] (WRDSF_DEBUG) Function used for debug output. */ @@ -82,3 +82,3 @@ struct wordsplit - /* Temporary storage for parameters. Works similarly to ws_enbuf. + /* Temporary storage for parameters. Works similarly to ws_enbuf. */ @@ -87,5 +87,5 @@ struct wordsplit size_t ws_paramsiz; - + int (*ws_getvar) (char **ret, const char *var, size_t len, void *clos); - /* [Input] (WRDSF_GETVAR, !WRDSF_NOVAR) Looks up + /* [Input] (WRDSF_GETVAR, !WRDSF_NOVAR) Looks up the name VAR (LEN bytes long) in the table of @@ -98,3 +98,3 @@ struct wordsplit and returning WRDSE_USERERR. - Whatever is stored in RET, it must be allocated + Whatever is stored in RET, it must be allocated using malloc(3). */ @@ -103,4 +103,4 @@ struct wordsplit int (*ws_command) (char **ret, const char *cmd, size_t len, char **argv, - void *clos); - /* [Input] (!WRDSF_NOCMD) Returns in the memory + void *clos); + /* [Input] (!WRDSF_NOCMD) Returns in the memory location pointed to by RET the expansion of @@ -112,3 +112,3 @@ struct wordsplit - const char *ws_input; /* Input string (the S argument to wordsplit. */ + const char *ws_input; /* Input string (the S argument to wordsplit. */ size_t ws_len; /* Length of ws_input. */ @@ -121,3 +121,3 @@ struct wordsplit struct wordsplit_node *ws_head, *ws_tail; - /* Doubly-linked list of parsed out nodes. */ + /* Doubly-linked list of parsed out nodes. */ int ws_lvl; /* Invocation nesting level. */ @@ -244,5 +244,5 @@ struct wordsplit -#define WRDSO_BSKEEP WRDSO_BSKEEP_WORD -#define WRDSO_OESC WRDSO_OESC_WORD -#define WRDSO_XESC WRDSO_XESC_WORD +#define WRDSO_BSKEEP WRDSO_BSKEEP_WORD +#define WRDSO_OESC WRDSO_OESC_WORD +#define WRDSO_XESC WRDSO_XESC_WORD |