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
5cb1977b
Commit
5cb1977b
authored
Feb 26, 1992
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move SEP to osdefs.h. Use MAXPATHLEN from osdefs.h.
parent
8c68f3a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
15 deletions
+2
-15
Python/import.c
Python/import.c
+2
-15
No files found.
Python/import.c
View file @
5cb1977b
...
@@ -36,6 +36,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
...
@@ -36,6 +36,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include "marshal.h"
#include "marshal.h"
#include "compile.h"
#include "compile.h"
#include "ceval.h"
#include "ceval.h"
#include "osdefs.h"
#ifdef DEBUG
#ifdef DEBUG
#define D(x) x
#define D(x) x
...
@@ -53,20 +54,6 @@ extern char *argv0;
...
@@ -53,20 +54,6 @@ extern char *argv0;
#define MAGIC 0x949494L
#define MAGIC 0x949494L
/* Define pathname separator used in file names */
#ifdef macintosh
#define SEP ':'
#endif
#ifdef MSDOS
#define SEP '\\'
#endif
#ifndef SEP
#define SEP '/'
#endif
static
object
*
modules
;
static
object
*
modules
;
/* Forward */
/* Forward */
...
@@ -181,7 +168,7 @@ get_module(m, name, m_ret)
...
@@ -181,7 +168,7 @@ get_module(m, name, m_ret)
FILE
*
fp
,
*
fpc
;
FILE
*
fp
,
*
fpc
;
node
*
n
;
node
*
n
;
int
err
;
int
err
;
char
namebuf
[
258
];
char
namebuf
[
MAXPATHLEN
+
1
];
int
namelen
;
int
namelen
;
long
mtime
;
long
mtime
;
extern
long
getmtime
();
extern
long
getmtime
();
...
...
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