work on clang. I have no idea whether it runs or not as building a e.out program is quite hard and needs a special platform.
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			188 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			188 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/sh
 | |
| # $Id$
 | |
| 
 | |
| echo '/* This file is generated from '$1'; do not edit */'
 | |
| 
 | |
| cat $1 |
 | |
| grep '^\.Wn' |
 | |
| sed '
 | |
| 	s/.*"/#define	/
 | |
| '
 | |
| 
 | |
| echo '#define	warning(n)	do_warn((n), __LINE__, __FILE__)'
 | |
| 
 |