[Python-checkins] CVS: python/dist/src/Mac/Python macglue.c,1.103,1.104
Jack Jansen
jackjansen@users.sourceforge.net
Sat, 01 Sep 2001 15:37:56 -0700
Update of /cvsroot/python/python/dist/src/Mac/Python
In directory usw-pr-cvs1:/tmp/cvs-serv17679/Python/Mac/Python
Modified Files:
macglue.c
Log Message:
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.
Index: macglue.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Python/macglue.c,v
retrieving revision 1.103
retrieving revision 1.104
diff -C2 -d -r1.103 -r1.104
*** macglue.c 2001/08/27 23:16:34 1.103
--- macglue.c 2001/09/01 22:37:54 1.104
***************
*** 180,200 ****
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 */
--- 180,183 ----