Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
0db7e22
Added the method cbor_encode_raw to the API
Nov 7, 2019
467b0eb
check app arguments in more strict manner
phirsov Feb 9, 2020
722f649
indentation typo fixed
phirsov Feb 9, 2020
8acb09f
bytestring output pretty-print improved
phirsov Feb 9, 2020
1a43b45
string pretty-print improved
phirsov Feb 9, 2020
e35f736
only build docs on master branch
mcr Jan 25, 2021
7c349db
Add checks for memory allocation failures
mahavirj Feb 24, 2021
d106276
change the argument name from "encoder" to "parentEncoder", as the na…
mcr Jan 19, 2021
5115a87
Merge commit 'refs/pull/177/head' of github.com:intel/tinycbor
thiagomacieira Sep 3, 2021
3d8da2c
Merge commit 'refs/pull/197/head' of github.com:intel/tinycbor
thiagomacieira Sep 3, 2021
4c7b15c
clarify that CborIndefiniteLength creates an indefinite map, which is…
mcr Jan 19, 2021
11590e4
Docs: update to match the last commit for create_array() too
thiagomacieira Sep 3, 2021
dbf8f13
Update references of 'master' to 'main'
thiagomacieira Sep 3, 2021
cb37252
Update version number for TinyCBOR 0.6
thiagomacieira Dec 24, 2017
814ec02
enhancement #149 implemented: access half-precision floating point da…
phirsov Jan 21, 2019
9ed9d03
Update the qmake buildsystem source files
thiagomacieira Sep 3, 2021
5910b7d
Merge remote-tracking branch 'origin/main' into HEAD
thiagomacieira Sep 3, 2021
e2a4ed1
Build system: Add a few -Werror for sane C development
thiagomacieira Sep 3, 2021
bf919a2
AppVeyor: update to use more recent Qt and MSVC
thiagomacieira Sep 3, 2021
f798bc0
Validator: simplify (and correct) the map sorting verification
thiagomacieira Dec 18, 2017
6f001e6
Add a way to disable the declaration of some API
thiagomacieira Jul 1, 2018
2d8e73b
Tests: Catch an earlier QCOMPARE failure in compare()
thiagomacieira Apr 4, 2019
5521ccf
Parser: centralize checking of the available buffer size
thiagomacieira Dec 18, 2017
b8ea2eb
Parser: create a function that centralizes reading from the buffer
thiagomacieira Dec 18, 2017
14299a2
Parser: Save the fact that we found a 64-bit number
thiagomacieira Dec 20, 2017
0b4f7f6
Parser: inline the cbor_value_get_half_float() function
thiagomacieira Dec 22, 2017
a8515c4
Parser: use read_bytes() in the extract_number function
thiagomacieira Dec 18, 2017
eddbf5b
Parser: rework the two extract_{number,length} internal functions
thiagomacieira Dec 18, 2017
5d871b2
Validator & Pretty: Remove the last uses of _cbor_value_extract_number
thiagomacieira Dec 18, 2017
d503c11
Pretty & Validation: remove the last direct accesses to CborValue::ptr
thiagomacieira Dec 18, 2017
95129b8
Parser: let cbor_value_leave_container() consume the Break
thiagomacieira Jan 24, 2018
34c8452
WIP Initial API for delegated streaming in
thiagomacieira Dec 18, 2017
e26ff9a
WIP Initial API for delegated streaming out
thiagomacieira Dec 17, 2017
87a7a93
Move the testdata out to a separate .cpp so they can be reused
thiagomacieira Dec 17, 2017
5159ec3
Parser: add a way to parse the current element again
thiagomacieira Dec 22, 2017
8adc3cf
Parser: modify the zero-copy string API
thiagomacieira Feb 6, 2018
d393c16
Parser: fix reading it->extra on big endian when bytesNeeded == 1
mitya57 Apr 11, 2019
10f7399
.gitignore: ignore the c90 test too
thiagomacieira Sep 3, 2021
c9ebbaa
Merge commit 'refs/pull/169/head' of github.com:intel/tinycbor into dev
thiagomacieira Sep 3, 2021
cc7774e
Encoder: add unit test for cbor_encode_raw
thiagomacieira Sep 3, 2021
c730a0c
Parser: modify the zero-copy string API
thiagomacieira Feb 6, 2018
b073ab5
WSHUB-458: cborparser: Move parser initialisation to common routine.
sjlongland Jun 30, 2021
069240c
WSHUB-458: cborparser: Document `cbor_parser_init_reader`.
sjlongland Jun 30, 2021
6679e85
WSHUB-458: cbor: Document the reader interface.
sjlongland Jun 30, 2021
9829c2a
WSHUB-458: cborparser: Pass CborValue to operation routines.
sjlongland Jul 2, 2021
6f0056e
WSHUB-458: cborparser: Move `ops` outside of `union`
sjlongland Jul 2, 2021
8d699d3
WSHUB-458: cborparser: Move the reader context to CborParser.
sjlongland Jul 2, 2021
d352a9a
WSHUB-458: cborparser: Update documentation
sjlongland Jul 3, 2021
15483a6
WSHUB-458: reader unit tests: Simplify the example reader
sjlongland Jul 3, 2021
81ce7bd
WSHUB-458: cborencoder: Document the write callback function.
sjlongland Jul 3, 2021
767108a
WSHUB-458: examples: Add buffered writer example.
sjlongland Jul 7, 2021
027704f
WSHUB-458: examples: Add buffered reader example
sjlongland Jul 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,13 @@ version: 0.6-build-{build}
pull_requests:
do_not_increment_build_number: true
image:
- Visual Studio 2015
- Visual Studio 2013
- Visual Studio 2017
- Visual Studio 2019
install:
- cmd: >-
set tests=1
if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86) & (set QTDIR=C:\Qt\5.13\msvc2017)

