diff options
author | dmichael@google.com <dmichael@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-13 20:04:31 +0000 |
---|---|---|
committer | dmichael@google.com <dmichael@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-13 20:04:31 +0000 |
commit | 1ad2a1dbcde42412bb92c83fe5e0d6999ed00311 (patch) | |
tree | bec94376d42b1943e2830e695956252232283b4d /ppapi/ppapi.gyp | |
parent | f68fbd1b300401c79df8df9773bbe7aa36ff6062 (diff) | |
download | chromium_src-1ad2a1dbcde42412bb92c83fe5e0d6999ed00311.zip chromium_src-1ad2a1dbcde42412bb92c83fe5e0d6999ed00311.tar.gz chromium_src-1ad2a1dbcde42412bb92c83fe5e0d6999ed00311.tar.bz2 |
Add compile assertions to enforce the sizes of all structs and enums in the C API. Adjust some structs to make their sizes consistent across architectures. Note that some structs contain pointers, so are difficult to make consistent between 32-bit and 64-bit. Those types are in test_struct_sizes.c. Other types have a compile assertion immediately after their definition.
This was broken off from a bigger CL:
http://codereview.chromium.org/5340003/
BUG=61004,92983
TEST=test_struct_sizes.c, compile assertions throughout
See this CL for the code that helped generate the static assertions and find affected interfaces:
http://codereview.chromium.org/5730003
Review URL: http://codereview.chromium.org/5674004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69038 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/ppapi.gyp')
-rw-r--r-- | ppapi/ppapi.gyp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ppapi/ppapi.gyp b/ppapi/ppapi.gyp index 947c267..5499d7c 100644 --- a/ppapi/ppapi.gyp +++ b/ppapi/ppapi.gyp @@ -2,7 +2,6 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. - { 'variables': { 'chromium_code': 1, # Use higher warning level. @@ -423,12 +422,16 @@ 'tests/testing_instance.h', # Test cases. + 'tests/all_c_includes.h', + 'tests/all_cpp_includes.h', + 'tests/arch_dependent_sizes_32.h', + 'tests/arch_dependent_sizes_64.h', 'tests/test_buffer.cc', 'tests/test_buffer.h', 'tests/test_c_includes.c', - 'tests/test_cc_includes.cc', 'tests/test_char_set.cc', 'tests/test_char_set.h', + 'tests/test_cpp_includes.cc', 'tests/test_directory_reader.cc', 'tests/test_directory_reader.h', 'tests/test_file_io.cc', @@ -443,6 +446,7 @@ 'tests/test_paint_aggregator.h', 'tests/test_scrollbar.cc', 'tests/test_scrollbar.h', + 'tests/test_struct_sizes.c', 'tests/test_transport.cc', 'tests/test_transport.h', 'tests/test_url_loader.cc', |