Commit c0fb6442 authored by Daniel Friesel's avatar Daniel Friesel
Browse files

Run tests with both C (c99, c11) and C++ (c++11, c++20) compilers

parent 8768a30f
Loading
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
**zlib-deflate-nostdlib** provides a zlib decompressor (RFC 1950) and deflate
reader (RFC 1951) suitable for 8- and 16-bit microcontrollers. It works
fine on MCUs as small as ATMega328P (used, for example, in the Arduino Nano)
and MSP430FR5994. It is compatible with both C (e.g. c99) and C++
(e.g. c++20). Apart from type definitions for (u)int8\_t, (u)int16\_t,
and (u)int32\_t, which are typically provided by stdint.h, it has no external
dependencies.
and MSP430FR5994. It is compatible with both C (from c99 on) and C++.  Apart
from type definitions for (u)int8\_t, (u)int16\_t, and (u)int32\_t, which are
typically provided by stdint.h, it has no external dependencies.

zlib-deflate-nostdlib is focused on a low memory footprint. It is not optimized
for speed and uses a pretty naive implementation right now.

test/compile-c++11.sh

0 → 100755
+3 −0
Original line number Diff line number Diff line
#!/bin/sh

exec g++ -std=c++11 -Wall -Wextra -pedantic -I../src -o inflate inflate-app.c ../src/inflate.c

test/compile-c++20.sh

0 → 100755
+4 −0
Original line number Diff line number Diff line
#!/bin/sh

# g++ as provided by Debian Buster (used for CI tests) does not support c++20
exec g++ -std=c++2a -Wall -Wextra -pedantic -I../src -o inflate inflate-app.c ../src/inflate.c

test/compile-c11.sh

0 → 100755
+3 −0
Original line number Diff line number Diff line
#!/bin/sh

exec gcc -std=c11 -Wall -Wextra -pedantic -I../src -o inflate inflate-app.c ../src/inflate.c

test/compile-c99.sh

0 → 100755
+3 −0
Original line number Diff line number Diff line
#!/bin/sh

exec gcc -std=c99 -Wall -Wextra -pedantic -I../src -o inflate inflate-app.c ../src/inflate.c
Loading