mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	show: truncate very long module names
This commit is contained in:
		
							parent
							
								
									22c9237716
								
							
						
					
					
						commit
						9c7f0e7670
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -201,6 +201,12 @@ struct ShowWorker | |||
| 		if (id[0] == '\\') | ||||
| 			id = id.substr(1); | ||||
| 
 | ||||
| 		// TODO: optionally include autoname + print correspondence in case of ambiguity
 | ||||
| 		size_t max_label_len = abbreviateIds ? 256 : 16384; | ||||
| 		if (id.size() > max_label_len) { | ||||
| 			id = id.substr(0,max_label_len-3) + "..."; | ||||
| 		} | ||||
| 
 | ||||
| 		std::string str; | ||||
| 		for (char ch : id) { | ||||
| 			if (ch == '\\') { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue