ocaml-augeas.git
6 years agoEnhance the Augeas.Error exception
Pino Toscano [Wed, 13 Sep 2017 16:25:01 +0000 (18:25 +0200)]
Enhance the Augeas.Error exception

Augeas.Error is very limited, and only provides an error string provided
by ocaml-augeas itself: this makes it hard to actually understand what
is an Augeas.Error that was raised, and eventually perform different
actions based on that.

To overcome that, Augeas.Error is changed to be a tuple containing the
error code (as reported by Augeas), still the ocaml-augeas error string,
and error message and details of the Augeas error -- all the
informations that Augeas provides.
This breaks API compatibility with current users, but unfortunately
there is no way around that.

6 years agoRaise Out_of_memory when Augeas fails with AUG_ENOMEM
Pino Toscano [Wed, 13 Sep 2017 16:25:00 +0000 (18:25 +0200)]
Raise Out_of_memory when Augeas fails with AUG_ENOMEM

This is more in style with what OCaml reports in this kind of
situations.

6 years agoPass the augeas_t to raise_error
Pino Toscano [Wed, 13 Sep 2017 16:24:59 +0000 (18:24 +0200)]
Pass the augeas_t to raise_error

This will help improving the error reporting done by that function.

6 years agoCreate a separate raise_init_error function
Pino Toscano [Wed, 13 Sep 2017 16:24:58 +0000 (18:24 +0200)]
Create a separate raise_init_error function

Used only on init, when there is no augeas pointer available.

6 years agoImplement Augeas.load API.
Richard W.M. Jones [Tue, 6 Jun 2017 14:14:46 +0000 (15:14 +0100)]
Implement Augeas.load API.

6 years agoImplement AugNoStdinc, AugSaveNoop and AugNoLoad flags.
Richard W.M. Jones [Tue, 6 Jun 2017 14:14:19 +0000 (15:14 +0100)]
Implement AugNoStdinc, AugSaveNoop and AugNoLoad flags.

6 years agoPath parameter did not work in Augeas.rm and Augeas.count_matches bindings.
Richard W.M. Jones [Tue, 6 Jun 2017 14:13:37 +0000 (15:13 +0100)]
Path parameter did not work in Augeas.rm and Augeas.count_matches bindings.

6 years agoFix a few GCC warnings.
Richard W.M. Jones [Tue, 6 Jun 2017 14:13:09 +0000 (15:13 +0100)]
Fix a few GCC warnings.

6 years agoRegenerate dependencies with newer OCaml.
Richard W.M. Jones [Tue, 6 Jun 2017 13:47:19 +0000 (14:47 +0100)]
Regenerate dependencies with newer OCaml.

6 years agoRename augeas_c.c -> augeas-c.c
Richard W.M. Jones [Tue, 6 Jun 2017 13:46:27 +0000 (14:46 +0100)]
Rename augeas_c.c -> augeas-c.c

Just a file rename, no other change.

8 years agoAdd autoconf ocaml macros.
Richard W.M. Jones [Tue, 21 Jul 2015 10:50:14 +0000 (11:50 +0100)]
Add autoconf ocaml macros.

11 years agoVersion 0.5.
Richard W.M. Jones [Mon, 11 Jun 2012 12:59:59 +0000 (13:59 +0100)]
Version 0.5.

11 years agoFix 'make dist' rule.
Richard W.M. Jones [Mon, 11 Jun 2012 13:02:33 +0000 (14:02 +0100)]
Fix 'make dist' rule.

11 years agoUpdate dependencies.
Richard W.M. Jones [Mon, 11 Jun 2012 12:59:52 +0000 (13:59 +0100)]
Update dependencies.

11 years agoAdd 'make check' rule.
Richard W.M. Jones [Mon, 11 Jun 2012 12:59:37 +0000 (13:59 +0100)]
Add 'make check' rule.

11 years agoAugeas.matches: Fix silly typo in binding.
Richard W.M. Jones [Mon, 11 Jun 2012 12:59:15 +0000 (13:59 +0100)]
Augeas.matches: Fix silly typo in binding.

11 years agoUse pkg-config to detect Augeas and libxml2.
Richard W.M. Jones [Mon, 11 Jun 2012 12:52:13 +0000 (13:52 +0100)]
Use pkg-config to detect Augeas and libxml2.

11 years agoRemove generated files from the repository.
Richard W.M. Jones [Mon, 11 Jun 2012 12:51:42 +0000 (13:51 +0100)]
Remove generated files from the repository.

14 years agoAdd .gitignore file.
Richard Jones [Mon, 16 Nov 2009 12:41:34 +0000 (12:41 +0000)]
Add .gitignore file.

14 years agoInstall *.so files.
Richard W.M. Jones [Mon, 16 Nov 2009 12:39:21 +0000 (12:39 +0000)]
Install *.so files.

15 years agoUpdated MANIFEST for release 0.4.
Richard W.M. Jones [Wed, 7 May 2008 07:48:59 +0000 (08:48 +0100)]
Updated MANIFEST for release 0.4.

15 years agoMake 'check-manifest' work with HG.
Richard W.M. Jones [Wed, 7 May 2008 07:48:53 +0000 (08:48 +0100)]
Make 'check-manifest' work with HG.

15 years agoAdded this file.
Richard W.M. Jones [Wed, 7 May 2008 07:48:36 +0000 (08:48 +0100)]
Added this file.

15 years agoAdded Augeas.count_matches
Richard W.M. Jones [Wed, 7 May 2008 07:46:51 +0000 (08:46 +0100)]
Added Augeas.count_matches

15 years agoCompile with -Wall -Werror
Richard W.M. Jones [Wed, 7 May 2008 07:46:31 +0000 (08:46 +0100)]
Compile with -Wall -Werror

15 years agoVersion number to 0.4
Richard W.M. Jones [Wed, 7 May 2008 07:43:01 +0000 (08:43 +0100)]
Version number to 0.4

15 years agoIgnore a few more files.
Richard W.M. Jones [Wed, 7 May 2008 07:42:52 +0000 (08:42 +0100)]
Ignore a few more files.

15 years agoFix test program to work with /etc/hosts and display all files recursively.
Richard W.M. Jones [Wed, 7 May 2008 07:42:41 +0000 (08:42 +0100)]
Fix test program to work with /etc/hosts and display all files recursively.

15 years agoImported version 0.3 from old CVS repository.
Richard W.M. Jones [Wed, 7 May 2008 07:21:12 +0000 (08:21 +0100)]
Imported version 0.3 from old CVS repository.