summaryrefslogtreecommitdiffstats
path: root/tdeabc/vcard/include/generated/generateHeaders.awk
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-12-19 11:48:03 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-12-19 17:18:43 +0900
commit083dbd6407c433a7ff2b4880836d919a84b2cea9 (patch)
tree9eec64b07305ca490a57812da1bc3a9ac19bcd13 /tdeabc/vcard/include/generated/generateHeaders.awk
parentefc7c849c6eaad2bd9d9192c8865d2954f0ccbac (diff)
downloadtdelibs-083dbd64.tar.gz
tdelibs-083dbd64.zip
tdeabc/vcard: integrated "generated" partial header files into the place where they
are actually used. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 5cb3ed2e545a03815cdd04ab8666b605a71c44b4)
Diffstat (limited to 'tdeabc/vcard/include/generated/generateHeaders.awk')
-rwxr-xr-xtdeabc/vcard/include/generated/generateHeaders.awk41
1 files changed, 0 insertions, 41 deletions
diff --git a/tdeabc/vcard/include/generated/generateHeaders.awk b/tdeabc/vcard/include/generated/generateHeaders.awk
deleted file mode 100755
index 471db11b4..000000000
--- a/tdeabc/vcard/include/generated/generateHeaders.awk
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/awk -f
-
-{
- outfile = $1 "-generated.h"
- name = $1
-
- OFS=""
-
- print "// XXX Automatically generated. DO NOT EDIT! XXX //\n" > outfile
- print "// WARNING! All changes made in this file will be lost!\n" > outfile
-
- if ($2 == "v") { pre = "virtual " } else { pre = "" }
-
- print "public:" >> outfile
- print name "();" >> outfile
- print name "(const " name "&);" >> outfile
- print name "(const QCString&);" >> outfile
- print pre name " & operator = (" name "&);" >> outfile
- print pre name " & operator = (const QCString&);" >> outfile
- print pre "bool operator ==(" name "&);" >> outfile
- print pre "bool operator !=(" name "& x) {return !(*this==x);}" \
- >> outfile
- print pre "bool operator ==(const QCString& s) {" name " a(s);" \
- "return(*this==a);} " >> outfile
- print pre "bool operator != (const QCString& s) {return !(*this == s);}\n" \
- >> outfile
- print "virtual ~" name "();" >> outfile
- print pre "void parse() " \
- "{if(!parsed_) _parse();parsed_=true;assembled_=false;}\n" \
- >> outfile
- print pre "void assemble() " \
- "{if(assembled_) return;parse();_assemble();assembled_=true;}\n" \
- >> outfile
- print pre "void _parse();" >> outfile
- print pre "void _assemble();" >> outfile
- print pre "const char * className() const { return \"" name "\"; }" \
- >> outfile
-
- print "\n// End of automatically generated code //" >> outfile
-}
-