Header inclusion cleanup
This does touch a lot of things, and hopefully doesn't break things on other platforms, but allows us to also clean up a bunch of crud that no longer needs to be there. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
4af6c72d79
commit
791928dc48
|
@ -44,8 +44,6 @@
|
|||
#include "backup.h"
|
||||
#include "package.h"
|
||||
#include "db.h"
|
||||
#include "conflict.h"
|
||||
#include "deps.h"
|
||||
#include "remove.h"
|
||||
#include "handle.h"
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
/* libalpm */
|
||||
#include "alpm_list.h"
|
||||
|
|
|
@ -31,10 +31,6 @@
|
|||
#include <time.h>
|
||||
#include <limits.h> /* PATH_MAX */
|
||||
|
||||
/* libarchive */
|
||||
#include <archive.h>
|
||||
#include <archive_entry.h>
|
||||
|
||||
/* libalpm */
|
||||
#include "db.h"
|
||||
#include "alpm_list.h"
|
||||
|
@ -43,9 +39,7 @@
|
|||
#include "alpm.h"
|
||||
#include "handle.h"
|
||||
#include "package.h"
|
||||
#include "group.h"
|
||||
#include "deps.h"
|
||||
#include "dload.h"
|
||||
|
||||
|
||||
#define LAZY_LOAD(info, errret) \
|
||||
|
|
|
@ -20,10 +20,8 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
#include <errno.h>
|
||||
|
||||
/* libarchive */
|
||||
|
|
|
@ -20,8 +20,7 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* libarchive */
|
||||
#include <archive.h>
|
||||
|
|
|
@ -26,11 +26,8 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <regex.h>
|
||||
#include <time.h>
|
||||
|
||||
/* libalpm */
|
||||
#include "db.h"
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
/* libalpm */
|
||||
|
|
|
@ -27,9 +27,7 @@
|
|||
#include <limits.h>
|
||||
#include <sys/types.h>
|
||||
#include <syslog.h>
|
||||
#include <time.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
|
||||
/* libalpm */
|
||||
#include "handle.h"
|
||||
|
|
|
@ -22,10 +22,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
|
||||
/* libalpm */
|
||||
#include "log.h"
|
||||
|
|
|
@ -23,13 +23,9 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <errno.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
/* libalpm */
|
||||
#include "package.h"
|
||||
|
|
|
@ -26,8 +26,6 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
#include <unistd.h>
|
||||
|
@ -36,6 +34,7 @@
|
|||
/* libalpm */
|
||||
#include "remove.h"
|
||||
#include "alpm_list.h"
|
||||
#include "alpm.h"
|
||||
#include "trans.h"
|
||||
#include "util.h"
|
||||
#include "log.h"
|
||||
|
@ -44,7 +43,6 @@
|
|||
#include "db.h"
|
||||
#include "deps.h"
|
||||
#include "handle.h"
|
||||
#include "alpm.h"
|
||||
|
||||
int SYMEXPORT alpm_remove_pkg(pmpkg_t *pkg)
|
||||
{
|
||||
|
|
|
@ -26,11 +26,9 @@
|
|||
#include <sys/types.h> /* off_t */
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
#include <string.h>
|
||||
#include <stdint.h> /* intmax_t */
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#include <limits.h>
|
||||
|
||||
/* libalpm */
|
||||
|
|
|
@ -28,8 +28,6 @@
|
|||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/statvfs.h>
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
#include <fcntl.h>
|
||||
|
@ -41,11 +39,9 @@
|
|||
#include "util.h"
|
||||
#include "log.h"
|
||||
#include "handle.h"
|
||||
#include "add.h"
|
||||
#include "remove.h"
|
||||
#include "sync.h"
|
||||
#include "alpm.h"
|
||||
#include "deps.h"
|
||||
|
||||
/** \addtogroup alpm_trans Transaction Functions
|
||||
* @brief Functions to manipulate libalpm transactions
|
||||
|
|
|
@ -53,7 +53,6 @@
|
|||
/* libalpm */
|
||||
#include "util.h"
|
||||
#include "log.h"
|
||||
#include "package.h"
|
||||
#include "alpm.h"
|
||||
#include "alpm_list.h"
|
||||
#include "handle.h"
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <alpm.h>
|
||||
|
|
|
@ -20,17 +20,13 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <alpm.h>
|
||||
#include <alpm_list.h>
|
||||
|
||||
/* pacman */
|
||||
#include "pacman.h"
|
||||
#include "util.h"
|
||||
#include "conf.h"
|
||||
|
||||
int pacman_deptest(alpm_list_t *targets)
|
||||
{
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include <unistd.h>
|
||||
#include <limits.h>
|
||||
#include <errno.h>
|
||||
#include <wchar.h>
|
||||
|
||||
#include <alpm.h>
|
||||
#include <alpm_list.h>
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
#include <sys/stat.h>
|
||||
#include <sys/utsname.h> /* uname */
|
||||
#include <locale.h> /* setlocale */
|
||||
#include <time.h> /* time_t */
|
||||
#include <errno.h>
|
||||
#include <glob.h>
|
||||
#if defined(PACMAN_DEBUG) && defined(HAVE_MCHECK_H)
|
||||
|
@ -55,7 +54,6 @@
|
|||
#include "util.h"
|
||||
#include "callback.h"
|
||||
#include "conf.h"
|
||||
#include "package.h"
|
||||
|
||||
/* list of targets specified on command line */
|
||||
static alpm_list_t *pm_targets;
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <alpm.h>
|
||||
#include <alpm_list.h>
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#include <stdint.h> /* intmax_t */
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
#include <ctype.h>
|
||||
#include <dirent.h>
|
||||
#include <unistd.h>
|
||||
|
|
Loading…
Reference in New Issue