Remove the NANOPB_INTERNALS functions from public API.

These have been deprecated since nanopb-0.1.6 (some since 0.1.3).
Equivalent functions with better interface are available in the API.

Update issue 91
Status: FixedInGit
This commit is contained in:
Petteri Aimonen
2013-10-29 16:32:47 +02:00
parent 0074deba9a
commit 287207841d
10 changed files with 27 additions and 45 deletions

View File

@@ -78,6 +78,8 @@ if 'gcc' in env['CC']:
# More strict checks on the nanopb core
env.Append(CORECFLAGS = '-Wextra -Wcast-qual -Wlogical-op -Wconversion')
env.Append(CORECFLAGS = ' -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls')
env.Append(CORECFLAGS = ' -Wstack-protector')
elif 'clang' in env['CC']:
# CLang
env.Append(CFLAGS = '-ansi -g -O0 -Wall -Werror')

View File

@@ -1,4 +1,4 @@
Import('env')
p = env.Program(["decode_unittests.c", "#common/unittestproto.pb.c", "#common/pb_decode.o"])
p = env.Program(["decode_unittests.c", "#common/unittestproto.pb.c"])
env.RunTest(p)

View File

@@ -1,8 +1,8 @@
#define NANOPB_INTERNALS
/* This includes the whole .c file to get access to static functions. */
#include "pb_decode.c"
#include <stdio.h>
#include <string.h>
#include "pb_decode.h"
#include "unittests.h"
#include "unittestproto.pb.h"

View File

@@ -1,5 +1,5 @@
# Build and run the stand-alone unit tests for the nanopb encoder part.
Import('env')
p = env.Program(["encode_unittests.c", "#common/unittestproto.pb.c", "#common/pb_encode.o"])
p = env.Program(["encode_unittests.c", "#common/unittestproto.pb.c"])
env.RunTest(p)

View File

@@ -1,8 +1,8 @@
#define NANOPB_INTERNALS
/* This includes the whole .c file to get access to static functions. */
#include "pb_encode.c"
#include <stdio.h>
#include <string.h>
#include "pb_encode.h"
#include "unittests.h"
#include "unittestproto.pb.h"