wrong file name
git-svn-id: https://svn.kapsi.fi/jpa/nanopb@967 e3a754e5-d11d-0410-8d38-ebb782a927b9
This commit is contained in:
@@ -262,7 +262,7 @@ int main()
|
|||||||
TEST(WRITES(pb_encode(&s, CallbackContainerContainer_fields, &msg2),
|
TEST(WRITES(pb_encode(&s, CallbackContainerContainer_fields, &msg2),
|
||||||
"\x0A\x04\x0A\x02\x08\x55"))
|
"\x0A\x04\x0A\x02\x08\x55"))
|
||||||
|
|
||||||
/* Misbehaving callback */
|
/* Misbehaving callback: varying output between calls */
|
||||||
msg.submsg.data.funcs.encode = &crazyfieldcallback;
|
msg.submsg.data.funcs.encode = &crazyfieldcallback;
|
||||||
msg.submsg.data.arg = &state;
|
msg.submsg.data.arg = &state;
|
||||||
msg2.submsg.submsg.data.funcs.encode = &crazyfieldcallback;
|
msg2.submsg.submsg.data.funcs.encode = &crazyfieldcallback;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <pb_decode.h>
|
#include <pb_decode.h>
|
||||||
#include "person.h"
|
#include "person.pb.h"
|
||||||
|
|
||||||
bool print_person(pb_istream_t *stream)
|
bool print_person(pb_istream_t *stream)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <pb_encode.h>
|
#include <pb_encode.h>
|
||||||
#include "person.h"
|
#include "person.pb.h"
|
||||||
|
|
||||||
bool streamcallback(pb_ostream_t *stream, const uint8_t *buf, size_t count)
|
bool streamcallback(pb_ostream_t *stream, const uint8_t *buf, size_t count)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user