diff options
author | Dan McGee <dan@archlinux.org> | 2007-04-25 09:15:32 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-04-25 17:07:48 +0200 |
commit | 7760f5fe60253bd9aa674c6a6688d9d07668db2e (patch) | |
tree | b7202c8ddbaf282b24f00a7b26b3395f9b57f6ed /src/pacman/util.h | |
parent | 828f1f53eff4e47eb0370a0d9195281974859ce5 (diff) | |
download | pacman-7760f5fe60253bd9aa674c6a6688d9d07668db2e.tar.gz pacman-7760f5fe60253bd9aa674c6a6688d9d07668db2e.tar.xz |
Remove more unnecessary stuff
* Remove libintl.h from most files, as we only need to include it once in
util.h where _() is defined.
* Remove other unnecessary header inclusions.
* Remove a macro that was only used once and replaced it with actual code.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/util.h')
-rw-r--r-- | src/pacman/util.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pacman/util.h b/src/pacman/util.h index 6eba38fe..f12ec6f1 100644 --- a/src/pacman/util.h +++ b/src/pacman/util.h @@ -23,7 +23,7 @@ #include <stdlib.h> #include <string.h> -#include <libintl.h> +#include <libintl.h> /* here so it doesn't need to be included elsewhere */ #include <alpm_list.h> @@ -49,7 +49,9 @@ /* update speed for the fill_progress based functions */ #define UPDATE_SPEED_SEC 0.2f +/* define _() as shortcut for gettext() */ #define _(str) gettext(str) + int getcols(); int makepath(char *path); int rmrf(char *path); |