Home
last modified time | relevance | path

Searched refs:errmsg (Results 1 – 14 of 14) sorted by relevance

/nanopb-3.4.0/tests/io_errors/
Dio_errors.c76 else if (strcmp(stream.errmsg, "simulated") != 0) in main()
78 fprintf(stderr, "Wrong error in decode: %s\n", stream.errmsg); in main()
91 fprintf(stderr, "Decoding failed: %s\n", stream.errmsg); in main()
117 else if (strcmp(stream.errmsg, "simulated") != 0) in main()
119 fprintf(stderr, "Wrong error in encode: %s\n", stream.errmsg); in main()
133 fprintf(stderr, "Encoding failed: %s\n", stream.errmsg); in main()
/nanopb-3.4.0/tests/regression/GHSA-gcx3-7m76-287p/
Dtest.c36 assert(strcmp(stream.errmsg, "realloc failed") == 0); in main()
/nanopb-3.4.0/
Dpb_encode.h45 const char *errmsg; member
Dpb_decode.h44 const char *errmsg; member
Dpb_encode.c78 stream.errmsg = NULL; in pb_ostream_from_buffer()
733 stream->errmsg = substream.errmsg; in pb_encode_submessage()
756 substream.errmsg = NULL; in pb_encode_submessage()
764 stream->errmsg = substream.errmsg; in pb_encode_submessage()
Dpb.h882 #define PB_SET_ERROR(stream, msg) (stream->errmsg = (stream)->errmsg ? (stream)->errmsg : (msg))
883 #define PB_GET_ERROR(stream) ((stream)->errmsg ? (stream)->errmsg : "(none)")
Dpb_decode.c161 stream.errmsg = NULL; in pb_istream_from_buffer()
386 stream->errmsg = substream->errmsg; in pb_close_string_substream()
682 stream->errmsg = "too many array entries"; in decode_pointer_field()
769 PB_SET_ERROR(stream, substream.errmsg ? substream.errmsg : "callback failed"); in decode_callback_field()
DCHANGELOG.txt548 Fix missing initialization of istream.errmsg
/nanopb-3.4.0/spm_headers/nanopb/
Dpb_encode.h45 const char *errmsg; member
Dpb_decode.h44 const char *errmsg; member
Dpb.h882 #define PB_SET_ERROR(stream, msg) (stream->errmsg = (stream)->errmsg ? (stream)->errmsg : (msg))
883 #define PB_GET_ERROR(stream) ((stream)->errmsg ? (stream)->errmsg : "(none)")
/nanopb-3.4.0/tests/fixed_count/
Dfixed_count_unittests.c52 TEST(strcmp(stream.errmsg, "array overflow") == 0); in main()
56 TEST(strcmp(stream.errmsg, "wrong size for fixed count field") == 0); in main()
/nanopb-3.4.0/docs/
Dreference.md514 … | True on success, false on any error condition. Error message is set to `stream->errmsg`.
534 … | True on success, false on any error condition. Error message is set to `stream->errmsg`.
765 … | True on success, false on any error condition. Error message will be in `stream->errmsg`.
792 … | True on success, false on any error condition. Error message will be in `stream->errmsg`.
Dconcepts.md567 debugging purposes: the error messages go in `stream->errmsg`.