mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-27 22:01:02 +08:00
misc.
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@189 00440858-1255-0410-a3e6-75ea37f81c3a
This commit is contained in:
parent
03e11c4fa6
commit
f3ae05f9e1
@ -5,6 +5,11 @@
|
||||
- fix technically possible overflows during unpack of very
|
||||
large messages (Andrei Nigmatulin)
|
||||
- [UNFINISHED] windows RPC work
|
||||
- use automake's "foreign" mode from within configure.ac
|
||||
and add version information to the library (Robert Edmonds)
|
||||
- ProtobufCServiceDescriptor::method_indices_by_name: missing
|
||||
const. (Issue 21)
|
||||
- Update to support new UnknownFields API. (fix by dcreager) (Issue 20)
|
||||
|
||||
0.10:
|
||||
- build issue on platforms which don't compute library dependencies
|
||||
|
10
configure.ac
10
configure.ac
@ -35,6 +35,16 @@ perhaps you need to add -Llibdir to your LDFLAGS.])])
|
||||
LIBS="$pbc_savelibs"
|
||||
AC_LANG_POP()
|
||||
|
||||
dnl Determine the version of the protoc compiler.
|
||||
|
||||
if test -n $PROTOC; then
|
||||
AC_MSG_CHECKING([which version of protoc is installed])
|
||||
raw_vers=`protoc --version 2>/dev/null | sed -e 's/libprotoc //'`
|
||||
vers=`echo $raw_vers | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
|
||||
AC_DEFINE_UNQUOTED([PROTOC_VERSION], [$vers])
|
||||
AC_MSG_RESULT([$raw_vers])
|
||||
fi
|
||||
|
||||
|
||||
dnl ------ define IS_LITTLE_ENDIAN ------
|
||||
# We try to use, where possible the headers <endian.h>, <mach/endian.h>,
|
||||
|
@ -53,7 +53,6 @@ void ServiceGenerator::GenerateMainHFile(io::Printer* printer)
|
||||
{
|
||||
GenerateVfuncs(printer);
|
||||
GenerateInitMacros(printer);
|
||||
GenerateCreateServiceDeclaration(printer);
|
||||
GenerateCallersDeclarations(printer);
|
||||
}
|
||||
void ServiceGenerator::GenerateVfuncs(io::Printer* printer)
|
||||
@ -120,11 +119,6 @@ void ServiceGenerator::GenerateCallersDeclarations(io::Printer* printer)
|
||||
}
|
||||
}
|
||||
|
||||
void ServiceGenerator::GenerateCreateServiceDeclaration(io::Printer* printer)
|
||||
{
|
||||
printer->Print(vars_, "ProtobufCService *$lcfullname$__create_service ($cname$_Service *service);\n");
|
||||
}
|
||||
|
||||
void ServiceGenerator::GenerateDescriptorDeclarations(io::Printer* printer)
|
||||
{
|
||||
printer->Print(vars_, "extern const ProtobufCServiceDescriptor $lcfullname$__descriptor;\n");
|
||||
|
@ -49,7 +49,6 @@ class ServiceGenerator {
|
||||
void GenerateMainHFile(io::Printer* printer);
|
||||
void GenerateVfuncs(io::Printer* printer);
|
||||
void GenerateInitMacros(io::Printer* printer);
|
||||
void GenerateCreateServiceDeclaration(io::Printer* printer);
|
||||
void GenerateDescriptorDeclarations(io::Printer* printer);
|
||||
void GenerateCallersDeclarations(io::Printer* printer);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user