diff options
author | cvs2svn Import User <samba-bugs@samba.org> | 1997-10-10 14:46:44 +0000 |
---|---|---|
committer | cvs2svn Import User <samba-bugs@samba.org> | 1997-10-10 14:46:44 +0000 |
commit | 4480ee713f3ebaaf6852c2e3a5967b30e587f7db (patch) | |
tree | 70a8a34fa622fd9adef3dd7f65da299bf6c3e48a /source/script/mkproto.awk | |
parent | 3590a783338defa4ff1385b2d5bb095c5051ac82 (diff) | |
download | samba-4480ee713f3ebaaf6852c2e3a5967b30e587f7db.tar.gz samba-4480ee713f3ebaaf6852c2e3a5967b30e587f7db.tar.xz samba-4480ee713f3ebaaf6852c2e3a5967b30e587f7db.zip |
This commit was manufactured by cvs2svn to create tag 'samba'.samba-misc-tags/samba
Diffstat (limited to 'source/script/mkproto.awk')
-rw-r--r-- | source/script/mkproto.awk | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/source/script/mkproto.awk b/source/script/mkproto.awk deleted file mode 100644 index 1ccf2fb2b0a..00000000000 --- a/source/script/mkproto.awk +++ /dev/null @@ -1,82 +0,0 @@ -BEGIN { - inheader=0; - current_file=""; - print "/* This file is automatically generated with \"make proto\". DO NOT EDIT */" - print "" -} - -{ - if (FILENAME!=current_file) { - print "" - print "/*The following definitions come from ",FILENAME," */" - print "" - current_file=FILENAME - } - if (inheader) { - if (match($0,"[)][ \t]*$")) { - inheader = 0; - printf "%s;\n",$0; - } else { - printf "%s\n",$0; - } - next; - } -} - -# we handle the loadparm.c fns separately - -/^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; -} - -!/^unsigned|^mode_t|^DIR|^user|^int|^char|^uint|^struct|^BOOL|^void|^time|^smb_shm_offset_t|^shm_offset_t|^enum remote_arch_types|arc4_key/ { - next; -} - - -/[(].*[)][ \t]*$/ { - printf "%s;\n",$0; - next; -} - -/[(]/ { - inheader=1; - printf "%s\n",$0; - next; -} - |