Home
last modified time | relevance | path

Searched refs:NULL (Results 1 – 25 of 38) sorted by relevance

12

/nanopb-3.4.0/examples/network_server/
Dserver.c34 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()
Dclient.c33 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/
Dtest_naming_style_c.c19 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/
Ddecode_alltypes_pointer.c71 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 …]
Dencode_alltypes_pointer.c55 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/
Dmalloc_wrappers.c56 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/
Drun_test.c40 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/
Dpb_common.c77 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()
Dpb_encode.c78 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 …]
Dpb_decode.c73 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/
Dpb_syshdr.h45 #ifndef NULL
46 #define NULL 0 macro
/nanopb-3.4.0/tests/mem_release/
Dmem_release.c39 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/
Ddecode.c29 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/
Dtest_extensions.c27 ext.next = NULL; in main()
55 ext.next = NULL; in main()
/nanopb-3.4.0/tests/basic_stream/
Dencode_stream.c26 pb_ostream_t stream = {&streamcallback, NULL, SIZE_MAX, 0}; in main()
Ddecode_stream.c76 pb_istream_t stream = {&callback, NULL, SIZE_MAX}; in main()
/nanopb-3.4.0/tests/regression/GHSA-gcx3-7m76-287p/
Dtest.c26 pb_istream_t stream = {&stream_callback, NULL, SIZE_MAX}; in main()
/nanopb-3.4.0/tests/extensions/
Dencode_extensions.c32 ext2.next = NULL; in main()
Ddecode_extensions.c39 ext2.next = NULL; in main()
/nanopb-3.4.0/tests/cxx_callback_datatype/
Dcxx_callback_datatype.cpp12 if (ostream != NULL) { in TestMessage_submessages_callback()
24 } else if (istream != NULL) { in TestMessage_submessages_callback()
/nanopb-3.4.0/tests/io_errors/
Dio_errors.c59 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/
Dfuzztest.c79 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()
Dgenerate_message.c65 ext.next = NULL; in generate_message()
/nanopb-3.4.0/tests/map/
Ddecode_map.c23 return NULL; in find_entry()
/nanopb-3.4.0/tests/backwards_compatibility/
Dalltypes_legacy.h166 …, 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

12