[Python-checkins] CVS: python/dist/src/Python getmtime.c,2.15,2.16 import.c,2.155,2.156
Tim Peters
tim_one@users.sourceforge.net
Wed, 17 Jan 2001 19:03:18 -0800
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv13775/python/dist/src/Python
Modified Files:
getmtime.c import.c
Log Message:
Move distributed and duplicated config for stat() and fstat() into pyport.h.
Index: getmtime.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/getmtime.c,v
retrieving revision 2.15
retrieving revision 2.16
diff -C2 -r2.15 -r2.16
*** getmtime.c 2000/09/01 23:29:28 2.15
--- getmtime.c 2001/01/18 03:03:16 2.16
***************
*** 7,20 ****
#include "config.h"
- #include <stdio.h>
- #ifndef DONT_HAVE_SYS_TYPES_H
- #include <sys/types.h>
- #endif
- #ifndef DONT_HAVE_SYS_STAT_H
- #include <sys/stat.h>
- #elif defined(HAVE_STAT_H)
- #include <stat.h>
- #endif
-
time_t
PyOS_GetLastModificationTime(char *path, FILE *fp)
--- 7,10 ----
Index: import.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/import.c,v
retrieving revision 2.155
retrieving revision 2.156
diff -C2 -r2.155 -r2.156
*** import.c 2001/01/10 20:40:46 2.155
--- import.c 2001/01/18 03:03:16 2.156
***************
*** 20,39 ****
#endif
- /* We expect that stat exists on most systems.
- It's confirmed on Unix, Mac and Windows.
- If you don't have it, add #define DONT_HAVE_STAT to your config.h. */
- #ifndef DONT_HAVE_STAT
- #define HAVE_STAT
-
- #ifndef DONT_HAVE_SYS_TYPES_H
- #include <sys/types.h>
- #endif
-
- #ifndef DONT_HAVE_SYS_STAT_H
- #include <sys/stat.h>
- #elif defined(HAVE_STAT_H)
- #include <stat.h>
- #endif
-
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
--- 20,23 ----
***************
*** 48,54 ****
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
#endif
-
- #endif
-
extern time_t PyOS_GetLastModificationTime(char *, FILE *);
--- 32,35 ----