diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2013-02-17 10:54:05 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2013-02-17 10:54:05 +0100 |
commit | 30e10239ca608434bd76ecae3c50717d232c6a95 (patch) | |
tree | 5489e462af34e27c31e82daae3c4b8dc1f0113d7 /Doxyfile.filter | |
parent | ff27cca4fea6bba863def445186fca980969cf78 (diff) | |
download | vdr-30e10239ca608434bd76ecae3c50717d232c6a95.tar.gz vdr-30e10239ca608434bd76ecae3c50717d232c6a95.tar.bz2 |
Added Doxyfile.filter to have special characters escaped that would otherwise be dropped by Doxygen
Diffstat (limited to 'Doxyfile.filter')
-rw-r--r-- | Doxyfile.filter | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Doxyfile.filter b/Doxyfile.filter new file mode 100644 index 00000000..7fde9551 --- /dev/null +++ b/Doxyfile.filter @@ -0,0 +1,34 @@ +#!/usr/bin/perl + +# Filter source files for use with Doxygen. +# +# Escapes special characters in comments marked with "///<". +# +# Usage: Doxyfile.filter filename +# +# See the main source file 'vdr.c' for copyright information and +# how to reach the author. +# +# $Id: Doxyfile.filter 2.1 2013/02/17 10:54:05 kls Exp $ + +$TAG = "///<"; + +while (<>) { + $t = $_; + $p = index($t, $TAG); + if ($p >= 0) { + $p += length($TAG); + print substr($t, 0, $p); + $quote = 0; + while (1) { + $s = substr($t, $p++, 1); + last if ($s eq ""); + $quote ^= 1 if ($s eq '"'); + print "\\" if (!$quote && $s =~ /[\\\@<>]/); + print $s; + } + } + else { + print $t; + } + } |