diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-05-09 13:58:54 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-05-09 13:58:54 +0000 |
commit | f0fca04e4e136c4a487a922e8fb09acf46aeafa0 (patch) | |
tree | 9e8a045a39bc40d8318a8aa14a604b336850027c /mkproto.awk | |
parent | bc2e93eb8e6562590492e39349b37c38711a05ce (diff) | |
download | rsync-f0fca04e4e136c4a487a922e8fb09acf46aeafa0.tar.gz rsync-f0fca04e4e136c4a487a922e8fb09acf46aeafa0.tar.bz2 rsync-f0fca04e4e136c4a487a922e8fb09acf46aeafa0.zip |
first vesrion of working socket based rsync. It still needs a lot of
work, but at least it works :-)
Diffstat (limited to 'mkproto.awk')
-rw-r--r-- | mkproto.awk | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/mkproto.awk b/mkproto.awk index 0e3f5bf3..a08b1aff 100644 --- a/mkproto.awk +++ b/mkproto.awk @@ -19,6 +19,41 @@ BEGIN { } } +/^FN_LOCAL_BOOL/ { + split($0,a,"[,()]") + printf "BOOL %s(int );\n", a[2] +} + +/^FN_LOCAL_STRING/ { + split($0,a,"[,()]") + printf "char *%s(int );\n", a[2] +} + +/^FN_LOCAL_INT/ { + split($0,a,"[,()]") + printf "int %s(int );\n", a[2] +} + +/^FN_LOCAL_CHAR/ { + split($0,a,"[,()]") + printf "char %s(int );\n", a[2] +} + +/^FN_GLOBAL_BOOL/ { + split($0,a,"[,()]") + printf "BOOL %s(void);\n", a[2] +} + +/^FN_GLOBAL_STRING/ { + split($0,a,"[,()]") + printf "char *%s(void);\n", a[2] +} + +/^FN_GLOBAL_INT/ { + split($0,a,"[,()]") + printf "int %s(void);\n", a[2] +} + /^static|^extern/ || !/^[a-zA-Z]/ || /[;]/ { next; } |