Home
last modified time | relevance | path

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

/nanopb-2.7.6/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-2.7.6/tests/regression/GHSA-gcx3-7m76-287p/
Dtest.c36 assert(strcmp(stream.errmsg, "realloc failed") == 0); in main()
/nanopb-2.7.6/tests/fixed_count/
Dfixed_count_unittests.c51 TEST(strcmp(stream.errmsg, "array overflow") == 0); in main()
55 TEST(strcmp(stream.errmsg, "wrong size for fixed count field") == 0); in main()
/nanopb-2.7.6/
Dpb_encode.h45 const char *errmsg; member
Dpb_decode.h44 const char *errmsg; member
Dpb_encode.c76 stream.errmsg = NULL; in pb_ostream_from_buffer()
720 stream->errmsg = substream.errmsg; in pb_encode_submessage()
743 substream.errmsg = NULL; in pb_encode_submessage()
751 stream->errmsg = substream.errmsg; in pb_encode_submessage()
Dpb.h845 #define PB_SET_ERROR(stream, msg) (stream->errmsg = (stream)->errmsg ? (stream)->errmsg : (msg))
846 #define PB_GET_ERROR(stream) ((stream)->errmsg ? (stream)->errmsg : "(none)")
Dpb_decode.c161 stream.errmsg = NULL; in pb_istream_from_buffer()
384 stream->errmsg = substream->errmsg; in pb_close_string_substream()
680 stream->errmsg = "too many array entries"; in decode_pointer_field()
DCHANGELOG.txt473 Fix missing initialization of istream.errmsg
/nanopb-2.7.6/spm_headers/nanopb/
Dpb_encode.h45 const char *errmsg; member
Dpb_decode.h44 const char *errmsg; member
Dpb.h845 #define PB_SET_ERROR(stream, msg) (stream->errmsg = (stream)->errmsg ? (stream)->errmsg : (msg))
846 #define PB_GET_ERROR(stream) ((stream)->errmsg ? (stream)->errmsg : "(none)")
/nanopb-2.7.6/docs/
Dreference.md501 … | True on success, false on any error condition. Error message is set to `stream->errmsg`.
521 … | True on success, false on any error condition. Error message is set to `stream->errmsg`.
752 … | True on success, false on any error condition. Error message will be in `stream->errmsg`.
779 … | True on success, false on any error condition. Error message will be in `stream->errmsg`.
Dconcepts.md566 debugging purposes: the error messages go in `stream->errmsg`.