summaryrefslogtreecommitdiff
path: root/include/mailutils/wordsplit.h
blob: 203d92458ff73ef0e0515bcd9363ea2fec402a67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/* GNU Mailutils -- a suite of utilities for electronic mail
   Copyright (C) 1999-2019 Free Software Foundation, Inc.

   GNU Mailutils is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 3, or (at your option)
   any later version.

   GNU Mailutils is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with GNU Mailutils.  If not, see <http://www.gnu.org/licenses/>. */

/* This header converts wordsplit to mailutils namespace by prefixing each
   exported identifier with mu_ (or MU_, for macros).
   The canonical wordsplit.h header is located in mailutils/sys.
*/

#ifndef __MAILUTILS_WORDSPLIT_H
#define __MAILUTILS_WORDSPLIT_H

# define wordsplit           mu_wordsplit

# define wordsplit_t         mu_wordsplit_t

# define wordsplit_len               mu_wordsplit_len
# define wordsplit_free              mu_wordsplit_free
# define wordsplit_free_words        mu_wordsplit_free_words
# define wordsplit_free_envbuf       mu_wordsplit_free_envbuf
# define wordsplit_free_parambuf     mu_wordsplit_free_parambuf
# define wordsplit_getwords          mu_wordsplit_getwords
# define wordsplit_get_words         mu_wordsplit_get_words
# define wordsplit_append            mu_wordsplit_append
# define wordsplit_c_unquote_char    mu_wordsplit_c_unquote_char
# define wordsplit_c_quote_char	     mu_wordsplit_c_quote_char
# define wordsplit_c_quoted_length   mu_wordsplit_c_quoted_length
# define wordsplit_c_quote_copy	     mu_wordsplit_c_quote_copy
# define wordsplit_perror	     mu_wordsplit_perror
# define wordsplit_strerror	     mu_wordsplit_strerror
# define wordsplit_clearerr          mu_wordsplit_clearerr

# include <mailutils/sys/wordsplit.h>

# define MU_WORDSPLIT_ENV_INIT	     WORDSPLIT_ENV_INIT
# define MU_WRDSF_APPEND	     WRDSF_APPEND
# define MU_WRDSF_DOOFFS	     WRDSF_DOOFFS
# define MU_WRDSF_NOCMD		     WRDSF_NOCMD
# define MU_WRDSF_REUSE		     WRDSF_REUSE
# define MU_WRDSF_SHOWERR	     WRDSF_SHOWERR
# define MU_WRDSF_UNDEF		     WRDSF_UNDEF
# define MU_WRDSF_NOVAR		     WRDSF_NOVAR
# define MU_WRDSF_ENOMEMABRT	     WRDSF_ENOMEMABRT
# define MU_WRDSF_WS		     WRDSF_WS
# define MU_WRDSF_SQUOTE	     WRDSF_SQUOTE
# define MU_WRDSF_DQUOTE	     WRDSF_DQUOTE
# define MU_WRDSF_QUOTE		     WRDSF_QUOTE
# define MU_WRDSF_SQUEEZE_DELIMS     WRDSF_SQUEEZE_DELIMS
# define MU_WRDSF_RETURN_DELIMS	     WRDSF_RETURN_DELIMS
# define MU_WRDSF_SED_EXPR	     WRDSF_SED_EXPR
# define MU_WRDSF_DELIM		     WRDSF_DELIM
# define MU_WRDSF_COMMENT	     WRDSF_COMMENT
# define MU_WRDSF_ALLOC_DIE	     WRDSF_ALLOC_DIE
# define MU_WRDSF_ERROR		     WRDSF_ERROR
# define MU_WRDSF_DEBUG		     WRDSF_DEBUG
# define MU_WRDSF_ENV                WRDSF_ENV
# define MU_WRDSF_GETVAR             WRDSF_GETVAR
# define MU_WRDSF_SHOWDBG            WRDSF_SHOWDBG
# define MU_WRDSF_NOSPLIT            WRDSF_NOSPLIT
# define MU_WRDSF_KEEPUNDEF          WRDSF_KEEPUNDEF
# define MU_WRDSF_WARNUNDEF          WRDSF_WARNUNDEF
# define MU_WRDSF_CESCAPES           WRDSF_CESCAPES
# define MU_WRDSF_CLOSURE            WRDSF_CLOSURE
# define MU_WRDSF_ENV_KV             WRDSF_ENV_KV
# define MU_WRDSF_ESCAPE             WRDSF_ESCAPE
# define MU_WRDSF_INCREMENTAL        WRDSF_INCREMENTAL
# define MU_WRDSF_PATHEXPAND         WRDSF_PATHEXPAND
# define MU_WRDSF_OPTIONS            WRDSF_OPTIONS
# define MU_WRDSF_DEFFLAGS           WRDSF_DEFFLAGS

# define MU_WRDSO_NULLGLOB           WRDSO_NULLGLOB
# define MU_WRDSO_FAILGLOB           WRDSO_FAILGLOB
# define MU_WRDSO_DOTGLOB            WRDSO_DOTGLOB
# define MU_WRDSO_GETVARPREF         WRDSO_GETVARPREF
# define MU_WRDSO_BSKEEP_WORD        WRDSO_BSKEEP_WORD
# define MU_WRDSO_OESC_WORD          WRDSO_OESC_WORD
# define MU_WRDSO_XESC_WORD          WRDSO_XESC_WORD
# define MU_WRDSO_MAXWORDS           WRDSO_MAXWORDS
# define MU_WRDSO_BSKEEP_QUOTE       WRDSO_BSKEEP_QUOTE
# define MU_WRDSO_OESC_QUOTE         WRDSO_OESC_QUOTE
# define MU_WRDSO_XESC_QUOTE         WRDSO_XESC_QUOTE
# define MU_WRDSO_NOVARSPLIT         WRDSO_NOVARSPLIT
# define MU_WRDSO_NOCMDSPLIT         WRDSO_NOCMDSPLIT
# define MU_WRDSO_PARAMV             WRDSO_PARAMV
# define MU_WRDSO_PARAM_NEGIDX       WRDSO_PARAM_NEGIDX
# define MU_WRDSO_BSKEEP             WRDSO_BSKEEP
# define MU_WRDSO_OESC               WRDSO_OESC
# define MU_WRDSO_XESC               WRDSO_XESC

# define MU_WRDSO_ESC_SET            WRDSO_ESC_SET
# define MU_WRDSO_ESC_TEST           WRDSO_ESC_TEST

# define MU_WRDSX_WORD               WRDSX_WORD
# define MU_WRDSX_QUOTE              WRDSX_QUOTE

# define MU_WRDSE_OK                 WRDSE_OK
# define MU_WRDSE_EOF                WRDSE_EOF
# define MU_WRDSE_QUOTE              WRDSE_QUOTE
# define MU_WRDSE_NOSPACE            WRDSE_NOSPACE
# define MU_WRDSE_USAGE              WRDSE_USAGE
# define MU_WRDSE_CBRACE             WRDSE_CBRACE
# define MU_WRDSE_UNDEF              WRDSE_UNDEF
# define MU_WRDSE_NOINPUT            WRDSE_NOINPUT
# define MU_WRDSE_PAREN              WRDSE_PAREN
# define MU_WRDSE_GLOBERR            WRDSE_GLOBERR
# define MU_WRDSE_USERERR            WRDSE_USERERR
# define MU_WRDSE_BADPARAM           WRDSE_BADPARAM

#endif

Return to:

Send suggestions and report system problems to the System administrator.