aboutsummaryrefslogtreecommitdiff
path: root/paludis/config_file.se
blob: 3c31656b5448f3d90ed2a6fcac40470fac76b2b7 (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
#!/bin/bash
# vim: set sw=4 sts=4 et ft=sh :

make_enum_LineConfigFileOption()
{
    prefix lcfo

    key lcfo_disallow_continuations     "Do not recognise line continuations"
    key lcfo_disallow_comments          "Do not recognise comments"
    key lcfo_preserve_whitespace        "Preserve exact whitespace"
    key lcfo_no_skip_blank_lines        "Do not skip blank lines"

    doxygen_comment << "END"
        /**
         * Options for a LineConfigFile.
         *
         * \see LineConfigFile
         * \see LineConfigFileOptions
         * \ingroup grplineconfigfile
         */
END
}

make_enum_KeyValueConfigFileOption()
{
    prefix kvcfo

    key kvcfo_disallow_continuations                 "Do not recognise line continuations"
    key kvcfo_disallow_comments                      "Do not recognise comments"
    key kvcfo_disallow_space_around_equals           "Do not allow spaces around equals"
    key kvcfo_disallow_space_inside_unquoted_values  "Do not allow spaces inside unquoted values"
    key kvcfo_disallow_single_quoted_strings         "Do not allow single quoted strings"
    key kvcfo_disallow_double_quoted_strings         "Do not allow double quoted strings"
    key kvcfo_disallow_unquoted_values               "Do not allow unquoted values"
    key kvcfo_disallow_variables                     "Do not allow variable expansions"
    key kvcfo_disallow_source                        "Do not allow the source command"
    key kvcfo_preserve_whitespace                    "Do not strip trailing whitespace from values"

    doxygen_comment << "END"
        /**
         * Options for a KeyValueConfigFile.
         *
         * \see KeyValueConfigFile
         * \see KeyValueConfigFileOptions
         * \ingroup grpkvconfigfile
         */
END
}