mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	fix codestyle formatting
This commit is contained in:
		
							parent
							
								
									e531fb203a
								
							
						
					
					
						commit
						4f15e7f00f
					
				
					 3 changed files with 14 additions and 14 deletions
				
			
		|  | @ -529,13 +529,13 @@ int main(int argc, char **argv) | ||||||
| 			log_error("Can't open dependencies file for writing: %s\n", strerror(errno)); | 			log_error("Can't open dependencies file for writing: %s\n", strerror(errno)); | ||||||
| 		bool first = true; | 		bool first = true; | ||||||
| 		for (auto fn : yosys_output_files) { | 		for (auto fn : yosys_output_files) { | ||||||
| 			fprintf(f, "%s%s", first ? "" : " ", escape_filename_spaces (fn).c_str()); | 			fprintf(f, "%s%s", first ? "" : " ", escape_filename_spaces(fn).c_str()); | ||||||
| 			first = false; | 			first = false; | ||||||
| 		} | 		} | ||||||
| 		fprintf(f, ":"); | 		fprintf(f, ":"); | ||||||
| 		for (auto fn : yosys_input_files) { | 		for (auto fn : yosys_input_files) { | ||||||
| 			if (yosys_output_files.count(fn) == 0) | 			if (yosys_output_files.count(fn) == 0) | ||||||
| 				fprintf(f, " %s", escape_filename_spaces (fn).c_str()); | 				fprintf(f, " %s", escape_filename_spaces(fn).c_str()); | ||||||
| 		} | 		} | ||||||
| 		fprintf(f, "\n"); | 		fprintf(f, "\n"); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|  | @ -482,18 +482,18 @@ void remove_directory(std::string dirname) | ||||||
| #endif | #endif | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| std::string escape_filename_spaces (const std::string& filename) | std::string escape_filename_spaces(const std::string& filename) | ||||||
| { | { | ||||||
|   std::string out; | 	std::string out; | ||||||
|   out.reserve (filename.size ()); | 	out.reserve(filename.size()); | ||||||
|   for (auto c : filename) | 	for (auto c : filename) | ||||||
|   { | 	{ | ||||||
|     if (c == ' ') | 		if (c == ' ') | ||||||
|       out += "\\ "; | 			out += "\\ "; | ||||||
|     else | 		else | ||||||
|       out.push_back (c); | 			out.push_back(c); | ||||||
|   } | 	} | ||||||
|   return out; | 	return out; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| int GetSize(RTLIL::Wire *wire) | int GetSize(RTLIL::Wire *wire) | ||||||
|  |  | ||||||
|  | @ -257,7 +257,7 @@ std::string make_temp_dir(std::string template_str = "/tmp/yosys_XXXXXX"); | ||||||
| bool check_file_exists(std::string filename, bool is_exec = false); | bool check_file_exists(std::string filename, bool is_exec = false); | ||||||
| bool is_absolute_path(std::string filename); | bool is_absolute_path(std::string filename); | ||||||
| void remove_directory(std::string dirname); | void remove_directory(std::string dirname); | ||||||
| std::string escape_filename_spaces (const std::string& filename); | std::string escape_filename_spaces(const std::string& filename); | ||||||
| 
 | 
 | ||||||
| template<typename T> int GetSize(const T &obj) { return obj.size(); } | template<typename T> int GetSize(const T &obj) { return obj.size(); } | ||||||
| int GetSize(RTLIL::Wire *wire); | int GetSize(RTLIL::Wire *wire); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue