Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f0ded2f0
Commit
f0ded2f0
authored
Jul 14, 2001
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various small fixes. The demo now starts to limp along.
parent
e1608529
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
2 deletions
+36
-2
Mac/Modules/mlte/Mltemodule.c
Mac/Modules/mlte/Mltemodule.c
+1
-1
Mac/Modules/mlte/mltescan.py
Mac/Modules/mlte/mltescan.py
+34
-1
Mac/Modules/mlte/mltesupport.py
Mac/Modules/mlte/mltesupport.py
+1
-0
No files found.
Mac/Modules/mlte/Mltemodule.c
View file @
f0ded2f0
...
...
@@ -191,7 +191,7 @@ static PyObject *TXNObj_TXNAdjustCursor(TXNObjectObject *_self, PyObject *_args)
RgnHandle
ioCursorRgn
;
PyMac_PRECHECK
(
TXNAdjustCursor
);
if
(
!
PyArg_ParseTuple
(
_args
,
"O&"
,
ResObj_Convert
,
&
ioCursorRgn
))
Opt
ResObj_Convert
,
&
ioCursorRgn
))
return
NULL
;
TXNAdjustCursor
(
_self
->
ob_itself
,
ioCursorRgn
);
...
...
Mac/Modules/mlte/mltescan.py
View file @
f0ded2f0
...
...
@@ -37,13 +37,42 @@ class MyScanner(Scanner_OSX):
return
classname
,
listname
def
writeinitialdefs
(
self
):
self
.
defsfile
.
write
(
"def FOUR_CHAR_CODE(x): return x
\
n
"
)
self
.
defsfile
.
write
(
"""
def FOUR_CHAR_CODE(x): return x
false = 0
true = 1
kTXNClearThisControl = 0xFFFFFFFF
kTXNClearTheseFontFeatures = 0x80000000
kTXNDontCareTypeSize = 0xFFFFFFFF
kTXNDecrementTypeSize = 0x80000000
kTXNUseCurrentSelection = 0xFFFFFFFF
kTXNStartOffset = 0
kTXNEndOffset = 0x7FFFFFFF
MovieFileType = FOUR_CHAR_CODE('moov')
"""
)
def
makeblacklistnames
(
self
):
return
[
"TXNGetFontDefaults"
,
# Arg is too difficult
"TXNSetFontDefaults"
,
# Arg is too difficult
"TXNInitTextension"
,
# done manually
# Constants with funny definitions
"kTXNClearThisControl"
,
"kTXNClearTheseFontFeatures"
,
"kTXNDontCareTypeSize"
,
"kTXNDecrementTypeSize"
,
"kTXNUseCurrentSelection"
,
"kTXNStartOffset"
,
"kTXNEndOffset"
,
"kTXNQDFontNameAttributeSize"
,
"kTXNQDFontFamilyIDAttributeSize"
,
"kTXNQDFontSizeAttributeSize"
,
"kTXNQDFontStyleAttributeSize"
,
"kTXNQDFontColorAttributeSize"
,
"kTXNTextEncodingAttributeSize"
,
"status"
,
"justification"
,
]
def
makegreylist
(
self
):
...
...
@@ -84,6 +113,10 @@ class MyScanner(Scanner_OSX):
# In buffers are passed as void *
([(
"void"
,
"*"
,
"OutMode"
),
(
"ByteCount"
,
"*"
,
"InMode"
)],
[(
"MlteInBuffer"
,
"*"
,
"InMode"
)]),
# The AdjustCursor region handle is optional
([(
"RgnHandle"
,
"ioCursorRgn"
,
"InMode"
)],
[(
"OptRgnHandle"
,
"*"
,
"*"
)])
]
if
__name__
==
"__main__"
:
...
...
Mac/Modules/mlte/mltesupport.py
View file @
f0ded2f0
...
...
@@ -107,6 +107,7 @@ TXNBackgroundType = Type("TXNBackgroundType", "l")
DragReference
=
OpaqueByValueType
(
"DragReference"
,
"DragObj"
)
DragTrackingMessage
=
Type
(
"DragTrackingMessage"
,
"h"
)
RgnHandle
=
OpaqueByValueType
(
"RgnHandle"
,
"ResObj"
)
OptRgnHandle
=
OpaqueByValueType
(
"RgnHandle"
,
"OptResObj"
)
GWorldPtr
=
OpaqueByValueType
(
"GWorldPtr"
,
"GWorldObj"
)
MlteInBuffer
=
VarInputBufferType
(
'void *'
,
'ByteCount'
,
'l'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment