mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Ported to CodeWarrior 6
This commit is contained in:
		
							parent
							
								
									b81cf9d61c
								
							
						
					
					
						commit
						a0e76bebd3
					
				
					 3 changed files with 10 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -26,3 +26,8 @@ struct macstat {
 | 
			
		|||
#define S_IREAD    0400
 | 
			
		||||
#define S_IWRITE   0200
 | 
			
		||||
#define S_IEXEC    0100
 | 
			
		||||
 | 
			
		||||
/* To stop inclusion of MWerks header: */
 | 
			
		||||
#ifndef _STAT
 | 
			
		||||
#define _STAT
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -454,6 +454,7 @@ mac_write(self, args)
 | 
			
		|||
}
 | 
			
		||||
#endif /* !__MWERKS__ */
 | 
			
		||||
 | 
			
		||||
#undef MALLOC_DEBUG
 | 
			
		||||
#ifdef MALLOC_DEBUG
 | 
			
		||||
static object *
 | 
			
		||||
mac_mstats(self, args)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -32,9 +32,8 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 | 
			
		|||
#ifndef HAVE_UNIVERSAL_HEADERS
 | 
			
		||||
#define ResultUPP ResultProcPtr
 | 
			
		||||
#define NewResultProc(x) (x)
 | 
			
		||||
/* The '2' has move in this name... */
 | 
			
		||||
#define Result2UPP ResultProc2Ptr
 | 
			
		||||
#define NewResult2Proc(x) (x)
 | 
			
		||||
#define ResultProc2UPP ResultProc2Ptr
 | 
			
		||||
#define NewResultProc2Proc(x) (x)
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
static object *ErrorObject;
 | 
			
		||||
| 
						 | 
				
			
			@ -365,7 +364,7 @@ dnr_HInfo(self, args)
 | 
			
		|||
	OSErr err;
 | 
			
		||||
	char *hostname;
 | 
			
		||||
	dnrrobject *rv;
 | 
			
		||||
	Result2UPP cb_upp = NewResult2Proc(dnrr_done);
 | 
			
		||||
	ResultProc2UPP cb_upp = NewResultProc2Proc(dnrr_done);
 | 
			
		||||
 | 
			
		||||
	if (!newgetargs(args, "s", &hostname))
 | 
			
		||||
		return NULL;
 | 
			
		||||
| 
						 | 
				
			
			@ -398,7 +397,7 @@ dnr_MXInfo(self, args)
 | 
			
		|||
	OSErr err;
 | 
			
		||||
	char *hostname;
 | 
			
		||||
	dnrrobject *rv;
 | 
			
		||||
	Result2UPP cb_upp = NewResult2Proc(dnrr_done);
 | 
			
		||||
	ResultProc2UPP cb_upp = NewResultProc2Proc(dnrr_done);
 | 
			
		||||
 | 
			
		||||
	if (!newgetargs(args, "s", &hostname))
 | 
			
		||||
		return NULL;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue