mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 03:32:29 +00:00 
			
		
		
		
	Added newline support to Pass::call() parser
This commit is contained in:
		
							parent
							
								
									90bc71dd90
								
							
						
					
					
						commit
						662cb549e4
					
				
					 1 changed files with 12 additions and 0 deletions
				
			
		|  | @ -182,6 +182,18 @@ void Pass::call(RTLIL::Design *design, std::string command) | ||||||
| 				call(design, "clean -purge"); | 				call(design, "clean -purge"); | ||||||
| 		} else | 		} else | ||||||
| 			args.push_back(tok); | 			args.push_back(tok); | ||||||
|  | 		bool found_nl = false; | ||||||
|  | 		for (auto c : cmd_buf) { | ||||||
|  | 			if (c == ' ' || c == '\t') | ||||||
|  | 				continue; | ||||||
|  | 			if (c == '\r' || c == '\n') | ||||||
|  | 				found_nl = true; | ||||||
|  | 			break; | ||||||
|  | 		} | ||||||
|  | 		if (found_nl) { | ||||||
|  | 			call(design, args); | ||||||
|  | 			args.clear(); | ||||||
|  | 		} | ||||||
| 		tok = next_token(cmd_buf, " \t\r\n"); | 		tok = next_token(cmd_buf, " \t\r\n"); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue