7 from bgenlocations
import TOOLBOXDIR
, BGENDIR
8 sys
.path
.append(BGENDIR
)
10 from scantools
import Scanner_OSX
13 print "---Scanning IBCarbonRuntime.h---"
14 input = ["IBCarbonRuntime.h"]
15 output
= "IBCarbongen.py"
16 defsoutput
= TOOLBOXDIR
+ "IBCarbonRuntime.py"
17 scanner
= IBCarbon_Scanner(input, output
, defsoutput
)
20 print "=== Testing definitions output code ==="
21 execfile(defsoutput
, {}, {})
22 print "--done scanning, importing--"
23 import IBCarbonsupport
26 class IBCarbon_Scanner(Scanner_OSX
):
28 def destination(self
, type, name
, arglist
):
29 classname
= "IBCarbonFunction"
30 listname
= "functions"
33 if t
== "IBNibRef" and m
== "InMode":
34 classname
= "IBCarbonMethod"
36 return classname
, listname
38 def makeblacklistnames(self
):
40 "DisposeNibReference", # taken care of by destructor
41 "CreateNibReferenceWithCFBundle", ## need to wrap CFBundle.h properly first
44 def makerepairinstructions(self
):
48 if __name__
== "__main__":