summaryrefslogtreecommitdiffstats
path: root/doc/input-filter.sh
diff options
context:
space:
mode:
Diffstat (limited to 'doc/input-filter.sh')
-rwxr-xr-xdoc/input-filter.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/input-filter.sh b/doc/input-filter.sh
new file mode 100755
index 0000000..8c71bef
--- /dev/null
+++ b/doc/input-filter.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+#
+# Doxygen input filter that adds \privatesection to all files,
+# and removes macros.
+#
+# This is used for .c files, and causes Doxygen to not include
+# any symbols from them, unless they also appeared in a header file.
+#
+echo -n "/** \privatesection */ "
+sed -e 's/#define.*//' < "$1"