mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 03:44:55 +00:00 
			
		
		
		
	Don't need to define c2pstrcpy() on Carbon: it's in CarbonLib.
This commit is contained in:
		
							parent
							
								
									6ff228c6d2
								
							
						
					
					
						commit
						91faef83ca
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -345,6 +345,7 @@ Pstring(char *str)
 | 
				
			||||||
	return buf;
 | 
						return buf;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if !TARGET_API_MAC_CARBON
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
c2pstrcpy(unsigned char *dst, const char *src)
 | 
					c2pstrcpy(unsigned char *dst, const char *src)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
| 
						 | 
					@ -355,6 +356,7 @@ c2pstrcpy(unsigned char *dst, const char *src)
 | 
				
			||||||
	strncpy((char *)dst+1, src, len);
 | 
						strncpy((char *)dst+1, src, len);
 | 
				
			||||||
	dst[0] = len;
 | 
						dst[0] = len;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Like strerror() but for Mac OS error numbers */
 | 
					/* Like strerror() but for Mac OS error numbers */
 | 
				
			||||||
char *PyMac_StrError(int err)
 | 
					char *PyMac_StrError(int err)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue