diff Mac/Python/macmain.c @ 26635:96b8c8ae7262 legacy-trunk

Get rid of 2.2 "poor mans universal newlines" now that the real thing is implemented.
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 13 Dec 2002 13:57:35 +0000
parents 74d1ad61f843
children eb6b36b26e8d
line wrap: on
line diff
--- a/Mac/Python/macmain.c	Fri Dec 13 13:38:28 2002 +0000
+++ b/Mac/Python/macmain.c	Fri Dec 13 13:57:35 2002 +0000
@@ -635,22 +635,3 @@
 	return (int)PyMac_options.delayconsole;
 }
 
-#ifndef WITHOUT_UNIX_NEWLINES
-/*
-** Experimental feature (for 2.2a2): optionally 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';
-		else if ( *p == '\n' && !PyMac_options.unixnewlines )
-			*p = '\r';
-}
-#endif /* WITHOUT_UNIX_NEWLINES */
-