#ifdef MS_WIN32
#include <windows.h>
#include <largeint.h>
+#include <direct.h> /* for getcwd() */
typedef LARGE_INTEGER hs_time;
#else
#ifndef HAVE_GETTIMEOFDAY
#define BUFFERSIZE 10240
+#ifndef PATH_MAX
+# ifdef MAX_PATH
+# define PATH_MAX MAX_PATH
+# else
+# error "Need a defn. for PATH_MAX in _hotshot.c"
+# endif
+#endif
+
typedef struct {
PyObject_HEAD
PyObject *filemap;
goto restart;
}
default:
+ ;
}
if (err == ERR_EOF && oldindex != 0) {
/* It looks like we ran out of data before we had it all; this
{
/* Need to dump data to the log file... */
size_t written = fwrite(self->buffer, 1, self->index, self->logfp);
- if (written == self->index)
+ if (written == (size_t)self->index)
self->index = 0;
else {
memmove(self->buffer, &self->buffer[written],
case PyTrace_RETURN:
pack_exit(self, get_tdelta(self));
break;
- case PyTrace_LINE:
+ case PyTrace_LINE:
if (self->linetimings)
pack_lineno_tdelta(self, frame->f_lineno, get_tdelta(self));
else
self->index = 0;
self->active = 0;
self->next_fileno = 0;
- self->logfp = NULL;
+ self->logfp = NULL;
self->logfilename = PyTuple_GET_ITEM(args, 0);
Py_INCREF(self->logfilename);
self->filemap = PyDict_New();
extern void init_codecs(void);
extern void initxreadlines(void);
extern void init_weakref(void);
+extern void init_hotshot(void);
extern void initxxsubtype(void);
/* XXX tim: what's the purpose of ADDMODULE MARKER? */
{"_codecs", init_codecs},
{"xreadlines", initxreadlines},
{"_weakref", init_weakref},
+ {"_hotshot", init_hotshot},
{"xxsubtype", initxxsubtype},
# End Source File\r
# Begin Source File\r
\r
+SOURCE=..\Modules\_hotshot.c\r
+\r
+!IF "$(CFG)" == "pythoncore - Win32 Release"\r
+\r
+!ELSEIF "$(CFG)" == "pythoncore - Win32 Debug"\r
+\r
+!ELSEIF "$(CFG)" == "pythoncore - Win32 Alpha Debug"\r
+\r
+!ELSEIF "$(CFG)" == "pythoncore - Win32 Alpha Release"\r
+\r
+!ENDIF \r
+\r
+# End Source File\r
+# Begin Source File\r
+\r
SOURCE=..\Modules\_localemodule.c\r
\r
!IF "$(CFG)" == "pythoncore - Win32 Release"\r