/nanopb-3.4.0/examples/network_server/ |
D | server.c | 34 if (ostream != NULL && field->tag == ListFilesResponse_file_tag) in ListFilesResponse_callback() 40 while ((file = readdir(dir)) != NULL) in ListFilesResponse_callback() 70 DIR *directory = NULL; in handle_connection() 92 if (directory == NULL) in handle_connection() 113 if (directory != NULL) in handle_connection() 146 connfd = accept(listenfd, NULL, NULL); in main()
|
D | client.c | 33 if (istream != NULL && field->tag == ListFilesResponse_file_tag) in ListFilesResponse_callback() 59 if (path == NULL) in listdir() 111 char *path = NULL; in main()
|
/nanopb-3.4.0/tests/namingstyle/ |
D | test_naming_style_c.c | 19 message.repeated_ints = NULL; in main() 24 message.my_enum4.arg = NULL; in main() 26 message.string_values1 = NULL; in main() 28 message.optional_string.arg = NULL; in main() 36 message.repeated_bytes2 = NULL; in main() 41 message.sub_message2.arg = NULL; in main()
|
/nanopb-3.4.0/tests/alltypes_pointer/ |
D | decode_alltypes_pointer.c | 71 TEST(*alltypes.rep_submsg[4].substuff3 == 2016 && alltypes.rep_submsg[0].substuff3 == NULL); in check_alltypes() 84 TEST(alltypes.opt_int32 == NULL); in check_alltypes() 85 TEST(alltypes.opt_int64 == NULL); in check_alltypes() 86 TEST(alltypes.opt_uint32 == NULL); in check_alltypes() 87 TEST(alltypes.opt_uint64 == NULL); in check_alltypes() 88 TEST(alltypes.opt_sint32 == NULL); in check_alltypes() 89 TEST(alltypes.opt_sint64 == NULL); in check_alltypes() 90 TEST(alltypes.opt_bool == NULL); in check_alltypes() 92 TEST(alltypes.opt_fixed32 == NULL); in check_alltypes() 93 TEST(alltypes.opt_sfixed32 == NULL); in check_alltypes() [all …]
|
D | encode_alltypes_pointer.c | 55 pb_bytes_array_t *rep_bytes[5]= {NULL, NULL, NULL, NULL, (pb_bytes_array_t*)&rep_bytes_4}; in main()
|
/nanopb-3.4.0/tests/common/ |
D | malloc_wrappers.c | 56 char *buf = NULL; in malloc_with_check() 76 return NULL; in malloc_with_check() 130 buf = NULL; in realloc_with_check() 136 return NULL; in realloc_with_check() 152 return NULL; in realloc_with_check() 157 return NULL; in realloc_with_check()
|
/nanopb-3.4.0/tests/site_scons/platforms/avr/ |
D | run_test.c | 40 select(STDIN_FILENO+1, &fds, NULL, NULL, &tv); in stdin_can_read() 98 avr_irq_register_notify(&g_uart_irq[0], &uart_tx_hook, NULL); in init_uart() 113 avr_irq_register_notify(xon, uart_xon_hook, NULL); in init_uart() 114 avr_irq_register_notify(xoff, uart_xoff_hook, NULL); in init_uart() 164 …r_irq_register_notify(avr_io_getirq(g_avr, AVR_IOCTL_IOPORT_GETIRQ('B'), 1), status_ok_hook, NULL); in main()
|
/nanopb-3.4.0/ |
D | pb_common.c | 77 iter->pField = NULL; in load_descriptor_values() 78 iter->pSize = NULL; in load_descriptor_values() 97 iter->pSize = NULL; in load_descriptor_values() 100 if (PB_ATYPE(iter->type) == PB_ATYPE_POINTER && iter->pField != NULL) in load_descriptor_values() 116 iter->submsg_desc = NULL; in load_descriptor_values() 306 if (pCallback != NULL) in pb_default_field_callback() 308 if (istream != NULL && pCallback->funcs.decode != NULL) in pb_default_field_callback() 313 if (ostream != NULL && pCallback->funcs.encode != NULL) in pb_default_field_callback()
|
D | pb_encode.c | 78 stream.errmsg = NULL; in pb_ostream_from_buffer() 85 if (count > 0 && stream->callback != NULL) in pb_write() 176 if (stream->callback == NULL) in encode_array() 177 return pb_write(stream, NULL, size); /* Just sizing.. */ in encode_array() 264 else if (PB_HTYPE(type) == PB_HTYPE_OPTIONAL && field->pSize != NULL) in pb_check_proto3_default_value() 336 return field->pData == NULL; in pb_check_proto3_default_value() 343 return extension == NULL; in pb_check_proto3_default_value() 348 return pCallback->funcs.encode == NULL; in pb_check_proto3_default_value() 352 return field->descriptor->field_callback == NULL; in pb_check_proto3_default_value() 408 if (field->descriptor->field_callback != NULL) in encode_callback_field() [all …]
|
D | pb_decode.c | 73 if (buf != NULL) in buf_read() 87 if (buf == NULL && stream->callback != buf_read) in pb_read() 153 stream.callback = NULL; in pb_istream_from_buffer() 161 stream.errmsg = NULL; in pb_istream_from_buffer() 238 return pb_decode_varint32_eof(stream, dest, NULL); in pb_decode_varint32() 287 return pb_read(stream, NULL, (size_t)length); in pb_skip_string() 312 case PB_WT_64BIT: return pb_read(stream, NULL, 8); in pb_skip_field() 314 case PB_WT_32BIT: return pb_read(stream, NULL, 4); in pb_skip_field() 379 if (!pb_read(substream, NULL, substream->bytes_left)) in pb_close_string_substream() 474 if (field->pSize != NULL) in decode_static_field() [all …]
|
/nanopb-3.4.0/extra/ |
D | pb_syshdr.h | 45 #ifndef NULL 46 #define NULL 0 macro
|
/nanopb-3.4.0/tests/mem_release/ |
D | mem_release.c | 39 ext2.next = NULL; in fill_TestMessage() 76 ext1.dest = NULL; in test_TestMessage() 80 ext2.next = NULL; in test_TestMessage() 189 TEST(msg.msgs.msg2.dynamic_str_arr != NULL); in test_OneofMessage() 193 TEST(msg.msgs.msg2.dynamic_submsg == NULL); in test_OneofMessage() 231 msg.subs.arg = NULL; in test_Garbage()
|
/nanopb-3.4.0/examples/using_union_messages/ |
D | decode.c | 29 if (pb_field_iter_begin(&iter, UnionMessage_fields, NULL) && in decode_unionmessage_type() 41 return NULL; in decode_unionmessage_type()
|
/nanopb-3.4.0/tests/regression/issue_407/ |
D | test_extensions.c | 27 ext.next = NULL; in main() 55 ext.next = NULL; in main()
|
/nanopb-3.4.0/tests/basic_stream/ |
D | encode_stream.c | 26 pb_ostream_t stream = {&streamcallback, NULL, SIZE_MAX, 0}; in main()
|
D | decode_stream.c | 76 pb_istream_t stream = {&callback, NULL, SIZE_MAX}; in main()
|
/nanopb-3.4.0/tests/regression/GHSA-gcx3-7m76-287p/ |
D | test.c | 26 pb_istream_t stream = {&stream_callback, NULL, SIZE_MAX}; in main()
|
/nanopb-3.4.0/tests/extensions/ |
D | encode_extensions.c | 32 ext2.next = NULL; in main()
|
D | decode_extensions.c | 39 ext2.next = NULL; in main()
|
/nanopb-3.4.0/tests/cxx_callback_datatype/ |
D | cxx_callback_datatype.cpp | 12 if (ostream != NULL) { in TestMessage_submessages_callback() 24 } else if (istream != NULL) { in TestMessage_submessages_callback()
|
/nanopb-3.4.0/tests/io_errors/ |
D | io_errors.c | 59 pb_istream_t stream = {&read_callback, NULL, SIZE_MAX}; in main() 99 pb_ostream_t stream = {&write_callback, NULL, SIZE_MAX, 0}; in main()
|
/nanopb-3.4.0/tests/fuzztest/ |
D | fuzztest.c | 79 ext.next = NULL; in do_decode() 149 return pb_read(stream, NULL, stream->bytes_left); in field_callback() 209 pb_extension_t **ext_field = NULL; in do_roundtrip() 212 ext.next = NULL; in do_roundtrip() 378 msg->extensions = NULL; in generate_base_message() 435 random_set_seed(strtoul(argv[1], NULL, 0)); in main()
|
D | generate_message.c | 65 ext.next = NULL; in generate_message()
|
/nanopb-3.4.0/tests/map/ |
D | decode_map.c | 23 return NULL; in find_entry()
|
/nanopb-3.4.0/tests/backwards_compatibility/ |
D | alltypes_legacy.h | 166 …, false, {4, {0x34,0x30,0x35,0x35}}, false, SubMessage_init_default, false, MyEnum_Second, 0, NULL} 170 … 0, false, 0, false, "", false, {0, {0}}, false, SubMessage_init_zero, false, _MyEnum_MIN, 0, NULL} 244 #define SubMessage_CALLBACK NULL 248 #define EmptyMessage_CALLBACK NULL 261 #define Limits_CALLBACK NULL
|