jieluo@google.com
b70e586603
put python cpp tests into pyext/
10 years ago
jieluo@google.com
7580a8929f
add shared_pr.h
10 years ago
jieluo@google.com
bde4a3254a
down integrate python opensource to svn
10 years ago
jieluo@google.com
d7339318a3
Change java descriptor back to private
10 years ago
jieluo@google.com
83964a9ab4
1, Add comments for include<algorithm> we added for min/max on VS2013. 2, Add #if/#endif to wrap #undef
10 years ago
jieluo@google.com
7db9c098df
change java compiler to only produce one java file
10 years ago
Max Cai
4be139dcd8
am a76831c3: Merge "Fix how getRepeatedFieldArrayLength works"
...
* commit 'a76831c3629c3c1a9900984f3aea6306dbf0734c':
Fix how getRepeatedFieldArrayLength works
10 years ago
jieluo@google.com
9efebb3294
use #undef instead of change the name of MemoryBarrier
10 years ago
jieluo@google.com
8d6f04ad8d
Cygwin doesn't work well if we try to capture stderr and stdout at the same time. Comment one test tempraly for Cygwin. Need to figure out why and add the test back for Cygwin.
10 years ago
jieluo@google.com
ce58c88019
Remove AM_PROG_AR.
...
With AM_PROG_AR may report "error: possibly underfined macro: AM_PROG_AR" (mingw, autoreconf-2.68).
Without AM_PROG_AR may report warning "archiver requires 'AM_PROG_AR' in 'configure.ac'" (cygwin, automake-1.12).
They do not affect the tests and install
10 years ago
jieluo@google.com
abe61de6e6
make changes to pass Cygwin
10 years ago
Sam Hasinoff
33824b0f1b
am f91b7fa1: Fix build, by using external/zlib instead of system zlib
...
* commit 'f91b7fa173d2aa76ce593c20e429bd8d480599ea':
Fix build, by using external/zlib instead of system zlib
10 years ago
Sam Hasinoff
333c46cd1d
Fix build, by using external/zlib instead of system zlib
...
Change-Id: I22f72f7c21f0c3f7b40deeca429af39453dfdc51
10 years ago
Max Cai
ec0e1c00e0
Merge "Fix how getRepeatedFieldArrayLength works"
10 years ago
jieluo@google.com
91e32ac64d
add #ifdef _MSC_VER
10 years ago
Leandro Gracia Gil
985cc6a74e
am 4d11e705: Merge "Fix the aprotoc target for Windows."
...
* commit '4d11e705cb073e55283452e6fd50e3feff54f82c':
Fix the aprotoc target for Windows.
10 years ago
jieluo@google.com
81d833d07d
add one file for VC 2013
10 years ago
jieluo@google.com
7ee0f3edc7
change some files to pass MSVC 2013
10 years ago
jieluo@google.com
b7aebe4099
Change MemoryBarrier() to MemoryBarrierInternal(). Resolve name conflict in mingw gcc 4.8.1
10 years ago
Leandro Gracia Gil
a174231837
Merge "Fix the aprotoc target for Windows."
10 years ago
Leandro Gracia Gil
b596f9c7b4
Fix the aprotoc target for Windows.
...
Allows aprotoc.exe to be cross-compiled when building the Windows SDK.
Change-Id: I7e1eec945b5578e1fe6c368b128fe1f9396f491c
10 years ago
jieluo@google.com
db9f7dd1ac
1, Remove unkown field support in jave TextFormat
...
2, Verifies the EnumValueDscriptor for DynamicMessage.Builder#setField
10 years ago
jieluo@google.com
9eda53a6f1
Increase the allocated_size_ should be after allocation. Otherwise there might have segmentation fault if allocation throws an exception.
11 years ago
jieluo@google.com
e6726e2150
use decimal constants to avoid casting error with visual c /W4
...
"unary minus operator applied to unsigned type, result still unsigned"
11 years ago
Brian Duff
c390fe3eb3
am 95d99df4: Merge "Don\'t return NULL from {Boxed}PrimitiveTypeName."
...
* commit '95d99df4574c28debcf9646056a0350ff44bc7c9':
Don't return NULL from {Boxed}PrimitiveTypeName.
11 years ago
Brian Duff
23c5978a76
Merge "Don't return NULL from {Boxed}PrimitiveTypeName."
11 years ago
Brian Duff
7acc0f831f
Don't return NULL from {Boxed}PrimitiveTypeName.
...
The behavior of the string ctor is undefined when you pass NULL. This
is checked strictly in C++11, so fails to compile.
Change-Id: Id5e0984ad1d37f2d504f7c42ac23e52ed4a58903
11 years ago
jieluo@google.com
76b8a769ab
add LazyFieldLite.java
11 years ago
jieluo@google.com
3b547d3526
Add iostream in message.cc. Remove unused in coded_stream_unittest.cc
11 years ago
jieluo@google.com
a35f979c17
delete unused variable
11 years ago
jieluo@google.com
01283faa47
add printUnicode methods in TextFormat
11 years ago
Max Cai
a481ed8269
am 11607eb1: Merge "Add a hasExtension method to ExtendableMessageNano."
...
* commit '11607eb10bcf3a46e92257966949d48b28bb7bf3':
Add a hasExtension method to ExtendableMessageNano.
11 years ago
jieluo@google.com
4de8f55113
down integrate to svn
11 years ago
Max Cai
2a5f3f97a0
Merge "Add a hasExtension method to ExtendableMessageNano."
11 years ago
Juan Silveira
c052b50388
Add a hasExtension method to ExtendableMessageNano.
...
It allows checking for the presence of an extension without having to
deserialize the field.
Change-Id: Id542d20274b2435b7bc2b322740e9984cb8639a1
11 years ago
Max Cai
2e91cf4f68
am a88808d4: Merge "Fix access around unknownFieldData."
...
* commit 'a88808d414308b5b567d3afaab56fc338ad80667':
Fix access around unknownFieldData.
11 years ago
Max Cai
9c2d63c8d3
am daf63839: Merge "Keep pointers to extension values."
...
* commit 'daf638399bd42122306786e8062f392ddace4363':
Keep pointers to extension values.
11 years ago
Max Cai
30b1454d8b
Merge "Keep pointers to extension values."
11 years ago
Max Cai
7a83d3482a
Merge "Fix access around unknownFieldData."
11 years ago
Max Cai
d1a8a8f6f1
Fix access around unknownFieldData.
...
Instead of publishing its class I chose to encapsulate the troublesome
references in equals()/hashCode() in the generated code into superclass
methods in ExtendableMessageNano.
Changed a couple of java packages in the test suite to catch this issue
easier in the future.
Change-Id: I43f88411f63bb6f3ffc8d63361f2f77bebf6220a
11 years ago
Juan Silveira
79f19eb9f1
Keep pointers to extension values.
...
The current implementation of getExtension deserialises the field from bytes
and returns a new object every time. This means that changes to those objects
are reflected when the messages is serialised unless setExtension is called. It
also means that every call to getExtension and setExtension is expensive.
This change introduces a FieldData class that contains everything that's known
about the field at the time. This can be all the tag/byte[] pairs associated
with a given field or an Extension and a value object. This is so that two
messages with a repeated extension can be compared even if the extension
has been deserialised in one of them but not the other.
This change also adds FieldArray class based on SparseArray from the Android
compatibility library. This is used in ExtendableMessageNano to make lookup
of FieldDatas by their field number faster.
Implications:
* calling getExtension multiple times deserialises the field only once and
returns the same object.
* calling setExtension doesn't cause the object to be serialised immediately,
that only happens when the container message is serialised.
* getExtension is no longer a read-only thread-safe operation. README.txt has
been updated to relfect that.
* comparison using equals and hashCode continues to work.
Bug: 10863158
Change-Id: I81c7cb0c73cc0611a1f7c1eabf5eed259738e8bc
11 years ago
Max Cai
9ceb3d4acc
Fix how getRepeatedFieldArrayLength works
...
Change-Id: I01921eff008a8e3f7b1fbeb653d15ff8038d3220
11 years ago
liujisi@google.com
c5553a3d18
Down-integrate pending changes from internal repository after previous release.
11 years ago
Ying Wang
30cd2a4a98
am 403cc927: am 8eed3705: You CANNOT change the global WITH_DEXPREOPT
...
* commit '403cc9277c5540cf14b6e53a4fedf3ae5499f4cf':
You CANNOT change the global WITH_DEXPREOPT
11 years ago
Baligh Uddin
c7213e1c39
am 39467629: am 6c915d3a: keep history after reset to 1fd235cbb5975e117909c73e5e3a579ae4c28dce
...
* commit '39467629a7fb35da9fdfab4dd7603b9bfd7d9095':
11 years ago
Ying Wang
b18d5c1d43
am 8eed3705: You CANNOT change the global WITH_DEXPREOPT
...
* commit '8eed37054e8f7dd18aa3ec3070d638e3a1c03eaf':
You CANNOT change the global WITH_DEXPREOPT
11 years ago
Baligh Uddin
f5759da88c
am 6c915d3a: keep history after reset to 1fd235cbb5975e117909c73e5e3a579ae4c28dce
...
* commit '6c915d3a1e820702dca08d02a40fb86aa2de0bdd':
11 years ago
Ying Wang
82461de508
You CANNOT change the global WITH_DEXPREOPT
...
Bug: 14380196
Change-Id: I2b9e6db081558687afd5c20c7084824dfe1bb26e
11 years ago
Baligh Uddin
709cb7348e
keep history after reset to 1fd235cbb5975e117909c73e5e3a579ae4c28dce
11 years ago
Qiwen Zhao
1d50c6b47c
reset with history at sha1 d5219df3ce036d4f43262bbda1016097a59a0c81
11 years ago