summaryrefslogtreecommitdiff
path: root/Build/source/libs/gd/libgd-src/netware/get_exp.awk
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/gd/libgd-src/netware/get_exp.awk')
-rw-r--r--Build/source/libs/gd/libgd-src/netware/get_exp.awk37
1 files changed, 37 insertions, 0 deletions
diff --git a/Build/source/libs/gd/libgd-src/netware/get_exp.awk b/Build/source/libs/gd/libgd-src/netware/get_exp.awk
new file mode 100644
index 00000000000..724f245d8a8
--- /dev/null
+++ b/Build/source/libs/gd/libgd-src/netware/get_exp.awk
@@ -0,0 +1,37 @@
+#!awk
+# awk hack to fetch libgd export functions from header
+# and write them to STDOUT. Here you can get an awk version for Win32:
+# http://www.gknw.net/development/prgtools/awk.zip
+# $Id$
+#
+BEGIN {
+ print "# Exports extracted from " ARGV[1] "";
+ print "# Do not edit this file - it is created by make!";
+ print "# All your changes will be lost!!";
+ if (EPREFIX) {
+ print " (" EPREFIX ")";
+ }
+ print " gdFontGetGiant,";
+ print " gdFontGetLarge,";
+ print " gdFontGetMediumBold,";
+ print " gdFontGetSmall,";
+ print " gdFontGetTiny,";
+ print " gdImageSquareToCircle,";
+ print " gdImageStringFTCircle,";
+ print " gdImageSharpen,";
+}
+
+# try to catch the function names from lines like:
+# BGD_DECLARE(gdImagePtr) function ...
+# BGD_DECLARE(void *) function ...
+#
+/^[ \t]*BGD_DECLARE\([^\)]*\) +(gd[A-Za-z0-9_]+)/ {
+ sub(/^[ \t]*BGD_DECLARE\([^\)]+\) +/, "");
+ sub(/[ \t]*\(.*$/, "");
+ # hack to filter gdImageEllipse() since we have no C implementation.
+ if ($0 != "gdImageEllipse") {
+ print " " $0 ",";
+ }
+}
+
+