source:
trunk/essentials/dev-lang/python/Mac/Modules/cg/cgscan.py@
3609
| Last change on this file since 3609 was 3225, checked in by , 19 years ago | |
|---|---|
| File size: 2.5 KB | |
| Line | |
|---|---|
| 1 | # Scan an Apple header file, generating a Python file of generator calls. |
| 2 | |
| 3 | import sys |
| 4 | import os |
| 5 | from bgenlocations import TOOLBOXDIR, BGENDIR |
| 6 | sys.path.append(BGENDIR) |
| 7 | from scantools import Scanner_OSX |
| 8 | |
| 9 | LONG = "CoreGraphics" |
| 10 | SHORT = "cg" |
| 11 | OBJECTS = ("CGContextRef", |
| 12 | ) |
| 13 | # ADD object typenames here |
| 14 | |
| 15 | def main(): |
| 16 | input = [ |
| 17 | "CGContext.h", |
| 18 | ] |
| 19 | output = SHORT + "gen.py" |
