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
deff89c8
Commit
deff89c8
authored
Oct 12, 1998
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced fprintf(stderr,...) with PySys_WriteStderr(...) where appropriate.
parent
3179b360
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
21 additions
and
22 deletions
+21
-22
Mac/Include/macbuildno.h
Mac/Include/macbuildno.h
+1
-1
Mac/Lib/lib-toolbox/AEDataModel.py
Mac/Lib/lib-toolbox/AEDataModel.py
+1
-1
Mac/Lib/lib-toolbox/AEObjects.py
Mac/Lib/lib-toolbox/AEObjects.py
+1
-1
Mac/Lib/lib-toolbox/AERegistry.py
Mac/Lib/lib-toolbox/AERegistry.py
+1
-1
Mac/Lib/lib-toolbox/AppleEvents.py
Mac/Lib/lib-toolbox/AppleEvents.py
+1
-1
Mac/Lib/lib-toolbox/Controls.py
Mac/Lib/lib-toolbox/Controls.py
+1
-1
Mac/Lib/lib-toolbox/Dialogs.py
Mac/Lib/lib-toolbox/Dialogs.py
+1
-1
Mac/Modules/ae/AEmodule.c
Mac/Modules/ae/AEmodule.c
+1
-1
Mac/Modules/ae/aesupport.py
Mac/Modules/ae/aesupport.py
+1
-1
Mac/Modules/ctl/Ctlmodule.c
Mac/Modules/ctl/Ctlmodule.c
+1
-1
Mac/Modules/ctl/ctlsupport.py
Mac/Modules/ctl/ctlsupport.py
+1
-1
Mac/Modules/dlg/Dlgmodule.c
Mac/Modules/dlg/Dlgmodule.c
+2
-2
Mac/Modules/dlg/dlgsupport.py
Mac/Modules/dlg/dlgsupport.py
+2
-2
Mac/Modules/macosmodule.c
Mac/Modules/macosmodule.c
+1
-1
Mac/Modules/waste/wastemodule.c
Mac/Modules/waste/wastemodule.c
+1
-1
Mac/Modules/waste/wastesupport.py
Mac/Modules/waste/wastesupport.py
+1
-1
Mac/Python/macimport.c
Mac/Python/macimport.c
+3
-4
No files found.
Mac/Include/macbuildno.h
View file @
deff89c8
#define BUILD 4
1
#define BUILD 4
2
Mac/Lib/lib-toolbox/AEDataModel.py
View file @
deff89c8
# Generated from '
flap
:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:AEDataModel.h'
# Generated from '
moes
:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:AEDataModel.h'
def
FOUR_CHAR_CODE
(
x
):
return
x
typeBoolean
=
FOUR_CHAR_CODE
(
'bool'
)
...
...
Mac/Lib/lib-toolbox/AEObjects.py
View file @
deff89c8
# Generated from '
flap
:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:AEObjects.h'
# Generated from '
moes
:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:AEObjects.h'
def
FOUR_CHAR_CODE
(
x
):
return
x
kAEAND
=
FOUR_CHAR_CODE
(
'AND '
)
...
...
Mac/Lib/lib-toolbox/AERegistry.py
View file @
deff89c8
# Generated from '
flap
:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:AERegistry.h'
# Generated from '
moes
:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:AERegistry.h'
def
FOUR_CHAR_CODE
(
x
):
return
x
from
AEDataModel
import
*
...
...
Mac/Lib/lib-toolbox/AppleEvents.py
View file @
deff89c8
# Generated from '
flap
:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:AppleEvents.h'
# Generated from '
moes
:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:AppleEvents.h'
def
FOUR_CHAR_CODE
(
x
):
return
x
from
AEDataModel
import
*
...
...
Mac/Lib/lib-toolbox/Controls.py
View file @
deff89c8
# Generated from '
flap
:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Controls.h'
# Generated from '
moes
:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Controls.h'
def
FOUR_CHAR_CODE
(
x
):
return
x
from
TextEdit
import
*
...
...
Mac/Lib/lib-toolbox/Dialogs.py
View file @
deff89c8
# Generated from '
flap
:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Dialogs.h'
# Generated from '
moes
:Metrowerks:Metrowerks CodeWarrior:MacOS Support:Headers:Universal Headers:Dialogs.h'
kControlDialogItem
=
4
kButtonDialogItem
=
kControlDialogItem
|
0
...
...
Mac/Modules/ae/AEmodule.c
View file @
deff89c8
...
...
@@ -75,7 +75,7 @@ static pascal Boolean AEIdleProc(EventRecord *theEvent, long *sleepTime, RgnHand
if
(
PyOS_InterruptOccurred
()
)
return
1
;
if
(
PyMac_HandleEvent
(
theEvent
)
<
0
)
{
fprintf
(
stderr
,
"Exception in user event handler during AE processing
\n
"
);
PySys_WriteStderr
(
"Exception in user event handler during AE processing
\n
"
);
PyErr_Clear
();
}
return
0
;
...
...
Mac/Modules/ae/aesupport.py
View file @
deff89c8
...
...
@@ -115,7 +115,7 @@ static pascal Boolean AEIdleProc(EventRecord *theEvent, long *sleepTime, RgnHand
if ( PyOS_InterruptOccurred() )
return 1;
if ( PyMac_HandleEvent(theEvent) < 0 ) {
fprintf(stderr,
"Exception in user event handler during AE processing
\
\
n");
PySys_WriteStderr(
"Exception in user event handler during AE processing
\
\
n");
PyErr_Clear();
}
return 0;
...
...
Mac/Modules/ctl/Ctlmodule.c
View file @
deff89c8
...
...
@@ -1419,7 +1419,7 @@ mytracker(ctl, part)
if
(
rv
)
Py_DECREF
(
rv
);
else
fprintf
(
stderr
,
"TrackControl: exception in tracker function
\n
"
);
PySys_WriteStderr
(
"TrackControl: exception in tracker function
\n
"
);
}
...
...
Mac/Modules/ctl/ctlsupport.py
View file @
deff89c8
...
...
@@ -137,7 +137,7 @@ mytracker(ctl, part)
if (rv)
Py_DECREF(rv);
else
fprintf(stderr,
"TrackControl: exception in tracker function
\
\
n");
PySys_WriteStderr(
"TrackControl: exception in tracker function
\
\
n");
}
"""
...
...
Mac/Modules/dlg/Dlgmodule.c
View file @
deff89c8
...
...
@@ -73,7 +73,7 @@ static pascal Boolean Dlg_UnivFilterProc(DialogPtr dialog,
Py_DECREF
(
args
);
}
if
(
res
==
NULL
)
{
fprintf
(
stderr
,
"Exception in Dialog Filter
\n
"
);
PySys_WriteStderr
(
"Exception in Dialog Filter
\n
"
);
PyErr_Print
();
*
itemHit
=
-
1
;
/* Fake return item */
return
1
;
/* We handled it */
...
...
@@ -124,7 +124,7 @@ static pascal void Dlg_UnivUserItemProc(DialogPtr dialog,
Py_DECREF
(
args
);
}
if
(
res
==
NULL
)
{
fprintf
(
stderr
,
"Exception in Dialog UserItem proc
\n
"
);
PySys_WriteStderr
(
"Exception in Dialog UserItem proc
\n
"
);
PyErr_Print
();
}
Py_XDECREF
(
res
);
...
...
Mac/Modules/dlg/dlgsupport.py
View file @
deff89c8
...
...
@@ -59,7 +59,7 @@ static pascal Boolean Dlg_UnivFilterProc(DialogPtr dialog,
Py_DECREF(args);
}
if (res == NULL) {
fprintf(stderr,
"Exception in Dialog Filter
\
\
n");
PySys_WriteStderr(
"Exception in Dialog Filter
\
\
n");
PyErr_Print();
*itemHit = -1; /* Fake return item */
return 1; /* We handled it */
...
...
@@ -110,7 +110,7 @@ static pascal void Dlg_UnivUserItemProc(DialogPtr dialog,
Py_DECREF(args);
}
if (res == NULL) {
fprintf(stderr,
"Exception in Dialog UserItem proc
\
\
n");
PySys_WriteStderr(
"Exception in Dialog UserItem proc
\
\
n");
PyErr_Print();
}
Py_XDECREF(res);
...
...
Mac/Modules/macosmodule.c
View file @
deff89c8
...
...
@@ -377,7 +377,7 @@ MacOS_HighLevelEventProc(EventRecord *e)
Py_DECREF
(
args
);
}
if
(
res
==
NULL
)
{
fprintf
(
stderr
,
"Exception in MacOS_HighLevelEventProc:
\n
"
);
PySys_WriteStderr
(
"Exception in MacOS_HighLevelEventProc:
\n
"
);
PyErr_Print
();
}
else
...
...
Mac/Modules/waste/wastemodule.c
View file @
deff89c8
...
...
@@ -150,7 +150,7 @@ any_handler(WESelector what, WEObjectReference who, PyObject *args, PyObject **r
Py_DECREF
(
func
);
Py_DECREF
(
key
);
if
(
*
rv
==
NULL
)
{
fprintf
(
stderr
,
"--Exception in callback: "
);
PySys_WriteStderr
(
"--Exception in callback: "
);
PyErr_Print
();
return
errAEReplyNotArrived
;
}
...
...
Mac/Modules/waste/wastesupport.py
View file @
deff89c8
...
...
@@ -164,7 +164,7 @@ any_handler(WESelector what, WEObjectReference who, PyObject *args, PyObject **r
Py_DECREF(func);
Py_DECREF(key);
if ( *rv == NULL ) {
fprintf(stderr,
"--Exception in callback: ");
PySys_WriteStderr(
"--Exception in callback: ");
PyErr_Print();
return errAEReplyNotArrived;
}
...
...
Mac/Python/macimport.c
View file @
deff89c8
...
...
@@ -271,8 +271,7 @@ PyMac_LoadCodeResourceModule(name, pathname)
Py_XDECREF
(
s
);
#endif
if
(
Py_VerboseFlag
)
fprintf
(
stderr
,
"import %s # pyd fragment %#s loaded from %s
\n
"
,
PySys_WriteStderr
(
"import %s # pyd fragment %#s loaded from %s
\n
"
,
name
,
fragmentname
,
pathname
);
Py_INCREF
(
m
);
return
m
;
...
...
@@ -389,7 +388,7 @@ packageerror:
m
=
NULL
;
}
if
(
Py_VerboseFlag
)
fprintf
(
stderr
,
"import %s # pyc resource from %s
\n
"
,
PySys_WriteStderr
(
"import %s # pyc resource from %s
\n
"
,
module
,
filename
);
return
m
;
error:
...
...
@@ -459,7 +458,7 @@ PyMac_FindModuleExtension(char *buf, int *lenp, char *module)
strcpy
((
char
*
)
fnbuf
+
1
+
modnamelen
,
fdp
->
suffix
);
fnbuf
[
0
]
=
strlen
((
char
*
)
fnbuf
+
1
);
if
(
Py_VerboseFlag
>
1
)
fprintf
(
stderr
,
"# trying %s%s
\n
"
,
buf
,
fdp
->
suffix
);
PySys_WriteStderr
(
"# trying %s%s
\n
"
,
buf
,
fdp
->
suffix
);
if
(
FSMakeFSSpec
(
refnum
,
dirid
,
fnbuf
,
&
fss
)
==
noErr
)
{
/* Found it. */
#if 0
...
...
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