0
Commit Graph

3 Commits

Author SHA1 Message Date
maruel@chromium.org
2ec654ac91 Fix python scripts in src/ppapi/
Make sure that:
- shebang is only present for executable files
- shebang is #!/usr/bin/env python
- __main__ is only present for executable files
- file's executable bit is coherent

Also fix EOF LF to be only one.

Minor python style fixes.

TBR=noelallen
BUG=105108
TEST=


Review URL: http://codereview.chromium.org/8653004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117045 0039d316-1c4b-4281-b951-d872f2087c98
2012-01-10 17:47:00 +00:00
dmichael@google.com
1ad2a1dbcd 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
2010-12-13 20:04:31 +00:00
dmichael@google.com
227b06711c - Add a script which:
--- Checks that all source files are in ppapi.gyp and vice-versa
--- Generates test_c_includes.c and test_cc_includes.cc
- Removes tests/test_image_data, which appears to be obsolete

I want to make the script a gyp action, but it didn't work on Windows last I tried.  If desired, I can fix that in this CL, or I can make it automated later.

BUG=63527,59791,53451
TEST=None; improves build-time checking

Review URL: http://codereview.chromium.org/5190004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66833 0039d316-1c4b-4281-b951-d872f2087c98
2010-11-19 22:55:00 +00:00