mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	gh-127604: Only define dump_pointer() if CAN_C_BACKTRACE (#132897)
This commit is contained in:
		
							parent
							
								
									22bc953aa9
								
							
						
					
					
						commit
						c292f7f563
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -879,12 +879,14 @@ _Py_DumpHexadecimal(int fd, uintptr_t value, Py_ssize_t width)
 | 
				
			||||||
    dump_hexadecimal(fd, value, width, 0);
 | 
					    dump_hexadecimal(fd, value, width, 0);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifdef CAN_C_BACKTRACE
 | 
				
			||||||
static void
 | 
					static void
 | 
				
			||||||
dump_pointer(int fd, void *ptr)
 | 
					dump_pointer(int fd, void *ptr)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    PUTS(fd, "0x");
 | 
					    PUTS(fd, "0x");
 | 
				
			||||||
    dump_hexadecimal(fd, (uintptr_t)ptr, sizeof(void*), 1);
 | 
					    dump_hexadecimal(fd, (uintptr_t)ptr, sizeof(void*), 1);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void
 | 
					static void
 | 
				
			||||||
dump_char(int fd, char ch)
 | 
					dump_char(int fd, char ch)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue