[pacman-dev] [PATCH] make alpm_strerror binding friendly
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
On 9/8/07, Stefano Esposito
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
--- 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
Cleaned up and placed on my working branch. If there are any objections to this approach, let me know soon. -Dan
participants (2)
-
Dan McGee
-
Stefano Esposito