mirror of
				https://github.com/Z3Prover/z3
				synced 2025-11-04 13:29:11 +00:00 
			
		
		
		
	seq_decl: fix build with stricter compilers
get rid of 32 rellocations as a nice side-effect
This commit is contained in:
		
							parent
							
								
									bc123dc79b
								
							
						
					
					
						commit
						465d28e160
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -80,8 +80,9 @@ zstring zstring::replace(zstring const& src, zstring const& dst) const {
 | 
			
		|||
    return result;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static char* esc_table[32] = { "\\0", "^A", "^B", "^C", "^D", "^E", "^F", "\\a", "\\b", "\\t", "\\n", "\\v", "\\f", "\\r", "^N",
 | 
			
		||||
                               "^O", "^P", "^Q", "^R", "^S", "^T", "^U", "^V","^W","^X","^Y","^Z","\\e","^\\","^]","^^","^_"};
 | 
			
		||||
static const char esc_table[32][3] =
 | 
			
		||||
    { "\\0", "^A", "^B", "^C", "^D", "^E", "^F", "\\a", "\\b", "\\t", "\\n", "\\v", "\\f", "\\r", "^N",
 | 
			
		||||
      "^O", "^P", "^Q", "^R", "^S", "^T", "^U", "^V","^W","^X","^Y","^Z","\\e","^\\","^]","^^","^_"};
 | 
			
		||||
 
 | 
			
		||||
std::string zstring::encode() const {
 | 
			
		||||
    SASSERT(m_encoding == ascii);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue