mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	changes for MPW
This commit is contained in:
		
							parent
							
								
									b6fe7048e7
								
							
						
					
					
						commit
						a320fd308c
					
				
					 6 changed files with 13 additions and 9 deletions
				
			
		|  | @ -1072,7 +1072,7 @@ static sequence_methods array_as_sequence = { | |||
| 	(intintobjargproc)array_ass_slice,	/*sq_ass_slice*/ | ||||
| }; | ||||
| 
 | ||||
| static typeobject Arraytype = { | ||||
| statichere typeobject Arraytype = { | ||||
| 	OB_HEAD_INIT(&Typetype) | ||||
| 	0, | ||||
| 	"array", | ||||
|  |  | |||
|  | @ -35,7 +35,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |||
| #endif | ||||
| #endif | ||||
| 
 | ||||
| #include <math.h> | ||||
| #include "mymath.h" | ||||
| 
 | ||||
| /* Code shamelessly stolen from sox,
 | ||||
| ** (c) Craig Reese, Joe Campbell and Jeff Poskanzer 1989 */ | ||||
|  |  | |||
|  | @ -141,7 +141,7 @@ md5_getattr(self, name) | |||
| 	return findmethod(md5_methods, (object *)self, name); | ||||
| } | ||||
| 
 | ||||
| static typeobject MD5type = { | ||||
| statichere typeobject MD5type = { | ||||
| 	OB_HEAD_INIT(&Typetype) | ||||
| 	0,			/*ob_size*/ | ||||
| 	"md5",			/*tp_name*/ | ||||
|  |  | |||
|  | @ -57,7 +57,7 @@ NOTE: you MUST use the SAME key in rotor.newrotor() | |||
| 
 | ||||
| #include "Python.h" | ||||
| 
 | ||||
| #include <math.h> | ||||
| #include "mymath.h" | ||||
| 
 | ||||
| #define TRUE	1 | ||||
| #define FALSE	0 | ||||
|  | @ -755,7 +755,7 @@ PyRotor_GetAttr(s, name) | |||
| 	return Py_FindMethod(PyRotor_Methods, (PyObject * ) s, name); | ||||
| } | ||||
| 
 | ||||
| static PyTypeObject PyRotor_Type = { | ||||
| statichere PyTypeObject PyRotor_Type = { | ||||
| 	PyObject_HEAD_INIT(&PyType_Type) | ||||
| 	0,				/*ob_size*/ | ||||
| 	"rotor",			/*tp_name*/ | ||||
|  |  | |||
|  | @ -1141,7 +1141,7 @@ text_setattr(tp, name, v) | |||
| 		return dictinsert(tp->t_attr, name, v); | ||||
| } | ||||
| 
 | ||||
| static typeobject Texttype = { | ||||
| statichere typeobject Texttype = { | ||||
| 	OB_HEAD_INIT(&Typetype) | ||||
| 	0,			/*ob_size*/ | ||||
| 	"textedit",		/*tp_name*/ | ||||
|  | @ -1348,7 +1348,7 @@ menu_setattr(mp, name, v) | |||
| 		return dictinsert(mp->m_attr, name, v); | ||||
| } | ||||
| 
 | ||||
| static typeobject Menutype = { | ||||
| statichere typeobject Menutype = { | ||||
| 	OB_HEAD_INIT(&Typetype) | ||||
| 	0,			/*ob_size*/ | ||||
| 	"menu",			/*tp_name*/ | ||||
|  | @ -1505,7 +1505,7 @@ bitmap_setattr(bp, name, v) | |||
| 		return dictinsert(bp->b_attr, name, v); | ||||
| } | ||||
| 
 | ||||
| static typeobject Bitmaptype = { | ||||
| statichere typeobject Bitmaptype = { | ||||
| 	OB_HEAD_INIT(&Typetype) | ||||
| 	0,			/*ob_size*/ | ||||
| 	"bitmap",			/*tp_name*/ | ||||
|  | @ -1929,7 +1929,7 @@ window_setattr(wp, name, v) | |||
| 		return dictinsert(wp->w_attr, name, v); | ||||
| } | ||||
| 
 | ||||
| static typeobject Windowtype = { | ||||
| statichere typeobject Windowtype = { | ||||
| 	OB_HEAD_INIT(&Typetype) | ||||
| 	0,			/*ob_size*/ | ||||
| 	"window",		/*tp_name*/ | ||||
|  |  | |||
|  | @ -336,8 +336,12 @@ floattime() | |||
|    set an exception; else return 0. */ | ||||
| 
 | ||||
| static int | ||||
| #ifdef MPW | ||||
| floatsleep(double secs) | ||||
| #else | ||||
| floatsleep(secs) | ||||
| 	double secs; | ||||
| #endif /* MPW */ | ||||
| { | ||||
| #ifdef HAVE_SELECT | ||||
| 	struct timeval t; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum