preparing for release of 1.7.3
[rsync.git] / mkproto.awk
blob026b43b7a0544ef98f7cc97212b9a606cc6bb3bf
1 # generate prototypes for Samba C code
2 # tridge, June 1996
4 BEGIN {
5 inheader=0;
6 print "/* This file is automatically generated with \"make proto\". DO NOT EDIT */"
7 print ""
11 if (inheader) {
12 if (match($0,"[)][ \t]*$")) {
13 inheader = 0;
14 printf "%s;\n",$0;
15 } else {
16 printf "%s\n",$0;
18 next;
22 /^static|^extern/ || !/^[a-zA-Z]/ || /[;]/ {
23 next;
26 !/^off_t|^pid_t|^unsigned|^mode_t|^DIR|^user|^int|^char|^uint|^struct|^BOOL|^void|^time/ {
27 next;
31 /[(].*[)][ \t]*$/ {
32 printf "%s;\n",$0;
33 next;
36 /[(]/ {
37 inheader=1;
38 printf "%s\n",$0;
39 next;