ack/util/int/M.warn_h

19 lines
300 B
Plaintext
Raw Normal View History

1988-06-22 16:57:09 +00:00
#!/bin/sh
1994-06-24 11:31:16 +00:00
# $Id$
1988-06-22 16:57:09 +00:00
echo '/* This file is generated from '$1'; do not edit */'
1988-06-22 16:57:09 +00:00
cat $1 |
grep '^\.Wn' |
sed '
s/.*"/#define /
'
1988-06-22 16:57:09 +00:00
echo
echo 'void init_wmsg(void);'
echo 'void do_warn(int, int, const char *);'
echo 'void set_wmask(int);'
echo
echo '#define warning(n) do_warn((n), __LINE__, __FILE__)'
1988-06-22 16:57:09 +00:00