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
97257355
Commit
97257355
authored
Nov 18, 2002
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define PyDoc_STR if it isn't defined. This makes these modules compile
for Python 2.2.
parent
5efbbcd7
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
25 additions
and
1 deletion
+25
-1
Mac/Modules/help/_Helpmodule.c
Mac/Modules/help/_Helpmodule.c
+3
-0
Mac/Modules/help/helpsupport.py
Mac/Modules/help/helpsupport.py
+3
-0
Mac/Modules/res/_Resmodule.c
Mac/Modules/res/_Resmodule.c
+3
-0
Mac/Modules/res/ressupport.py
Mac/Modules/res/ressupport.py
+3
-0
Mac/Modules/scrap/_Scrapmodule.c
Mac/Modules/scrap/_Scrapmodule.c
+3
-0
Mac/Modules/scrap/scrapsupport.py
Mac/Modules/scrap/scrapsupport.py
+3
-0
Mac/Modules/waste/wastemodule.c
Mac/Modules/waste/wastemodule.c
+3
-0
Mac/Modules/waste/wastescan.py
Mac/Modules/waste/wastescan.py
+1
-1
Mac/Modules/waste/wastesupport.py
Mac/Modules/waste/wastesupport.py
+3
-0
No files found.
Mac/Modules/help/_Helpmodule.c
View file @
97257355
...
@@ -20,6 +20,9 @@
...
@@ -20,6 +20,9 @@
}} while(0)
}} while(0)
#ifndef PyDoc_STR
#define PyDoc_STR(x) (x)
#endif
#ifdef WITHOUT_FRAMEWORKS
#ifdef WITHOUT_FRAMEWORKS
#include <MacHelp.h>
#include <MacHelp.h>
#else
#else
...
...
Mac/Modules/help/helpsupport.py
View file @
97257355
...
@@ -36,6 +36,9 @@ MenuItemIndex = Type("MenuItemIndex", "H")
...
@@ -36,6 +36,9 @@ MenuItemIndex = Type("MenuItemIndex", "H")
#EventKind = Type("EventKind", "H")
#EventKind = Type("EventKind", "H")
includestuff
=
includestuff
+
"""
includestuff
=
includestuff
+
"""
#ifndef PyDoc_STR
#define PyDoc_STR(x) (x)
#endif
#ifdef WITHOUT_FRAMEWORKS
#ifdef WITHOUT_FRAMEWORKS
#include <MacHelp.h>
#include <MacHelp.h>
#else
#else
...
...
Mac/Modules/res/_Resmodule.c
View file @
97257355
...
@@ -20,6 +20,9 @@
...
@@ -20,6 +20,9 @@
}} while(0)
}} while(0)
#ifndef PyDoc_STR
#define PyDoc_STR(x) (x)
#endif
#ifdef WITHOUT_FRAMEWORKS
#ifdef WITHOUT_FRAMEWORKS
#include <Resources.h>
#include <Resources.h>
#include <string.h>
#include <string.h>
...
...
Mac/Modules/res/ressupport.py
View file @
97257355
...
@@ -25,6 +25,9 @@ FSCatalogInfo_ptr = FakeType("(FSCatalogInfo *)0")
...
@@ -25,6 +25,9 @@ FSCatalogInfo_ptr = FakeType("(FSCatalogInfo *)0")
# includestuff etc. are imported from macsupport
# includestuff etc. are imported from macsupport
includestuff
=
includestuff
+
"""
includestuff
=
includestuff
+
"""
#ifndef PyDoc_STR
#define PyDoc_STR(x) (x)
#endif
#ifdef WITHOUT_FRAMEWORKS
#ifdef WITHOUT_FRAMEWORKS
#include <Resources.h>
#include <Resources.h>
#include <string.h>
#include <string.h>
...
...
Mac/Modules/scrap/_Scrapmodule.c
View file @
97257355
...
@@ -5,6 +5,9 @@
...
@@ -5,6 +5,9 @@
#ifndef PyDoc_STR
#define PyDoc_STR(x) (x)
#endif
#ifdef _WIN32
#ifdef _WIN32
#include "pywintoolbox.h"
#include "pywintoolbox.h"
#else
#else
...
...
Mac/Modules/scrap/scrapsupport.py
View file @
97257355
...
@@ -26,6 +26,9 @@ from macsupport import *
...
@@ -26,6 +26,9 @@ from macsupport import *
ScrapRef
=
OpaqueByValueType
(
OBJECTTYPE
,
OBJECTPREFIX
)
ScrapRef
=
OpaqueByValueType
(
OBJECTTYPE
,
OBJECTPREFIX
)
includestuff
=
includestuff
+
"""
includestuff
=
includestuff
+
"""
#ifndef PyDoc_STR
#define PyDoc_STR(x) (x)
#endif
#ifdef WITHOUT_FRAMEWORKS
#ifdef WITHOUT_FRAMEWORKS
#include <Scrap.h>
#include <Scrap.h>
#else
#else
...
...
Mac/Modules/waste/wastemodule.c
View file @
97257355
...
@@ -23,6 +23,9 @@
...
@@ -23,6 +23,9 @@
#include <WASTE.h>
#include <WASTE.h>
#include <WEObjectHandlers.h>
#include <WEObjectHandlers.h>
#include <WETabs.h>
#include <WETabs.h>
#ifndef PyDoc_STR
#define PyDoc_STR(x) (x)
#endif
/* Exported by Qdmodule.c: */
/* Exported by Qdmodule.c: */
extern
PyObject
*
QdRGB_New
(
RGBColor
*
);
extern
PyObject
*
QdRGB_New
(
RGBColor
*
);
...
...
Mac/Modules/waste/wastescan.py
View file @
97257355
...
@@ -6,7 +6,7 @@ from bgenlocations import TOOLBOXDIR, BGENDIR
...
@@ -6,7 +6,7 @@ from bgenlocations import TOOLBOXDIR, BGENDIR
sys
.
path
.
append
(
BGENDIR
)
sys
.
path
.
append
(
BGENDIR
)
from
scantools
import
Scanner
from
scantools
import
Scanner
WASTEDIR
=
'/
Applications
/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/MacOS Support/(Third Party Support)/Waste 2.0 Distribution/C_C++ Headers/'
WASTEDIR
=
'/
Volumes/Moes/Applications (Mac OS 9)
/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/MacOS Support/(Third Party Support)/Waste 2.0 Distribution/C_C++ Headers/'
if
not
os
.
path
.
exists
(
WASTEDIR
):
if
not
os
.
path
.
exists
(
WASTEDIR
):
raise
'Error: not found: %s'
,
WASTEDIR
raise
'Error: not found: %s'
,
WASTEDIR
...
...
Mac/Modules/waste/wastesupport.py
View file @
97257355
...
@@ -63,6 +63,9 @@ includestuff = includestuff + """
...
@@ -63,6 +63,9 @@ includestuff = includestuff + """
#include <%s>"""
%
MACHEADERFILE
+
"""
#include <%s>"""
%
MACHEADERFILE
+
"""
#include <WEObjectHandlers.h>
#include <WEObjectHandlers.h>
#include <WETabs.h>
#include <WETabs.h>
#ifndef PyDoc_STR
#define PyDoc_STR(x) (x)
#endif
/* Exported by Qdmodule.c: */
/* Exported by Qdmodule.c: */
extern PyObject *QdRGB_New(RGBColor *);
extern PyObject *QdRGB_New(RGBColor *);
...
...
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