mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Changed frontend-api from FILE to std::istream
This commit is contained in:
		
							parent
							
								
									5dce303a2a
								
							
						
					
					
						commit
						19cff41eb4
					
				
					 22 changed files with 116 additions and 89 deletions
				
			
		|  | @ -430,7 +430,7 @@ struct LibertyFrontend : public Frontend { | |||
| 		log("        set the specified attribute (to the value 1) on all loaded modules\n"); | ||||
| 		log("\n"); | ||||
| 	} | ||||
| 	virtual void execute(FILE *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design) | ||||
| 	virtual void execute(std::istream *&f, std::string filename, std::vector<std::string> args, RTLIL::Design *design) | ||||
| 	{ | ||||
| 		bool flag_lib = false; | ||||
| 		bool flag_ignore_redef = false; | ||||
|  | @ -467,7 +467,7 @@ struct LibertyFrontend : public Frontend { | |||
| 		} | ||||
| 		extra_args(f, filename, args, argidx); | ||||
| 
 | ||||
| 		LibertyParser parser(f); | ||||
| 		LibertyParser parser(*f); | ||||
| 		int cell_count = 0; | ||||
| 
 | ||||
| 		for (auto cell : parser.ast->children) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue