diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-06-04 06:42:03 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-06-04 06:42:03 +0000 |
commit | a2c1623827406667a4f2f058c24f1d971f6627f8 (patch) | |
tree | 22350c4c3fe902a1b573612d40a6ca4d2be51856 /source3/script | |
parent | 81e398963dbaed9c6661c336fe98329098576b94 (diff) | |
download | samba-a2c1623827406667a4f2f058c24f1d971f6627f8.tar.gz samba-a2c1623827406667a4f2f058c24f1d971f6627f8.tar.bz2 samba-a2c1623827406667a4f2f058c24f1d971f6627f8.zip |
a huge pile of changes :-)
The biggest thing is the integration of Lukes new nmbd. Its still
largely untested, so we will really need some feedback
I've also added auto prototype generation and cleaned up a lot of
minor things as a result
(This used to be commit 0d8dcfa13c527ec2c8aca39ba49c09e4e694b26c)
Diffstat (limited to 'source3/script')
-rw-r--r-- | source3/script/mkproto.awk | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/source3/script/mkproto.awk b/source3/script/mkproto.awk new file mode 100644 index 0000000000..4bf0d3c37d --- /dev/null +++ b/source3/script/mkproto.awk @@ -0,0 +1,39 @@ +# generate prototypes for Samba C code + + +BEGIN { + inheader=0; +} + +{ + if (inheader) { + if (match($0,"[)][ \t]*$")) { + inheader = 0; + printf "%s;\n",$0; + } else { + printf "%s\n",$0; + } + next; + } +} + +/^static|^extern/ || !/^[a-zA-Z]/ || /[;]/ { + next; +} + +!/^unsigned|^mode_t|^DIR|^user|^int|^char|^uint|^struct|^BOOL|^void|^time/ { + next; +} + + +/[(].*[)][ \t]*$/ { + printf "%s;\n",$0; + next; +} + +/[(]/ { + inheader=1; + printf "%s\n",$0; + next; +} + |