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
c73f83c8
Commit
c73f83c8
authored
Oct 07, 1997
by
Jack Jansen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed for new "import dir.module" semantics. Needs accompanying fix in
import.c (yes Guido, I'll send it tomorrow)
parent
55e3927f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
Mac/Python/macglue.c
Mac/Python/macglue.c
+9
-0
No files found.
Mac/Python/macglue.c
View file @
c73f83c8
...
...
@@ -862,8 +862,13 @@ PyMac_FindModuleExtension(char *buf, int *lenp, char *module)
if
(
!
_PyImport_Filetab
[
0
].
suffix
)
return
0
;
#if 0
/* Pre 1.5a4 */
strcpy(buf+*lenp, module);
strcpy(buf+*lenp+modnamelen, _PyImport_Filetab[0].suffix);
#else
strcpy
(
buf
+*
lenp
,
_PyImport_Filetab
[
0
].
suffix
);
#endif
if
(
FSMakeFSSpec
(
0
,
0
,
Pstring
(
buf
),
&
fss
)
==
noErr
)
return
_PyImport_Filetab
;
/*
...
...
@@ -887,7 +892,11 @@ PyMac_FindModuleExtension(char *buf, int *lenp, char *module)
fprintf
(
stderr
,
"# trying %s%s
\n
"
,
buf
,
fdp
->
suffix
);
if
(
FSMakeFSSpec
(
refnum
,
dirid
,
fnbuf
,
&
fss
)
==
noErr
)
{
/* Found it. */
#if 0
strcpy(buf+*lenp+modnamelen, fdp->suffix);
#else
strcpy
(
buf
+*
lenp
+
modnamelen
,
fdp
->
suffix
);
#endif
*
lenp
=
strlen
(
buf
);
return
fdp
;
}
...
...
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