@@ -67,6 +67,7 @@ corresponding Unix manual entries for more information on calls.";
6767#endif /* HAVE_FCNTL_H */
6868
6969/* Various compilers have only certain posix functions */
70+ /* XXX Gosh I wish these were all moved into config.h */
7071#ifdef __WATCOMC__ /* Watcom compiler */
7172#define HAVE_GETCWD 1
7273#define HAVE_OPENDIR 1
@@ -479,6 +480,8 @@ posix_listdir(self, args)
479480 PyObject * self ;
480481 PyObject * args ;
481482{
483+ /* XXX Should redo this putting the three versions of opendir
484+ in separate files instead of having them all here... */
482485#if defined(MS_WIN32 ) && !defined(HAVE_OPENDIR )
483486
484487 char * name ;
@@ -832,6 +835,7 @@ posix_utime(self, args)
832835 long atime , mtime ;
833836 int res ;
834837
838+ /* XXX should define struct utimbuf instead, above */
835839#ifdef HAVE_UTIME_H
836840 struct utimbuf buf ;
837841#define ATIME buf.actime
@@ -2222,7 +2226,8 @@ all_ins(d)
22222226}
22232227
22242228
2225-
2229+ /* XXX The following should be more unified -- only difference left is
2230+ function name and module name. */
22262231
22272232#if defined(_MSC_VER ) || defined(__WATCOMC__ )
22282233void
@@ -2254,6 +2259,7 @@ initnt()
22542259 return ;
22552260
22562261 finally :
2262+ /* XXX Shouldn't */
22572263 Py_FatalError ("can't initialize NT posixmodule" );
22582264}
22592265#else /* not a PC port */
@@ -2286,6 +2292,7 @@ initposix()
22862292 return ;
22872293
22882294 finally :
2295+ /* XXX Shouldn't */
22892296 Py_FatalError ("can't initialize posix module" );
22902297}
22912298#endif /* !_MSC_VER */
0 commit comments