OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2005 Niels Provos <provos@citi.umich.edu> | 3 # Copyright (c) 2005 Niels Provos <provos@citi.umich.edu> |
4 # All rights reserved. | 4 # All rights reserved. |
5 # | 5 # |
6 # Generates marshaling code based on libevent. | 6 # Generates marshaling code based on libevent. |
7 | 7 |
8 import sys | 8 import sys |
9 import re | 9 import re |
10 | 10 |
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 | 1414 |
1415 print >>sys.stderr, '... creating "%s"' % impl_file | 1415 print >>sys.stderr, '... creating "%s"' % impl_file |
1416 impl_fp = open(impl_file, 'w') | 1416 impl_fp = open(impl_file, 'w') |
1417 print >>impl_fp, BodyPreamble(filename) | 1417 print >>impl_fp, BodyPreamble(filename) |
1418 for entry in entities: | 1418 for entry in entities: |
1419 entry.PrintCode(impl_fp) | 1419 entry.PrintCode(impl_fp) |
1420 impl_fp.close() | 1420 impl_fp.close() |
1421 | 1421 |
1422 if __name__ == '__main__': | 1422 if __name__ == '__main__': |
1423 main(sys.argv) | 1423 main(sys.argv) |
OLD | NEW |