Displaying 20 results from an estimated 86 matches for "docstrings".
2018 Aug 22
4
[PATCH] generator: Do not claim copyright for future years
...ike
/usr/include/guestfs-gobject.h
/usr/lib/perl5/vendor_perl/5.26.2/x86_64-linux-thread-multi/Sys/Guestfs.pm
/usr/lib64/python2.7/site-packages/guestfs.py
/usr/lib64/ocaml/guestfs/guestfs.mli
Commits like 212762c59351822e9db7d3dc82afe1765808d918
will take care of updating the year.
---
generator/docstrings.ml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/generator/docstrings.ml b/generator/docstrings.ml
index fa7b1668a..b480d036e 100644
--- a/generator/docstrings.ml
+++ b/generator/docstrings.ml
@@ -68,9 +68,7 @@ let version_added = function
Some (sprintf "%d.%d.%d&...
2018 Aug 22
0
Re: [PATCH] generator: Do not claim copyright for future years
.../usr/lib/perl5/vendor_perl/5.26.2/x86_64-linux-thread-multi/Sys/Guestfs.pm
> /usr/lib64/python2.7/site-packages/guestfs.py
> /usr/lib64/ocaml/guestfs/guestfs.mli
>
> Commits like 212762c59351822e9db7d3dc82afe1765808d918
> will take care of updating the year.
> ---
> generator/docstrings.ml | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/generator/docstrings.ml b/generator/docstrings.ml
> index fa7b1668a..b480d036e 100644
> --- a/generator/docstrings.ml
> +++ b/generator/docstrings.ml
> @@ -68,9 +68,7 @@ let version_added = function...
2015 May 28
4
[PATCH 1/4] generator: move api_version to a common version_added
This way the version string of each API can be used also in other
generator modules.
Mostly code motion, no actual behaviour changes.
---
generator/c.ml | 21 ++++++++++-----------
generator/docstrings.ml | 6 ++++++
2 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/generator/c.ml b/generator/c.ml
index 63dc09a..a2b9c94 100644
--- a/generator/c.ml
+++ b/generator/c.ml
@@ -301,8 +301,10 @@ I<The caller must free the returned buffer after use>.\n\n"
pr "This fun...
2016 Feb 23
7
[PATCH 0/4] Various tweaks to the generator.
Use interfaces files (*.mli files) instead of exporting all symbols
randomly.
Change the 'file is generated' warnings at the top of generated files
so they accurately describe which source file generates each output
file.
Rich.
2016 Mar 18
0
Fwd: libguestfs patch
...demann" <bwiedemann@suse.de>
To: rjones@redhat.com
Subject: libguestfs patch
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
Thunderbird/38.6.0
Hi,
here is a patch for making libguestfs build more reproducibly
Ciao
Bernhard M.
Index: libguestfs-1.26.10/generator/docstrings.ml
===================================================================
--- libguestfs-1.26.10.orig/generator/docstrings.ml
+++ libguestfs-1.26.10/generator/docstrings.ml
@@ -51,9 +51,7 @@ fact that they are deprecated indicates
with correct use of these functions." prefix alt in
Some txt...
2019 Nov 23
2
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
On Sat, Nov 23, 2019 at 3:10 PM Richard W.M. Jones <rjones@redhat.com> wrote:
>
> On Sat, Nov 23, 2019 at 01:42:15AM +0200, Nir Soffer wrote:
> > On Fri, Nov 22, 2019 at 9:55 PM Richard W.M. Jones <rjones@redhat.com> wrote:
> > > +def pread(h, count, offset, flags):
> > > + assert flags == 0
> > > + return
2009 Jun 15
0
python bindings update
...nt t
<Ogg logical stream 11f68f2c is Theora 720x576 25.00 fps
video, encoded frame
content is 720x576 with 0x0 offset, aspect is 16:15>
>>> t.read_frame()
True
[...]
and so on. Then you can literally copy & paste any example from the
documentation/docstrings and it will work.
This is just to show that Python allows this kind of interactive
exploration of the api and it makes it easy to play with theora.
I am interested in all feedback.
Another unrelated thing is that I never used the github pages before,
so I wanted to try it and it works just great...
2015 Aug 31
0
[PATCH v5 2/2] fish: add journal-view command (RHBZ#988100)
...am
index a3fe50d..bd466c2 100644
--- a/generator/Makefile.am
+++ b/generator/Makefile.am
@@ -37,6 +37,7 @@ sources = \
haskell.ml \
java.ml \
lua.ml \
+ journal.ml \
main.ml \
ocaml.ml \
optgroups.ml \
@@ -60,13 +61,14 @@ sources = \
objects = \
types.cmo \
utils.cmo \
+ pr.cmo \
+ docstrings.cmo \
+ journal.cmo \
actions.cmo \
structs.cmo \
optgroups.cmo \
prepopts.cmo \
events.cmo \
- pr.cmo \
- docstrings.cmo \
checks.cmo \
c.cmo \
xdr.cmo \
diff --git a/generator/actions.ml b/generator/actions.ml
index 13c8bc8..e914fd3 100644
--- a/generator/actions.ml
+++ b/generato...
2011 May 06
1
Create and access several instances of a C++ class from R
Hello
We have a C++ class with several methods that manipulate an object. How is it possible to create several instances of that class *from R* in the C++ realm, which can then be accessed via a given name character? Symbolic example (we hope this illustrates our problem):
// C++ side:
class Foo{
...
}
// perhaps:
void my_new_instance_wrapper("the_character") // plain to see that I am
2018 Apr 20
1
[PATCH] uefi: remove last references to kraxel's old edk2 builds
...so remove the last ones, and the supporting code.
---
generator/UEFI.ml | 6 ------
v2v/utils.ml | 1 -
2 files changed, 7 deletions(-)
diff --git a/generator/UEFI.ml b/generator/UEFI.ml
index 5161e28ee..1ff3f84d2 100644
--- a/generator/UEFI.ml
+++ b/generator/UEFI.ml
@@ -30,12 +30,6 @@ open Docstrings
(* Order is significant *within architectures only*. *)
let firmware = [
- "i386",
- "/usr/share/edk2.git/ovmf-ia32/OVMF_CODE-pure-efi.fd",
- None,
- "/usr/share/edk2.git/ovmf-ia32/OVMF_VARS-pure-efi.fd",
- [];
-
"x86_64",
"/...
2010 Dec 09
1
displaying a note or comment when --format doc
I''m new to rspec, so, I might be coloring outside the lines, but,
there have been several instances where I have wanted to display a
comment or note.
for example:
describe "truck" do
it "should require model" do
end
end
rspec spec --format doc
truck
should require model
What I mean by display a comment or note would be like:
truck
NOTE: blah, blah,
2019 Nov 23
0
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
On Sat, Nov 23, 2019 at 01:42:15AM +0200, Nir Soffer wrote:
> On Fri, Nov 22, 2019 at 9:55 PM Richard W.M. Jones <rjones@redhat.com> wrote:
> > +def pread(h, count, offset, flags):
> > + assert flags == 0
> > + return h['disk'][offset:offset+count]
>
> Very nice and simple test plugin!
>
> But this returns always a bytearray, which is also
2015 Aug 27
0
[PATCH v4 2/2] fish: add journal-view command
...am
index a3fe50d..bd466c2 100644
--- a/generator/Makefile.am
+++ b/generator/Makefile.am
@@ -37,6 +37,7 @@ sources = \
haskell.ml \
java.ml \
lua.ml \
+ journal.ml \
main.ml \
ocaml.ml \
optgroups.ml \
@@ -60,13 +61,14 @@ sources = \
objects = \
types.cmo \
utils.cmo \
+ pr.cmo \
+ docstrings.cmo \
+ journal.cmo \
actions.cmo \
structs.cmo \
optgroups.cmo \
prepopts.cmo \
events.cmo \
- pr.cmo \
- docstrings.cmo \
checks.cmo \
c.cmo \
xdr.cmo \
diff --git a/generator/actions.ml b/generator/actions.ml
index 13c8bc8..e914fd3 100644
--- a/generator/actions.ml
+++ b/generato...
2012 Sep 11
2
R equivalent of python module structure and functionality?
summary: how to structure an R file such that it can be both
1. used as a script via, e.g., (from OS commandline)
$ Rscript foo.r bar=baz
2. imported and called as a function via, e.g. (from R commandline)
> source('./foo.r)
> foo(bar='baz')
? I'm looking for the 'R equivalent' of how python supports this
usecase.
details:
As discussed in the thread beginning
2019 Nov 24
0
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
On Sat, Nov 23, 2019 at 06:11:47PM +0200, Nir Soffer wrote:
> On Sat, Nov 23, 2019 at 3:10 PM Richard W.M. Jones <rjones@redhat.com> wrote:
> >
> > On Sat, Nov 23, 2019 at 01:42:15AM +0200, Nir Soffer wrote:
> > > On Fri, Nov 22, 2019 at 9:55 PM Richard W.M. Jones <rjones@redhat.com> wrote:
> > > > +def pread(h, count, offset, flags):
> > >
2016 Feb 23
0
[PATCH 1/4] generator: Add interfaces to all modules.
...generator/c.mli | 41 +++++++++++++++++++++++++++++++++++++++++
generator/checks.mli | 18 ++++++++++++++++++
generator/csharp.mli | 19 +++++++++++++++++++
generator/customize.mli | 22 ++++++++++++++++++++++
generator/daemon.mli | 23 +++++++++++++++++++++++
generator/docstrings.mli | 34 ++++++++++++++++++++++++++++++++++
generator/erlang.mli | 20 ++++++++++++++++++++
generator/errnostring.mli | 21 +++++++++++++++++++++
generator/events.mli | 20 ++++++++++++++++++++
generator/fish.mli | 28 ++++++++++++++++++++++++++++
generator/gobject.mli | 29 +...
2019 Jul 29
1
Re: [PATCH] Rust bindings: Add Rust bindings
...les
Rust bindings: Incorporate bindings to build system
---
Makefile.am | 3 +
configure.ac | 6 +
generator/Makefile.am | 3 +
generator/bindtests.ml | 67 ++++
generator/bindtests.mli | 1 +
generator/docstrings.ml | 6 +-
generator/docstrings.mli | 2 +-
generator/main.ml | 5 +
generator/rust.ml | 558 ++++++++++++++++++++++++++++
generator/rust.mli | 22 ++
m4/guestfs-rust.m4 | 33 ++
run.in...
2015 Aug 31
5
[PATCH v5 0/2] RFE: journal reader in guestfish
There seems to be a minor issue when user wants to run it through pager (more)
and wants cancel it. User will end up with stuck guestfish until journal-view
transfers all journal items.
Output is configurable, it's the same format as virt-log has, since both
uses same code.
Maros Zatko (2):
cat: move get_journal_field to fish/journal.c
fish: add journal-view command (RHBZ#988100)
2019 Nov 24
1
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
On Sun, Nov 24, 2019, 12:42 Richard W.M. Jones <rjones@redhat.com> wrote:
> On Sat, Nov 23, 2019 at 06:11:47PM +0200, Nir Soffer wrote:
> > On Sat, Nov 23, 2019 at 3:10 PM Richard W.M. Jones <rjones@redhat.com>
> wrote:
> > >
> > > On Sat, Nov 23, 2019 at 01:42:15AM +0200, Nir Soffer wrote:
> > > > On Fri, Nov 22, 2019 at 9:55 PM Richard W.M.
2019 Nov 22
3
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
On Fri, Nov 22, 2019 at 9:55 PM Richard W.M. Jones <rjones@redhat.com> wrote:
>
> This tests the Python plugin thoroughly by issuing client commands
> through libnbd and checking we get the expected results.
> ---
> tests/Makefile.am | 13 +--
> tests/test-python-plugin.py | 134 ++++++++++++++++++++++++++++
> tests/test-python.py | 172