diff options
author | Dave Beckett <dave@dajobe.org> | 2014-11-21 09:47:47 -0800 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2014-11-21 09:47:47 -0800 |
commit | 9310827e640570fc26095135d550c0afb16cebb5 (patch) | |
tree | b668552def892a12ff610d1c609017ea215f876d /scripts/fix-gtkdoc-header.pl | |
parent | e14dc04977213b432ab207d10949797e4c9bb561 (diff) | |
download | raptor-9310827e640570fc26095135d550c0afb16cebb5.tar.gz |
Update scripts
Diffstat (limited to 'scripts/fix-gtkdoc-header.pl')
-rwxr-xr-x | scripts/fix-gtkdoc-header.pl | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/scripts/fix-gtkdoc-header.pl b/scripts/fix-gtkdoc-header.pl index d2abb8fb..df73ccc9 100755 --- a/scripts/fix-gtkdoc-header.pl +++ b/scripts/fix-gtkdoc-header.pl @@ -1,11 +1,11 @@ #!/usr/bin/perl -w # -# Edit raptor.h so that gtk-doc is happy about it +# Edit main header so that gtk-doc is happy about it # # USAGE: -# perl fix-gtkc-header.pl < raptor.h > raptor.i +# perl fix-gtkc-header.pl < header.h > header.i # -# Copyright (C) 2010, David Beckett http://www.dajobe.org/ +# Copyright (C) 2010-2014, David Beckett http://www.dajobe.org/ # # This package is Free Software and part of Redland http://librdf.org/ # @@ -27,5 +27,12 @@ while(<>) { # gtk-doc hates const in some places s/const char\* const\* (\w+)/const char\* $1/; + + # and unsigned char + s/const unsigned char \*(\w+)/const char \* $1/; + + # and unsigned char in a handler typedef + s/typedef unsigned char\s*\*/typedef char \*/; + print; } |