Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 46d9e79

Browse files
committed
bgen-generators now drop the python definition file straight in the
Lib:toolbox folder.
1 parent 819fa1a commit 46d9e79

33 files changed

Lines changed: 114 additions & 29 deletions

Mac/Modules/ae/AEmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ extern int GrafObj_Convert(PyObject *, GrafPtr *);
4040
extern PyObject *BMObj_New(BitMapPtr);
4141
extern int BMObj_Convert(PyObject *, BitMapPtr *);
4242

43+
extern PyObject *PMObj_New(PixMapHandle);
44+
extern int PMObj_Convert(PyObject *, PixMapHandle *);
45+
4346
extern PyObject *WinObj_WhichWindow(WindowPtr);
4447

4548
#include <AppleEvents.h>

Mac/Modules/ae/aegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated from 'Sap:CodeWarrior7:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:AppleEvents.h'
1+
# Generated from 'Sap:CW8 Gold:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:AppleEvents.h'
22

33
f = AEFunction(OSErr, 'AECreateDesc',
44
(DescType, 'typeCode', InMode),

Mac/Modules/ae/aescan.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@
1010
import regex
1111
import regsub
1212
import MacOS
13+
from bgenlocations import TOOLBOXDIR
1314

1415
from scantools import Scanner
1516

1617
def main():
1718
print "=== Scanning AERegistry.h for defines ==="
1819
input = "AERegistry.h"
1920
output = "@dummy-registry.py"
20-
defsoutput = "AERegistry.py"
21+
defsoutput = TOOLBOXDIR + "AERegistry.py"
2122
scanner = AppleEventsScanner(input, output, defsoutput)
2223
scanner.scan()
2324
scanner.close()
@@ -27,14 +28,14 @@ def main():
2728
# once we start writing servers in python.
2829
input = "AEObjects.h"
2930
output = "@dummy-objects.py"
30-
defsoutput = "AEObjects.py"
31+
defsoutput = TOOLBOXDIR + "AEObjects.py"
3132
scanner = AppleEventsScanner(input, output, defsoutput)
3233
scanner.scan()
3334
scanner.close()
3435
print "=== Scanning AppleEvents.py ==="
3536
input = "AppleEvents.h"
3637
output = "aegen.py"
37-
defsoutput = "AppleEvents.py"
38+
defsoutput = TOOLBOXDIR + "AppleEvents.py"
3839
scanner = AppleEventsScanner(input, output, defsoutput)
3940
scanner.scan()
4041
scanner.close()

Mac/Modules/cm/Cmgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated from 'Sap:CodeWarrior7:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Components.h'
1+
# Generated from 'Sap:CW8 Gold:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Components.h'
22

33
f = Function(Component, 'RegisterComponentResource',
44
(ComponentResourceHandle, 'tr', InMode),

Mac/Modules/cm/Cmmodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ extern int GrafObj_Convert(PyObject *, GrafPtr *);
4040
extern PyObject *BMObj_New(BitMapPtr);
4141
extern int BMObj_Convert(PyObject *, BitMapPtr *);
4242

43+
extern PyObject *PMObj_New(PixMapHandle);
44+
extern int PMObj_Convert(PyObject *, PixMapHandle *);
45+
4346
extern PyObject *WinObj_WhichWindow(WindowPtr);
4447

4548
#include <Components.h>

Mac/Modules/cm/cmscan.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
import addpack
44
addpack.addpack(':tools:bgen:bgen')
55
from scantools import Scanner
6+
from bgenlocations import TOOLBOXDIR
67

78
LONG = "Components"
89
SHORT = "Cm"
910

1011
def main():
1112
input = "Components.h"
1213
output = SHORT + "gen.py"
13-
defsoutput = LONG + ".py"
14+
defsoutput = TOOLBOXDIR + LONG + ".py"
1415
scanner = MyScanner(input, output, defsoutput)
1516
scanner.scan()
1617
scanner.close()

Mac/Modules/dlg/dlggen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated from 'flap:CW8 Gold:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Dialogs.h'
1+
# Generated from 'Sap:CW8 Gold:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Dialogs.h'
22

33
f = Function(DialogRef, 'NewDialog',
44
(NullStorage, 'wStorage', InMode),

Mac/Modules/dlg/dlgscan.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
addpack.addpack(':Tools:bgen:bgen')
55

66
from scantools import Scanner
7+
from bgenlocations import TOOLBOXDIR
78

89
LONG = "Dialogs"
910
SHORT = "dlg"
@@ -12,7 +13,7 @@
1213
def main():
1314
input = LONG + ".h"
1415
output = SHORT + "gen.py"
15-
defsoutput = LONG + ".py"
16+
defsoutput = TOOLBOXDIR + LONG + ".py"
1617
scanner = MyScanner(input, output, defsoutput)
1718
scanner.scan()
1819
scanner.close()

Mac/Modules/evt/evtgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated from 'flap:CW8 Gold:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Events.h'
1+
# Generated from 'Sap:CW8 Gold:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Events.h'
22

33
f = Function(UInt32, 'GetCaretTime',
44
)

Mac/Modules/evt/evtscan.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import addpack
44
addpack.addpack(':tools:bgen:bgen')
55
from scantools import Scanner
6+
from bgenlocations import TOOLBOXDIR
67

78
LONG = "Events"
89
SHORT = "evt"
@@ -11,7 +12,7 @@
1112
def main():
1213
input = LONG + ".h"
1314
output = SHORT + "gen.py"
14-
defsoutput = LONG + ".py"
15+
defsoutput = TOOLBOXDIR + LONG + ".py"
1516
scanner = MyScanner(input, output, defsoutput)
1617
scanner.scan()
1718
scanner.close()

0 commit comments

Comments
 (0)