From: Michael Schroeder Date: Tue, 24 Sep 2013 11:13:43 +0000 (+0200) Subject: fix two small glitches in xcode filter X-Git-Tag: BASE-SuSE-Code-13_1-Branch~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b75b8ab5b192d9e4908f9c4115f5ca8509c0882;p=thirdparty%2Flibsolv.git fix two small glitches in xcode filter --- diff --git a/doc/filters/xcode.pl b/doc/filters/xcode.pl index 7a865b07..54b40800 100755 --- a/doc/filters/xcode.pl +++ b/doc/filters/xcode.pl @@ -35,14 +35,15 @@ while() { if (!/^[a-zA-Z0-9_]+$/) { $_ = " $_"; $_ = "$_ "; - s/(?<=[^a-zA-Z_\&:\.\'\";])(?!solv\W|Solv\W|Pool\W)([\$\@[a-zA-Z_][a-zA-Z0-9_]*)(?=[^a-zA-Z0-9_\(;\[])(?!::)(?! [^=])/<-S>$1<-I>/g; - # small fixup for perl bare words + s/(?<=[^a-zA-Z_\&:\.\'\";])(?!solv\W|Solv\W|Pool\W)([\$\@a-zA-Z_][a-zA-Z0-9_]*)(?=[^a-zA-Z0-9_\(;\[])(?!::)(?! [^=])/<-S>$1<-I>/g; + # fixup for perl bare words s/{<-S>([a-zA-Z_][a-zA-Z0-9]*)<-I>}/{$1}/g; - # small fixup for callbackfunctions + # fixup for callbackfunctions s/\\(&[a-zA-Z_]+)/\\<-S>$1<-I>/; - # small fixup for stringification + # fixup for stringification s/\$<-S>/<-S>\$/g; - # small fixup for %d + # fixup for %d + s/%<-S>d<-I>\"/%d\"/; s/%<-S>d<-I>\\<-S>n<-I>/%d\\n/; # iterators s/^ //; diff --git a/doc/libsolv-bindings.3 b/doc/libsolv-bindings.3 index 8dc8a42a..76587eef 100644 --- a/doc/libsolv-bindings.3 +++ b/doc/libsolv-bindings.3 @@ -2,12 +2,12 @@ .\" Title: Libsolv-Bindings .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.78.0 -.\" Date: 09/20/2013 +.\" Date: 09/24/2013 .\" Manual: LIBSOLV .\" Source: libsolv .\" Language: English .\" -.TH "LIBSOLV\-BINDINGS" "3" "09/20/2013" "libsolv" "LIBSOLV" +.TH "LIBSOLV\-BINDINGS" "3" "09/24/2013" "libsolv" "LIBSOLV" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -156,7 +156,7 @@ Attributes can be accessed as usual: .\} .nf \fIpool\fR\fB\&.appdata = 42\fR -\fBprint "appdata is %\fR\fId\fR\fB" % (\fR\fIpool\fR\fB\&.appdata)\fR +\fBprint "appdata is %d" % (\fR\fIpool\fR\fB\&.appdata)\fR .fi .if n \{\ .RE @@ -180,7 +180,7 @@ Arrays are passed and returned as list objects: .RS 4 .\} .nf -\fIjobs\fR \fB=\fR \fI[\fR\fB]\fR +\fIjobs\fR \fB= []\fR \fIproblems\fR \fB=\fR \fIsolver\fR\fB\&.solve(\fR\fIjobs\fR\fB)\fR .fi .if n \{\ @@ -269,7 +269,7 @@ Arrays are passed and returned as array objects: .RS 4 .\} .nf -\fIjobs\fR \fB=\fR \fI[\fR\fB]\fR +\fIjobs\fR \fB= []\fR \fIproblems\fR \fB=\fR \fIsolver\fR\fB\&.solve(\fR\fIjobs\fR\fB)\fR .fi .if n \{\