Nanopb is a plain-C implementation of Google's Protocol Buffers data format. It is targeted at 32 bit microcontrollers, but is also fit for other embedded systems with tight (2-10 kB ROM, <1 kB RAM) memory constraints.

Dependents:   FBRLogger Dumb_box_rev2

Uploaded from http://koti.kapsi.fi/~jpa/nanopb/ Original licence included below.

Copyright (c) 2011 Petteri Aimonen <jpa at nanopb.mail.kapsi.fi>

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

  1. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:
  2. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  3. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. This notice may not be removed or altered from any source distribution.

Files at this revision

API Documentation at this revision

Comitter:
intrinseca
Date:
Fri Mar 01 12:41:26 2013 +0000
Parent:
0:c7beea49fc91
Commit message:
fix bugs

Changed in this revision

pb_encode.c Show annotated file Show diff for this revision Revisions of this file
diff -r c7beea49fc91 -r e08406101222 pb_encode.c
--- a/pb_encode.c	Tue Feb 19 20:03:29 2013 +0000
+++ b/pb_encode.c	Fri Mar 01 12:41:26 2013 +0000
@@ -7,6 +7,7 @@
 #include "pb.h"
 #include "pb_encode.h"
 #include <string.h>
+#include <stdio.h>
 
 /* The warn_unused_result attribute appeared first in gcc-3.4.0 */
 #if !defined(__GNUC__) || ( __GNUC__ < 3) || (__GNUC__ == 3 && __GNUC_MINOR__ < 4)