diff options
author | Ulas Kirazci <ulas@google.com> | 2013-03-14 16:44:33 -0700 |
---|---|---|
committer | Ulas Kirazci <ulas@google.com> | 2013-04-01 14:55:45 -0700 |
commit | 64d8d8f89050c5ada85341f967af391f4716a7cb (patch) | |
tree | 0d5c78f36c9fb26ff94696961a5b1d6129f7f05a /config.h.in | |
parent | db9ab02c090cdc5d2b31399867a4052351b8793d (diff) | |
download | external_protobuf-64d8d8f89050c5ada85341f967af391f4716a7cb.zip external_protobuf-64d8d8f89050c5ada85341f967af391f4716a7cb.tar.gz external_protobuf-64d8d8f89050c5ada85341f967af391f4716a7cb.tar.bz2 |
Nano protobufs.
Like micro protobufs except:
- No setter/getter/hazzer functions.
- Has state is not available. Outputs all fields != their default.
- CodedInputStream can only take byte[] (not InputStream).
- Repeated fields are in arrays, not ArrayList or Vector.
- Unset messages/groups are null, not "defaultInstance()".
- Required fields are always serialized.
To use:
- Link libprotobuf-java-2.3.0-nano runtime.
- Use LOCAL_PROTOC_OPTIMIZE_TYPE := nano
Change-Id: I7429015b3c5f7f38b7be01eb2d4927f7a9999c80
Diffstat (limited to 'config.h.in')
-rw-r--r-- | config.h.in | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/config.h.in b/config.h.in index 4c6678d..7c85111 100644 --- a/config.h.in +++ b/config.h.in @@ -100,6 +100,9 @@ /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME +/* Define to the home page for this package. */ +#undef PACKAGE_URL + /* Define to the version of this package. */ #undef PACKAGE_VERSION @@ -110,20 +113,30 @@ /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS -/* Version number of package */ -#undef VERSION - -/* Define to 1 if on AIX 3. - System headers sometimes define this. - We just want to avoid a redefinition error message. */ +/* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif - /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # undef _GNU_SOURCE #endif +/* Enable threading extensions on Solaris. */ +#ifndef _POSIX_PTHREAD_SEMANTICS +# undef _POSIX_PTHREAD_SEMANTICS +#endif +/* Enable extensions on HP NonStop. */ +#ifndef _TANDEM_SOURCE +# undef _TANDEM_SOURCE +#endif +/* Enable general extensions on Solaris. */ +#ifndef __EXTENSIONS__ +# undef __EXTENSIONS__ +#endif + + +/* Version number of package */ +#undef VERSION /* Define to 1 if on MINIX. */ #undef _MINIX @@ -134,14 +147,3 @@ /* Define to 1 if you need to in order for `stat' and other things to work. */ #undef _POSIX_SOURCE - -/* Enable extensions on Solaris. */ -#ifndef __EXTENSIONS__ -# undef __EXTENSIONS__ -#endif -#ifndef _POSIX_PTHREAD_SEMANTICS -# undef _POSIX_PTHREAD_SEMANTICS -#endif -#ifndef _TANDEM_SOURCE -# undef _TANDEM_SOURCE -#endif |