Staging
v0.5.1
https://github.com/python/cpython
Revision 6e13a562ae01a962612ca76f9afcc7211240236e authored by Tim Peters on 06 September 2001, 00:32:15 UTC, committed by Tim Peters on 06 September 2001, 00:32:15 UTC
Curious:  the MS docs say stati64 etc are supported even on Win95, but
Win95 doesn't support a filesystem that allows partitions > 2 Gb.

test_largefile:  This was opening its test file in text mode.  I have no
idea how that worked under Win64, but it sure needs binary mode on Win98.
BTW, on Win98 test_largefile runs quickly (under a second).
1 parent 97f4a33
Raw File
Tip revision: 6e13a562ae01a962612ca76f9afcc7211240236e authored by Tim Peters on 06 September 2001, 00:32:15 UTC
Enable large file support on Win32 systems.
Tip revision: 6e13a56
assert.h
#ifndef Py_ASSERT_H
#define Py_ASSERT_H
#ifdef __cplusplus
extern "C" {
#endif


#ifdef MPW /* This is for MPW's File command */

#define assert(e) { if (!(e)) { printf("### Python: Assertion failed:\n\
    File %s; Line %d\n", __FILE__, __LINE__); abort(); } }
#else
#define assert(e) { if (!(e)) { printf("Assertion failed\n"); abort(); } }
#endif

#ifdef __cplusplus
}
#endif
#endif /* !Py_ASSERT_H */
back to top