if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" (call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64) & (set tests=0)

if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86) & (set QTDIR=C:\Qt\5.9\msvc2015)

if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64) & (set QTDIR=C:\Qt\5.9\msvc2017_64)
if /i "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" (call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64) & (set QTDIR=C:\Qt\6.1\msvc2019_64)

set path=%PATH%;%QTDIR%\bin
build_script:
Expand All @@ -22,14 +17,12 @@ build_script:

cd tests

if /i "%tests%"=="1" qmake CONFIG-=release CONFIG+=debug
qmake CONFIG-=release CONFIG+=debug

if /i "%tests%"=="1" nmake -nologo -s
nmake -nologo -s
test_script:
- cmd: >-
if /i "%tests%"=="1" nmake -s -nologo TESTARGS=-silent check

if /i "%tests%"=="0" echo Tests skipped.
nmake -s -nologo TESTARGS=-silent check
artifacts:
- path: lib\tinycbor.lib
deploy: off
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
env:
- BUILD_DOCS=false
jobs:
include:
- # only build docs on main
if: branch = main
env: BUILD_DOCS=true

language: cpp
matrix:
include:
Expand Down Expand Up @@ -67,7 +75,7 @@ script:
- make -s -f Makefile.configure configure | tee .config
- make -k
CFLAGS="$CFLAGS -march=native -g1 -Wall -Wextra -Werror"
CPPFLAGS="-DNDEBUG"
CPPFLAGS="-DNDEBUG -DCBOR_ENCODER_WRITER_CONTROL=-1 -DCBOR_PARSER_READER_CONTROL=-1"
lib/libtinycbor.a
- size lib/libtinycbor.a | tee sizes
- make -s clean
Expand All @@ -81,4 +89,4 @@ script:
(cd tests && make TESTARGS=-silent check -k
TESTRUNNER=`which valgrind 2>/dev/null`)
- make -s clean
- ./scripts/update-docs.sh
- ! [ $BUILD_DOCS ] || ./scripts/update-docs.sh
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ tag: distcheck
.SECONDARY:

cflags := $(CPPFLAGS) -I$(SRCDIR)src
cflags += -std=gnu99 $(CFLAGS)
cflags += -std=gnu99 $(CFLAGS) \
-Werror=incompatible-pointer-types \
-Werror=implicit-function-declaration \
-Werror=int-conversion
%.o: %.c
@test -d $(@D) || $(MKDIR) $(@D)
$(CC) $(cflags) $($(basename $(notdir $@))_CCFLAGS) -c -o $@ $<
Expand Down
Loading