zephyr/ext/lib/encoding/tinycbor/Kconfig
Ulf Magnusson 8cf8db3a73 Kconfig: Use a short, consistent style for prompts
Consistently use

    config FOO
            bool/int/hex/string "Prompt text"

instead of

    config FOO
            bool/int/hex/string
            prompt "Prompt text"

(...and a bunch of other variations that e.g. swapped the order of the
type and the 'prompt', or put other properties between them).

The shorthand is fully equivalent to using 'prompt'. It saves lines and
avoids tricking people into thinking there is some semantic difference.

Most of the grunt work was done by a modified version of
https://unix.stackexchange.com/questions/26284/
how-can-i-use-sed-to-replace-a-multi-line-string/26290#26290, but some
of the rarer variations had to be converted manually.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-08-15 04:10:10 -07:00

72 lines
1.9 KiB
Plaintext

#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
config TINYCBOR
bool "tinyCBOR Support"
help
This option enables the tinyCBOR library.
if TINYCBOR
config CBOR_NO_DFLT_WRITER
bool "No default writer support"
help
This option specifies whether a default writer exists.
config CBOR_NO_DFLT_READER
bool "No default reader support"
help
This option specifies whether a default reader exists.
config CBOR_ENCODER_NO_CHECK_USER
bool "No encoder checks for user args for validity"
help
This option specifies whether a check user exists for a cbor encoder.
config CBOR_PARSER_MAX_RECURSIONS
int "Parser max recursions"
default 1024
help
This option specifies max recursions for the parser.
config CBOR_PARSER_NO_STRICT_CHECKS
bool "No strict parser checks"
help
This option enables the strict parser checks.
config CBOR_FLOATING_POINT
bool "Floating point support"
select NEWLIB_LIBC
help
This option enables floating point support.
config CBOR_HALF_FLOAT_TYPE
bool "Half float type support"
select NEWLIB_LIBC
help
This option enables half float type support.
config CBOR_WITHOUT_OPEN_MEMSTREAM
bool "Without open memstream"
default y
help
This option enables open memstream support.
endif #TINYCBOR