diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-09-01 22:37:54 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-09-01 22:37:54 (GMT) |
commit | ff5d8aaa28f16fc6b34b61d6926881cc31a9626d (patch) | |
tree | 3b75b9c0a86dfeacba21dbf8eaf14451165fc552 /Mac/Python/macglue.c | |
parent | a5ffeb69ab814618d9b4d77eba3aa2e03b1b9625 (diff) | |
download | cpython-ff5d8aaa28f16fc6b34b61d6926881cc31a9626d.zip cpython-ff5d8aaa28f16fc6b34b61d6926881cc31a9626d.tar.gz cpython-ff5d8aaa28f16fc6b34b61d6926881cc31a9626d.tar.bz2 |
Added preferences/startup options for division warning
and accepting unix-style newlines on input.
Also (finally) added a startup option to get -vv behaviour.
Moved __convert_to_newlines to main.c because that's easier with the newline option.
Diffstat (limited to 'Mac/Python/macglue.c')
-rw-r--r-- | Mac/Python/macglue.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/Mac/Python/macglue.c b/Mac/Python/macglue.c index d42484b..9c01fd7 100644 --- a/Mac/Python/macglue.c +++ b/Mac/Python/macglue.c @@ -179,23 +179,6 @@ static PyObject *python_event_handler; */ int PyMac_AppearanceCompliant; -#ifndef WITHOUT_UNIX_NEWLINES -/* -** Experimental feature (for 2.2a2): allow unix newlines -** as well as Mac newlines on input. We replace a lowlevel -** MSL routine to accomplish this -*/ -void -__convert_to_newlines(unsigned char * buf, size_t * n_ptr) -{ - unsigned char *p; - size_t n = *n_ptr; - - for(p=buf; n > 0; p++, n--) - if ( *p == '\r' ) *p = '\n'; -} -#endif /* WITHOUT_UNIX_NEWLINES */ - /* Given an FSSpec, return the FSSpec of the parent folder */ static OSErr |