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

Stefano Esposito stefano.esposito87 at gmail.com
Sat Sep 8 12:41:45 EDT 2007


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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make_alpm_strerror_more_bindings_friendly.patch
Type: application/octet-stream
Size: 12243 bytes
Desc: not available
URL: <http://archlinux.org/pipermail/pacman-dev/attachments/20070908/10a95ed6/attachment.obj>


More information about the pacman-dev mailing list