Home
last modified time | relevance | path

Searched +full:- +full:s (Results 1 – 15 of 15) sorted by relevance

/tinycbor-2.7.6/tools/cbordump/
Dcbordump.c39 fprintf(stderr, "%s: %s\n", fname, strerror(errno)); in xrealloc()
47 fprintf(stderr, "%s: %s\n", fname, cbor_error_string(err)); in printerror()
62 size_t n = fread(buffer + buflen, 1, bufsize - buflen, in); in dumpFile()
67 fprintf(stderr, "%s: %s\n", fname, strerror(errno)); in dumpFile()
95 while ((c = getopt(argc, argv, "MOSUcjhfn")) != -1) { in main()
117 case 'S': in main()
125 fprintf(stderr, "Unknown option -%c.\n", optopt); in main()
132 " -c Print a CBOR dump (see RFC 7049) (default)\n" in main()
133 " -j Print a JSON equivalent version\n" in main()
134 " -h Print this help output and exit\n" in main()
[all …]
/tinycbor-2.7.6/src/
Dparsetags.pl1 #!/usr/bin/perl -l
31 "TextString" => "UTF-8 text string",
39 "HalfFloat" => "IEEE 754 half-precision floating point",
40 "Float" => "IEEE 754 single-precision floating point",
41 "Double" => "IEEE 754 double-precision floating point"
46 s/\s*#.*$//;
71 printf " <td>%s</td>\n", join(', ', @types);
72 printf " <td>%s</td>\n", $tags{$n}{semantic};
81 printf "%s\n Cbor%sTag%s = %d", $comma,
83 ' ' x (23 - length($tags{$n}{id})),
[all …]
Dcbortojson.c59 * in a post-processing phase.
63 * of metadata JSON values that can be used by a JSON-to-CBOR converter to
77 * These functions also perform UTF-8 validation in CBOR text strings. If they
78 * encounter a sequence of bytes that not permitted in UTF-8, they will return
80 * in UTF-8.
99 * double-precision floating point. This means JSON is not capable of
100 * representing integers numbers outside the range [-(2<sup>53</sup>)+1,
101 * 2<sup>53</sup>-1] and is not capable of representing NaN or infinite. If the
104 * conversion will be "null". In addition, the distinction between half-,
105 * single- and double-precision is lost.
[all …]
Dcborpretty.c64 * These functions also perform UTF-8 validation in CBOR text strings. If they
65 * encounter a sequence of bytes that not permitted in UTF-8, they will return
67 * in UTF-8.
82 * largely borrowed from JSON, but modified to suit CBOR's different data
88 * Base-10 (decimal) text representation of the value
92 …* C-style escaped string in quotes, with C11/C++11 escaping of Unicode codepoints above U+007…
106 …* with float values suffixed by "f" and half-float values suffixed by "f16" (doubles have no …
108 * Comma-separated list of elements, enclosed in square brackets ("[" and "]").
111 * Comma-separated list of key-value pairs, with the key and value separated
118 while (n--) { in hexDump()
[all …]
Dcborerrorstrings.c38 * out-of-memory condition (CborErrorOutOfMemory), which the functions for \ref
39 * CborEncoding may report in bit-wise OR with other conditions.
51 …* \value CborErrorIO An I/O error occurred, probably due to an out-of-memory sit…
63 * \value CborErrorInvalidUtf8TextString Illegal UTF-8 encoding found while parsing CBOR Text String
64 …* \value CborErrorTooManyItems Too many items were added to CBOR map or array of pre-deter…
65 …* \value CborErrorTooFewItems Too few items were added to CBOR map or array of pre-determ…
66 * \value CborErrorDataTooLarge Data item size exceeds TinyCBOR's implementation limits
67 * \value CborErrorNestingTooDeep Data item nesting exceeds TinyCBOR's implementation limits
135 return _("invalid UTF-8 content in string"); in cbor_error_string()
Dcborparser.c50 * TinyCBOR provides functions for pull-based stream parsing of a CBOR-encoded
76 * from a source trusted to send one properly-encoded integer. The following
99 * The code above does not execute a range-check either: it is possible that
137 * behaves as an iterator in a StAX-style parser.
174 const CborParser *parser = it->parser; in preparse_value()
175 it->type = CborInvalidType; in preparse_value()
178 if (it->offset == parser->end) in preparse_value()
181 uint8_t descriptor = parser->d->get8(parser->d, it->offset); in preparse_value()
183 it->type = type; in preparse_value()
184 it->flags = 0; in preparse_value()
[all …]
Dcborvalidation.c70 …* \value CborValidateShortestFloatingPoint (Canonical) Validate that floating-point numbers are en…
72 …* \value CborValidateShortestNumbers (Canonical) Validate both integrals and floating-point …
83 * encoded in UTF-8.
104 * https://www.iana.org/assignments/cbor-simple-values/cbor-simple-values.xhtml.
114 * first-come-first-serve basis. The official list can be ontained from
115 * https://www.iana.org/assignments/cbor-tags/cbor-tags.xhtml.
132 <td>UTF-8 text string</td>
138 <td>Epoch-based date/time</td>
197 <td>UTF-8 text string</td>
202 <td>UTF-8 text string</td>
[all …]
/tinycbor-2.7.6/
DMakefile9 CFLAGS = -Wall -Wextra
10 LDFLAGS_GCSECTIONS = -Wl,--gc-sections
11 LDFLAGS = $(if $(gc_sections-pass),$(LDFLAGS_GCSECTIONS))
13 GIT_ARCHIVE = git archive --prefix="$(PACKAGE)/" -9
15 INSTALL_DATA = $(INSTALL) -m 644
16 INSTALL_PROGRAM = $(INSTALL) -m 755
18 MKDIR = mkdir -p
43 BUILD_SHARED = $(shell file -L /bin/sh 2>/dev/null | grep -q ELF && echo 1)
72 GIT_DIR := $(strip $(shell git -C $(SRCDIR). rev-parse --git-dir 2> /dev/null))
77 VERSION := $(shell git -C $(SRCDIR). describe --tags | cut -c2-)
[all …]
D.appveyor.yml1 version: 0.5-build-{build}
5 - Visual Studio 2015
6 - Visual Studio 2013
7 - Visual Studio 2017
9 - cmd: >-
20 - cmd: >-
21 nmake -f Makefile.nmake -nologo CFLAGS="-W3 -Os -MDd"
25 if /i "%tests%"=="1" qmake CONFIG-=release CONFIG+=debug
27 if /i "%tests%"=="1" nmake -nologo -s
29 - cmd: >-
[all …]
DMakefile.nmake1 CFLAGS = -W3
31 cd tests & set TESTARGS=-silent & $(MAKE) -s check
33 qmake -o $@ $**
36 -if not exist lib\NUL md lib
37 lib -nologo /out:$@ $**
40 -del $(TINYCBOR_OBJS)
42 -del lib\tinycbor.lib
50 $(CC) -nologo $(CFLAGS) -Isrc -DTINYCBOR_VERSION_SUFFIX="" -c -Fo$@ $<
D.travis.yml4 - os: linux
8 - ubuntu-toolchain-r-test
9 - sourceline: 'ppa:beineri/opt-qt593-trusty'
11 - qt59base valgrind
12 - g++-7
14 - QMAKESPEC=linux-g++
15 - EVAL="CC=gcc-7 && CXX=g++-7"
16 - CFLAGS="-Os"
17 - QMAKEFLAGS="-config release"
18 - os: linux
[all …]
DDoxyfile16 #---------------------------------------------------------------------------
18 #---------------------------------------------------------------------------
21 # that follow. The default is UTF-8 which is also the encoding used for all text
25 # The default value is: UTF-8.
27 DOXYFILE_ENCODING = UTF-8
30 # double-quotes, unless you are using Doxywizard) that should identify the
63 # If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub-
73 # If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII
74 # characters to appear in the names of generated files. If set to NO, non-ASCII
85 # Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States),
[all …]
Dmaketag.pl4 open PROC, "-|", @_ or die("Cannot run $_[0]: $!");
27 my @result = run("git", "config", "--get", "commit.template");
36 open LOG, "-|", "git", "shortlog", "-e", "--no-merges", "--not", @tags;
41 open DIFF, "-|", "git", "diff", "HEAD", "--not", @tags, "--", 'src/*.h', ':!*_p.h';
57 system("git", "tag", "-a", "-F", $tagfile, split(' ', $ENV{GITTAGFLAGS}), "v$v");
65 ++$v[-1];
72 open VERSION, ">", "src/tinycbor-version.h" or die("Cannot open src/tinycbor-version.h: $!");
80 s/^version:.*/version: $v[0].$v[1].$v[2]-build-{build}/;
/tinycbor-2.7.6/tools/json2cbor/
Djson2cbor.c100 *len = out - buffer; in decode_base64_generic()
107 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in decode_base64()
108 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in decode_base64()
109 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, in decode_base64()
110 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, in decode_base64()
111 -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, in decode_base64()
112 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -1, -1, -1, -1, -1, in decode_base64()
113 -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, in decode_base64()
114 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1, in decode_base64()
115 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in decode_base64()
[all …]
/tinycbor-2.7.6/examples/
Dsimplereader.c15 if (fstat(fileno(f), &st) == -1) in readfile()
25 while (nestingLevel--) in indent()
31 while (len--) in dumpbytes()
176 fprintf(stderr, "CBOR parsing failure at offset %ld: %s\n", in main()
177 it.ptr - buf, cbor_error_string(err)); in main()