[pacman-dev] [PATCH] make alpm_strerror binding friendly

Dan McGee dpmcgee at gmail.com
Mon Sep 10 10:55:27 EDT 2007


On 9/8/07, Stefano Esposito <stefano.esposito87 at gmail.com> wrote:
> Hi all,
>
> i'm currently working on python bindings for alpm written in pyrex. While working i found that declaring alpm_strerror as
>         char * alpm_strerror (void)
> instead of
>         char * alpm_strerror (int err)
>
> and then using pm_errno in the implementation instead of err, could make it more bindings-friendly.
>
> Compiles fine. I've also installed it and runned a full system upgrade with any problem. Patch attached.
>
> Signed-off-by: Stefano Esposito <stefano.esposito87 at gmail.com>
> ---
>  lib/libalpm/alpm.h  |    2 +-
>  lib/libalpm/error.c |    4 ++--
>  lib/libalpm/error.h |    2 +-
>  src/pacman/add.c    |   10 +++++-----
>  src/pacman/pacman.c |   20 ++++++++++----------
>  src/pacman/remove.c |   10 +++++-----
>  src/pacman/sync.c   |   20 ++++++++++----------
>  7 files changed, 34 insertions(+), 34 deletions(-)
>
> --
> Stefano Esposito <stefano.esposito87 at gmail.com>

Cleaned up and placed on my working branch. If there are any
objections to this approach, let me know soon.

-Dan




More information about the pacman-dev mailing list