Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 137) sorted by relevance

123456

/nanopb-2.7.6/tests/encode_arrays_unpacked/
DSConscript6 c = Copy("$TARGET", "$SOURCE")
7 env.Command("alltypes.pb.h", "$BUILD/alltypes/alltypes.pb.h", c)
8 env.Command("alltypes.pb.c", "$BUILD/alltypes/alltypes.pb.c", c)
9 env.Command("encode_alltypes.c", "$BUILD/alltypes/encode_alltypes.c", c)
10 env.Command("decode_alltypes.c", "$BUILD/alltypes/decode_alltypes.c", c)
19 strict.Object("pb_decode_unpacked.o", "$NANOPB/pb_decode.c")
20 strict.Object("pb_encode_unpacked.o", "$NANOPB/pb_encode.c")
21 strict.Object("pb_common_unpacked.o", "$NANOPB/pb_common.c")
24 enc = opts.Program(["encode_alltypes.c", "alltypes.pb.c", "pb_encode_unpacked.o", "pb_common_unpack…
25 dec = opts.Program(["decode_alltypes.c", "alltypes.pb.c", "pb_decode_unpacked.o", "pb_common_unpack…
/nanopb-2.7.6/tests/buffer_only/
DSConscript6 c = Copy("$TARGET", "$SOURCE")
7 env.Command("alltypes.pb.h", "$BUILD/alltypes/alltypes.pb.h", c)
8 env.Command("alltypes.pb.c", "$BUILD/alltypes/alltypes.pb.c", c)
9 env.Command("encode_alltypes.c", "$BUILD/alltypes/encode_alltypes.c", c)
10 env.Command("decode_alltypes.c", "$BUILD/alltypes/decode_alltypes.c", c)
19 strict.Object("pb_decode_bufonly.o", "$NANOPB/pb_decode.c")
20 strict.Object("pb_encode_bufonly.o", "$NANOPB/pb_encode.c")
21 strict.Object("pb_common_bufonly.o", "$NANOPB/pb_common.c")
24 enc = opts.Program(["encode_alltypes.c", "alltypes.pb.c", "pb_encode_bufonly.o", "pb_common_bufonly…
25 dec = opts.Program(["decode_alltypes.c", "alltypes.pb.c", "pb_decode_bufonly.o", "pb_common_bufonly…
/nanopb-2.7.6/tests/no_errmsg/
DSConscript6 c = Copy("$TARGET", "$SOURCE")
7 env.Command("alltypes.pb.h", "$BUILD/alltypes/alltypes.pb.h", c)
8 env.Command("alltypes.pb.c", "$BUILD/alltypes/alltypes.pb.c", c)
9 env.Command("encode_alltypes.c", "$BUILD/alltypes/encode_alltypes.c", c)
10 env.Command("decode_alltypes.c", "$BUILD/alltypes/decode_alltypes.c", c)
19 strict.Object("pb_decode_noerr.o", "$NANOPB/pb_decode.c")
20 strict.Object("pb_encode_noerr.o", "$NANOPB/pb_encode.c")
21 strict.Object("pb_common_noerr.o", "$NANOPB/pb_common.c")
24 enc = opts.Program(["encode_alltypes.c", "alltypes.pb.c", "pb_encode_noerr.o", "pb_common_noerr.o"])
25 dec = opts.Program(["decode_alltypes.c", "alltypes.pb.c", "pb_decode_noerr.o", "pb_common_noerr.o"])
/nanopb-2.7.6/tests/validate_utf8/
DSConscript6 c = Copy("$TARGET", "$SOURCE")
7 env.Command("alltypes.pb.h", "$BUILD/alltypes/alltypes.pb.h", c)
8 env.Command("alltypes.pb.c", "$BUILD/alltypes/alltypes.pb.c", c)
9 env.Command("encode_alltypes.c", "$BUILD/alltypes/encode_alltypes.c", c)
10 env.Command("decode_alltypes.c", "$BUILD/alltypes/decode_alltypes.c", c)
19 strict.Object("pb_decode_validateutf8.o", "$NANOPB/pb_decode.c")
20 strict.Object("pb_encode_validateutf8.o", "$NANOPB/pb_encode.c")
21 strict.Object("pb_common_validateutf8.o", "$NANOPB/pb_common.c")
24 enc = opts.Program(["encode_alltypes.c", "alltypes.pb.c", "pb_encode_validateutf8.o", "pb_common_va…
25 dec = opts.Program(["decode_alltypes.c", "alltypes.pb.c", "pb_decode_validateutf8.o", "pb_common_va…
/nanopb-2.7.6/tests/cxx_main_program/
DSConscript11 c = Copy("$TARGET", "$SOURCE")
12 env.Command("pb_encode.cxx", "#../pb_encode.c", c)
13 env.Command("pb_decode.cxx", "#../pb_decode.c", c)
14 env.Command("pb_common.cxx", "#../pb_common.c", c)
15 env.Command("alltypes.pb.h", "$BUILD/alltypes/alltypes.pb.h", c)
16 env.Command("alltypes.pb.cxx", "$BUILD/alltypes/alltypes.pb.c", c)
17 env.Command("encode_alltypes.cxx", "$BUILD/alltypes/encode_alltypes.c", c)
18 env.Command("decode_alltypes.cxx", "$BUILD/alltypes/decode_alltypes.c", c)
/nanopb-2.7.6/tests/field_size_16/
DSConscript7 c = Copy("$TARGET", "$SOURCE")
8 env.Command("encode_alltypes.c", "$BUILD/alltypes/encode_alltypes.c", c)
9 env.Command("decode_alltypes.c", "$BUILD/alltypes/decode_alltypes.c", c)
20 strict.Object("pb_decode_fields16.o", "$NANOPB/pb_decode.c")
21 strict.Object("pb_encode_fields16.o", "$NANOPB/pb_encode.c")
22 strict.Object("pb_common_fields16.o", "$NANOPB/pb_common.c")
25 enc = opts.Program(["encode_alltypes.c", "alltypes.pb.c", "pb_encode_fields16.o", "pb_common_fields…
26 dec = opts.Program(["decode_alltypes.c", "alltypes.pb.c", "pb_decode_fields16.o", "pb_common_fields…
/nanopb-2.7.6/tests/field_size_32/
DSConscript7 c = Copy("$TARGET", "$SOURCE")
8 env.Command("encode_alltypes.c", "$BUILD/alltypes/encode_alltypes.c", c)
9 env.Command("decode_alltypes.c", "$BUILD/alltypes/decode_alltypes.c", c)
20 strict.Object("pb_decode_fields32.o", "$NANOPB/pb_decode.c")
21 strict.Object("pb_encode_fields32.o", "$NANOPB/pb_encode.c")
22 strict.Object("pb_common_fields32.o", "$NANOPB/pb_common.c")
25 enc = opts.Program(["encode_alltypes.c", "alltypes.pb.c", "pb_encode_fields32.o", "pb_common_fields…
26 dec = opts.Program(["decode_alltypes.c", "alltypes.pb.c", "pb_decode_fields32.o", "pb_common_fields…
/nanopb-2.7.6/examples/simple/
DMakefile9 CSRC = simple.c # The main program
10 CSRC += simple.pb.c # The compiled protocol definition
11 CSRC += $(NANOPB_DIR)/pb_encode.c # The nanopb encoder
12 CSRC += $(NANOPB_DIR)/pb_decode.c # The nanopb decoder
13 CSRC += $(NANOPB_DIR)/pb_common.c # The nanopb common parts
20 simple.pb.c: simple.proto
/nanopb-2.7.6/tests/any_type/
DSConscript13 enc = incpath.Program(["encode_any.c", "anytest.pb.c", "google/protobuf/any.pb.c",
14 "google/protobuf/duration.pb.c",
17 dec = incpath.Program(["decode_any.c", "anytest.pb.c", "google/protobuf/any.pb.c",
18 "google/protobuf/duration.pb.c",
/nanopb-2.7.6/tests/io_errors_pointers/
DSConscript5 c = Copy("$TARGET", "$SOURCE")
6 env.Command("alltypes.proto", "#alltypes/alltypes.proto", c)
7 env.Command("io_errors.c", "#io_errors/io_errors.c", c)
11 ioerr = env.Program(["io_errors.c", "alltypes.pb.c",
/nanopb-2.7.6/tests/field_size_16_proto3/
DSConscript14 strict.Object("pb_decode_fields16.o", "$NANOPB/pb_decode.c")
15 strict.Object("pb_encode_fields16.o", "$NANOPB/pb_encode.c")
16 strict.Object("pb_common_fields16.o", "$NANOPB/pb_common.c")
19 enc = opts.Program(["encode_alltypes.c", "alltypes.pb.c", "pb_encode_fields16.o", "pb_common_fields…
20 dec = opts.Program(["decode_alltypes.c", "alltypes.pb.c", "pb_decode_fields16.o", "pb_common_fields…
/nanopb-2.7.6/tests/backwards_compatibility/
DSConscript1 # Check that the old generated .pb.c/.pb.h files are still compatible with the
6 enc = env.Program(["encode_legacy.c", "alltypes_legacy.c", "$COMMON/pb_encode.o", "$COMMON/pb_commo…
7 dec = env.Program(["decode_legacy.c", "alltypes_legacy.c", "$COMMON/pb_decode.o", "$COMMON/pb_commo…
/nanopb-2.7.6/examples/network_server/
DMakefile13 rm -f server client fileproto.pb.c fileproto.pb.h
15 %: %.c common.c fileproto.pb.c
DREADME.txt14 Writing to fileproto.pb.h and fileproto.pb.c
15 cc -ansi -Wall -Werror -I .. -g -O0 -I../.. -o server server.c
16 ../../pb_decode.c ../../pb_encode.c fileproto.pb.c common.c
17 cc -ansi -Wall -Werror -I .. -g -O0 -I../.. -o client client.c
18 ../../pb_decode.c ../../pb_encode.c fileproto.pb.c common.c
49 common.c/h contains functions that allow nanopb to read and write directly from
53 server.c contains the code to open a listening socket, to respond to clients and
56 client.c contains the code to connect to a server, to send a request and to print
/nanopb-2.7.6/tests/cyclic_messages/
DSConscript5 c = Copy("$TARGET", "$SOURCE")
6 env.Command("cyclic_callback.proto", "cyclic.proto", c)
9 enc_callback = env.Program(["encode_cyclic_callback.c", "cyclic_callback.pb.c", "$COMMON/pb_encode.…
/nanopb-2.7.6/tests/common/
DSConscript12 # Binaries of the pb_decode.c and pb_encode.c
16 strict.Object("pb_decode.o", "$NANOPB/pb_decode.c")
17 strict.Object("pb_encode.o", "$NANOPB/pb_encode.c")
18 strict.Object("pb_common.o", "$NANOPB/pb_common.c")
22 # Uses malloc_wrappers.c to count allocations.
40 malloc_strict.Object("pb_decode_with_malloc.o", "$NANOPB/pb_decode.c")
41 malloc_strict.Object("pb_encode_with_malloc.o", "$NANOPB/pb_encode.c")
42 malloc_strict.Object("pb_common_with_malloc.o", "$NANOPB/pb_common.c")
44 malloc_env.Object("malloc_wrappers.o", "malloc_wrappers.c")
/nanopb-2.7.6/tests/options/
DSConscript6 env.Object('options.pb.c')
8 env.Match('options_c.matched', ['options.pb.c', 'options_c.expected'])
11 env.Object('proto3_options.pb.c')
14 p = env.Program(["options.c", "options.pb.c", "$COMMON/pb_decode.o", "$COMMON/pb_encode.o", "$COMMO…
/nanopb-2.7.6/tests/cxx_callback_datatype/
DSConscript9 # not enabled for "c++03", which fails with "warning: offset of on non-POD type 'TestMessage'"
12 for std in ["c++11", "c++14", "c++17", "c++20"]:
25 …_datatype.cpp', 'message.pb.cpp', '$NANOPB/pb_decode.c', '$NANOPB/pb_encode.c', '$NANOPB/pb_common…
/nanopb-2.7.6/tests/cxx_descriptor/
DSConscript9 for std in ["c++03", "c++11", "c++14", "c++17", "c++20"]:
23 o2 = e.Object('message.pb_{}'.format(std), 'message.pb.c')
/nanopb-2.7.6/tests/common_unittests/
DSConscript1 # Test functions in pb_common.c
4 p = env.Program(["common_unittests.c", "$BUILD/alltypes/alltypes.pb.c"])
/nanopb-2.7.6/tests/alltypes_callback/
DSConscript5 c = Copy("$TARGET", "$SOURCE")
6 env.Command("alltypes.proto", "#alltypes/alltypes.proto", c)
9 enc = env.Program(["encode_alltypes_callback.c", "alltypes.pb.c", "$COMMON/pb_encode.o", "$COMMON/p…
10 dec = env.Program(["decode_alltypes_callback.c", "alltypes.pb.c", "$COMMON/pb_decode.o", "$COMMON/p…
25 mallocbin1 = malloc_env.Object("decode_with_malloc.o", "decode_alltypes_callback.c")
26 mallocbin2 = malloc_env.Object("alltypes_malloc.pb.o", "alltypes.pb.c")
/nanopb-2.7.6/tests/regression/issue_203/
DSConscript6 env.Command(['file1.pb.c', 'file1.pb.h', 'file2.pb.c', 'file2.pb.h'], ['file1.proto', 'file2.proto'…
9 env.Object('file1.pb.c')
10 env.Object('file2.pb.c')
/nanopb-2.7.6/tests/io_errors/
DSConscript5 c = Copy("$TARGET", "$SOURCE")
6 env.Command("alltypes.proto", "#alltypes/alltypes.proto", c)
10 ioerr = env.Program(["io_errors.c", "alltypes.pb.c",
/nanopb-2.7.6/tests/float_double_conversion/
DSConscript15 strict.Object("pb_decode_fldbl.o", "$NANOPB/pb_decode.c")
16 strict.Object("pb_encode_fldbl.o", "$NANOPB/pb_encode.c")
17 strict.Object("pb_common_fldbl.o", "$NANOPB/pb_common.c")
20 test = opts.Program(["float_double_conversion.c", "doublemsg.pb.c", "pb_encode_fldbl.o", "pb_decode…
/nanopb-2.7.6/tests/alltypes_proto3_callback/
DSConscript5 c = Copy("$TARGET", "$SOURCE")
6 env.Command("alltypes.proto", "#alltypes_proto3/alltypes.proto", c)
9 enc = env.Program(["encode_alltypes_callback.c", "alltypes.pb.c", "$COMMON/pb_encode.o", "$COMMON/p…
10 dec = env.Program(["decode_alltypes_callback.c", "alltypes.pb.c", "$COMMON/pb_decode.o", "$COMMON/p…

123456