summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-09-24 13:13:43 +0200
committerMichael Schroeder <mls@suse.de>2013-09-24 13:13:43 +0200
commit6b75b8ab5b192d9e4908f9c4115f5ca8509c0882 (patch)
treefad25c3e3a57a9ca7c362b6af4adef6c2cfbf3ef /doc
parent4a4a2a649704cc15f854b58991686965f647adce (diff)
downloadlibsolv-6b75b8ab5b192d9e4908f9c4115f5ca8509c0882.tar.gz
libsolv-6b75b8ab5b192d9e4908f9c4115f5ca8509c0882.tar.bz2
libsolv-6b75b8ab5b192d9e4908f9c4115f5ca8509c0882.zip
fix two small glitches in xcode filter
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/filters/xcode.pl11
-rw-r--r--doc/libsolv-bindings.310
2 files changed, 11 insertions, 10 deletions
diff --git a/doc/filters/xcode.pl b/doc/filters/xcode.pl
index 7a865b0..54b4080 100755
--- a/doc/filters/xcode.pl
+++ b/doc/filters/xcode.pl
@@ -35,14 +35,15 @@ while(<STDIN>) {
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><I>$1<-I><S>/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><I>$1<-I><S>/g;
+ # fixup for perl bare words
s/{<-S><I>([a-zA-Z_][a-zA-Z0-9]*)<-I><S>}/{$1}/g;
- # small fixup for callbackfunctions
+ # fixup for callbackfunctions
s/\\(&amp;[a-zA-Z_]+)/\\<-S><I>$1<-I><S>/;
- # small fixup for stringification
+ # fixup for stringification
s/\$<-S><I>/<-S><I>\$/g;
- # small fixup for %d
+ # fixup for %d
+ s/%<-S><I>d<-I><S>\"/%d\"/;
s/%<-S><I>d<-I><S>\\<-S><I>n<-I><S>/%d\\n/;
# iterators
s/^ //;
diff --git a/doc/libsolv-bindings.3 b/doc/libsolv-bindings.3
index 8dc8a42..76587ee 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 <http://docbook.sf.net/>
-.\" 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 \{\