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
d9c01a56
Commit
d9c01a56
authored
May 15, 2000
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Manually added HRHTMLRenderingLibAvailable.
Blacklist HRDisposeReference and call it in the dispose routine.
parent
036194ce
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
3 deletions
+23
-3
Mac/Modules/htmlrender/HtmlRendermodule.c
Mac/Modules/htmlrender/HtmlRendermodule.c
+16
-0
Mac/Modules/htmlrender/htmlscan.py
Mac/Modules/htmlrender/htmlscan.py
+2
-1
Mac/Modules/htmlrender/htmlsupport.py
Mac/Modules/htmlrender/htmlsupport.py
+5
-2
No files found.
Mac/Modules/htmlrender/HtmlRendermodule.c
View file @
d9c01a56
...
@@ -755,6 +755,20 @@ static PyObject *Html_HRUtilGetURLFromFSSpec(_self, _args)
...
@@ -755,6 +755,20 @@ static PyObject *Html_HRUtilGetURLFromFSSpec(_self, _args)
return
_res
;
return
_res
;
}
}
static
PyObject
*
Html_HRHTMLRenderingLibAvailable
(
_self
,
_args
)
PyObject
*
_self
;
PyObject
*
_args
;
{
PyObject
*
_res
=
NULL
;
int
_rv
;
if
(
!
PyArg_ParseTuple
(
_args
,
""
))
return
NULL
;
_rv
=
HRHTMLRenderingLibAvailable
();
_res
=
Py_BuildValue
(
"i"
,
_rv
);
return
_res
;
}
static
PyMethodDef
Html_methods
[]
=
{
static
PyMethodDef
Html_methods
[]
=
{
{
"HRGetHTMLRenderingLibVersion"
,
(
PyCFunction
)
Html_HRGetHTMLRenderingLibVersion
,
1
,
{
"HRGetHTMLRenderingLibVersion"
,
(
PyCFunction
)
Html_HRGetHTMLRenderingLibVersion
,
1
,
"() -> (NumVersion returnVers)"
},
"() -> (NumVersion returnVers)"
},
...
@@ -772,6 +786,8 @@ static PyMethodDef Html_methods[] = {
...
@@ -772,6 +786,8 @@ static PyMethodDef Html_methods[] = {
"(char * rootURL, char * linkURL) -> (FSSpec destSpec)"
},
"(char * rootURL, char * linkURL) -> (FSSpec destSpec)"
},
{
"HRUtilGetURLFromFSSpec"
,
(
PyCFunction
)
Html_HRUtilGetURLFromFSSpec
,
1
,
{
"HRUtilGetURLFromFSSpec"
,
(
PyCFunction
)
Html_HRUtilGetURLFromFSSpec
,
1
,
"(FSSpec fsspec, Handle urlHandle) -> None"
},
"(FSSpec fsspec, Handle urlHandle) -> None"
},
{
"HRHTMLRenderingLibAvailable"
,
(
PyCFunction
)
Html_HRHTMLRenderingLibAvailable
,
1
,
"() -> (int _rv)"
},
{
NULL
,
NULL
,
0
}
{
NULL
,
NULL
,
0
}
};
};
...
...
Mac/Modules/htmlrender/htmlscan.py
View file @
d9c01a56
...
@@ -14,7 +14,7 @@ OBJECT = "HRReference"
...
@@ -14,7 +14,7 @@ OBJECT = "HRReference"
def
main
():
def
main
():
## input = LONG + ".h"
## input = LONG + ".h"
input
=
"Macintosh HD:
SWdev:Jack
:Universal:Interfaces:CIncludes:HTMLRendering.h"
input
=
"Macintosh HD:
ufs:jack:SWdev
:Universal:Interfaces:CIncludes:HTMLRendering.h"
output
=
SHORT
+
"gen.py"
output
=
SHORT
+
"gen.py"
defsoutput
=
TOOLBOXDIR
+
LONG
+
".py"
defsoutput
=
TOOLBOXDIR
+
LONG
+
".py"
scanner
=
MyScanner
(
input
,
output
,
defsoutput
)
scanner
=
MyScanner
(
input
,
output
,
defsoutput
)
...
@@ -38,6 +38,7 @@ class MyScanner(Scanner):
...
@@ -38,6 +38,7 @@ class MyScanner(Scanner):
def
makeblacklistnames
(
self
):
def
makeblacklistnames
(
self
):
return
[
return
[
"HRDisposeReference"
,
]
]
def
makeblacklisttypes
(
self
):
def
makeblacklisttypes
(
self
):
...
...
Mac/Modules/htmlrender/htmlsupport.py
View file @
d9c01a56
...
@@ -143,8 +143,8 @@ class MyObjectDefinition(GlobalObjectDefinition):
...
@@ -143,8 +143,8 @@ class MyObjectDefinition(GlobalObjectDefinition):
## Output("if (v == Py_None) { *p_itself = NULL; return 1; }")
## Output("if (v == Py_None) { *p_itself = NULL; return 1; }")
## Output("if (PyInt_Check(v)) { *p_itself = (DialogPtr)PyInt_AsLong(v);")
## Output("if (PyInt_Check(v)) { *p_itself = (DialogPtr)PyInt_AsLong(v);")
## Output(" return 1; }")
## Output(" return 1; }")
##
def outputFreeIt(self, itselfname):
def
outputFreeIt
(
self
,
itselfname
):
## Output("DisposeDialog
(%s);", itselfname)
Output
(
"HRDisposeReference
(%s);"
,
itselfname
)
# Create the generator groups and link them
# Create the generator groups and link them
module
=
MacModule
(
'HtmlRender'
,
'Html'
,
includestuff
,
finalstuff
,
initstuff
)
module
=
MacModule
(
'HtmlRender'
,
'Html'
,
includestuff
,
finalstuff
,
initstuff
)
...
@@ -160,6 +160,9 @@ functions = []
...
@@ -160,6 +160,9 @@ functions = []
methods
=
[]
methods
=
[]
execfile
(
"htmlgen.py"
)
execfile
(
"htmlgen.py"
)
f
=
Function
(
int
,
'HRHTMLRenderingLibAvailable'
)
functions
.
append
(
f
)
# add the populated lists to the generator groups
# add the populated lists to the generator groups
for
f
in
functions
:
module
.
add
(
f
)
for
f
in
functions
:
module
.
add
(
f
)
for
f
in
methods
:
object
.
add
(
f
)
for
f
in
methods
:
object
.
add
(
f
)
...
...
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