mirror of
				https://github.com/cclassic/model-ghdl
				synced 2025-10-30 02:12:05 +01:00 
			
		
		
		
	Improved argument parsing
This commit is contained in:
		
							parent
							
								
									fe7a3f7225
								
							
						
					
					
						commit
						171277632c
					
				
							
								
								
									
										4
									
								
								main.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								main.c
									
									
									
									
									
								
							| @ -118,8 +118,9 @@ int run_ghdl(char *command, ...) { | ||||
|         start = buf; | ||||
|         arrc = 0; | ||||
| 
 | ||||
|         //printf("** BUF: %s\n", buf);
 | ||||
|         do { // Split into params
 | ||||
|             if (*ptr == '(') { | ||||
|             if (*ptr == ' ') { | ||||
|                 arr[arrc++] = start; | ||||
|                 break; | ||||
|             } | ||||
| @ -144,7 +145,6 @@ int run_ghdl(char *command, ...) { | ||||
|         } | ||||
|         fflush(stdout); | ||||
|     } | ||||
|     printf("\n"); | ||||
| 
 | ||||
|     return pclose(proc); | ||||
| } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user