Home
last modified time | relevance | path

Searched refs:status (Results 1 – 25 of 75) sorted by relevance

123

/nanopb-2.7.6/examples/cmake_simple/
Dsimple.c11 bool status; in main() local
31 status = pb_encode(&stream, SimpleMessage_fields, &message); in main()
35 if (!status) in main()
56 status = pb_decode(&stream, SimpleMessage_fields, &message); in main()
59 if (!status) in main()
/nanopb-2.7.6/examples/simple/
Dsimple.c11 bool status; in main() local
31 status = pb_encode(&stream, SimpleMessage_fields, &message); in main()
35 if (!status) in main()
56 status = pb_decode(&stream, SimpleMessage_fields, &message); in main()
59 if (!status) in main()
/nanopb-2.7.6/examples/using_union_messages/
Ddecode.c47 bool status; in decode_unionmessage_contents() local
51 status = pb_decode(&substream, messagetype, dest_struct); in decode_unionmessage_contents()
53 return status; in decode_unionmessage_contents()
64 bool status = false; in main() local
69 status = decode_unionmessage_contents(&stream, MsgType1_fields, &msg); in main()
75 status = decode_unionmessage_contents(&stream, MsgType2_fields, &msg); in main()
81 status = decode_unionmessage_contents(&stream, MsgType3_fields, &msg); in main()
85 if (!status) in main()
Dencode.c52 bool status = false; in main() local
58 status = encode_unionmessage(&stream, MsgType1_fields, &msg); in main()
64 status = encode_unionmessage(&stream, MsgType2_fields, &msg); in main()
70 status = encode_unionmessage(&stream, MsgType3_fields, &msg); in main()
78 if (!status) in main()
/nanopb-2.7.6/tests/oneof/
Ddecode_oneof.c15 int status = 0; in test_oneof_1() local
51 return status; in test_oneof_1()
59 int status = 0; in test_oneof_2() local
88 return status; in test_oneof_2()
114 int status = 0; in main() local
118 status = test_oneof_1(&stream, option); in main()
120 if (status != 0) in main()
121 return status; in main()
124 status = test_oneof_2(&stream, option); in main()
126 if (status != 0) in main()
[all …]
/nanopb-2.7.6/examples/cmake_relpath/
Dsimple.c11 bool status; in main() local
32 status = pb_encode(&stream, SimpleMessage_fields, &message); in main()
36 if (!status) in main()
57 status = pb_decode(&stream, SimpleMessage_fields, &message); in main()
60 if (!status) in main()
/nanopb-2.7.6/tests/fuzztest/
Dfuzztest.c67 bool status; in do_decode() local
91 status = pb_decode_ex(&stream, msgtype, msg, flags); in do_decode()
93 if (status) in do_decode()
100 if (!status) fprintf(stderr, "pb_decode: %s\n", PB_GET_ERROR(&stream)); in do_decode()
101 assert(status); in do_decode()
109 return status; in do_decode()
114 bool status; in do_stream_decode() local
122 status = pb_decode(&stream.stream, msgtype, msg); in do_stream_decode()
124 if (status) in do_stream_decode()
131 if (!status) fprintf(stderr, "pb_decode: %s\n", PB_GET_ERROR(&stream.stream)); in do_stream_decode()
[all …]
/nanopb-2.7.6/tests/io_errors/
Dio_errors.c58 bool status; in main() local
70 status = pb_decode(&stream, AllTypes_fields, &msg); in main()
71 if (status != false) in main()
87 status = pb_decode(&stream, AllTypes_fields, &msg); in main()
89 if (!status) in main()
98 bool status; in main() local
111 status = pb_encode(&stream, AllTypes_fields, &msg); in main()
112 if (status != false) in main()
129 status = pb_encode(&stream, AllTypes_fields, &msg); in main()
131 if (!status) in main()
/nanopb-2.7.6/tests/regression/issue_322/
Ddefaults.c7 int status = 0; in check_defaults() local
21 return status; in check_defaults()
26 int status = 0; in main() local
31 status += check_defaults(&msg); in main()
39 status += check_defaults(&msg); in main()
42 return status; in main()
/nanopb-2.7.6/tests/site_scons/platforms/avr/
Davr_io.c54 int status; in main() local
68 status = app_main(g_args.argc + 1, argv); in main()
72 status = 255; in main()
77 if (status) in main()
79 fprintf(stderr, "Error exit: %d\n", status); in main()
89 return status; in main()
/nanopb-2.7.6/tests/anonymous_oneof/
Ddecode_oneof.c15 int status = 0; in test_oneof_1() local
51 return status; in test_oneof_1()
77 int status = 0; in main() local
81 status = test_oneof_1(&stream, option); in main()
83 if (status != 0) in main()
84 return status; in main()
/nanopb-2.7.6/tests/enum_to_string/
Denum_to_string.c7 int status = 0; in main() local
14 if (status != 0) in main()
17 return status; in main()
/nanopb-2.7.6/tests/msgid/
Dencode_msgid.c54 bool status = false; in main() local
68 status = encode_MyMessage1(&stream); in main()
72 status = encode_MyMessage2(&stream); in main()
76 status = encode_MyMessage3(&stream); in main()
79 if (status) in main()
/nanopb-2.7.6/tests/cxx_descriptor/
Dmessage_descriptor.cc15 int status = 0; in main() local
26 if (status != 0) fprintf(stdout, "\n\nSome tests FAILED!\n"); in main()
28 return status; in main()
/nanopb-2.7.6/tests/stackusage/
Dstackusage.c48 bool status; in do_encode() local
60 status = pb_encode(&stream, SettingsGroup_fields, &msg); in do_encode()
62 assert(status); in do_encode()
70 bool status; in do_decode() local
72 status = pb_decode(&stream, SettingsGroup_fields, &msg); in do_decode()
73 assert(status); in do_decode()
/nanopb-2.7.6/tests/regression/issue_494/
Doneof_size.cc6 int status = 0; in main() local
18 return status; in main()
/nanopb-2.7.6/tests/regression/issue_453/
Dtest.c6 int status = 0; in main() local
10 return status; in main()
/nanopb-2.7.6/tests/regression/GHSA-gcx3-7m76-287p/
Dtest.c28 bool status; in main() local
34 status = pb_decode(&stream, MyMessage_fields, &msg); in main()
35 assert(!status); in main()
/nanopb-2.7.6/tests/enum_minmax/
Denumminmax_unittests.c6 int status = 0; in main() local
15 return status; in main()
/nanopb-2.7.6/tests/regression/issue_647/
Drepro.c8 int status = 0; in main() local
15 return status; in main()
/nanopb-2.7.6/tests/infinity_nan/
Dinfinity_nan_test.c10 int status = 0; in check_floats() local
40 return status == 0; in check_floats()
45 int status = 0; in main() local
61 return status; in main()
/nanopb-2.7.6/tests/any_type/
Ddecode_any.c15 bool status; in main() local
37 status = pb_decode(&stream, google_protobuf_Duration_fields, &duration); in main()
38 assert(status); in main()
Dencode_any.c15 bool status; in main() local
28 status = pb_encode(&stream, google_protobuf_Duration_fields, &duration); in main()
29 assert(status); in main()
/nanopb-2.7.6/tests/regression/issue_617/
Dtest_oneof.c13 int status = 0; in main() local
21 return status; in main()
/nanopb-2.7.6/tests/options/
Doptions.c8 int status = 0; in main() local
27 return status; in main()

123