OLD | NEW |
---|---|
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import string | 6 import string |
7 | 7 |
8 HEADER = """\ | 8 HEADER = """\ |
9 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 9 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
10 // Use of this source code is governed by a BSD-style license that can be | 10 // Use of this source code is governed by a BSD-style license that can be |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
432 stdcall2 = stdcall2.replace("CreateFunctor(T* obj,", "CreateFunctor(T** obj,") | 432 stdcall2 = stdcall2.replace("CreateFunctor(T* obj,", "CreateFunctor(T** obj,") |
433 stdcall2 = stdcall2.replace("new Mutant", "new MutantLateObjectBind") | 433 stdcall2 = stdcall2.replace("new Mutant", "new MutantLateObjectBind") |
434 stdcall2 = stdcall2.replace(" " * 17 + "Tuple", " " * 31 + "Tuple") | 434 stdcall2 = stdcall2.replace(" " * 17 + "Tuple", " " * 31 + "Tuple") |
435 print stdcall2 | 435 print stdcall2 |
436 print "#endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING" | 436 print "#endif // GMOCK_MUTANT_INCLUDE_LATE_OBJECT_BINDING" |
437 print "#endif // OS_WIN\n" | 437 print "#endif // OS_WIN\n" |
438 | 438 |
439 | 439 |
440 def main(): | 440 def main(): |
441 print HEADER | 441 print HEADER |
442 for prebound in xrange(0, 4 + 1): | 442 for prebound in xrange(0, 6 + 1): |
tommi (sloooow) - chröme
2010/02/12 17:14:05
fyi - I have no context to review this file :-/
| |
443 for args in xrange(0, 4 + 1): | 443 for args in xrange(0, 6 + 1): |
444 GenerateDispatch(prebound, args) | 444 GenerateDispatch(prebound, args) |
445 print MUTANT | 445 print MUTANT |
446 for prebound in xrange(0, 4 + 1): | 446 for prebound in xrange(0, 6 + 1): |
447 for args in xrange(0, 4 + 1): | 447 for args in xrange(0, 6 + 1): |
448 GenerateCreateFunctor(prebound, args) | 448 GenerateCreateFunctor(prebound, args) |
449 print FOOTER | 449 print FOOTER |
450 | 450 |
451 if __name__ == "__main__": | 451 if __name__ == "__main__": |
452 main() | 452 main() |
OLD | NEW |