mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-30 19:22:31 +00:00 
			
		
		
		
	Fixed win32 troubles with f.readsome()
This commit is contained in:
		
							parent
							
								
									a32e067e5c
								
							
						
					
					
						commit
						8263f6a74a
					
				
					 6 changed files with 21 additions and 4 deletions
				
			
		|  | @ -64,7 +64,7 @@ YOSYS_NAMESPACE_END | |||
| 	return TOK_ID; | ||||
| 
 | ||||
| #define YY_INPUT(buf,result,max_size) \ | ||||
| 	result = lexin->readsome(buf, max_size); | ||||
| 	result = readsome(*lexin, buf, max_size); | ||||
| 
 | ||||
| %} | ||||
| 
 | ||||
|  |  | |||
|  | @ -202,7 +202,7 @@ static void input_file(std::istream &f, std::string filename) | |||
| 	auto it = input_buffer.begin(); | ||||
| 
 | ||||
| 	input_buffer.insert(it, "`file_push " + filename + "\n"); | ||||
| 	while ((rc = f.readsome(buffer, sizeof(buffer)-1)) > 0) { | ||||
| 	while ((rc = readsome(f, buffer, sizeof(buffer)-1)) > 0) { | ||||
| 		buffer[rc] = 0; | ||||
| 		input_buffer.insert(it, buffer); | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue