And from dpkg-db.h dpkg-priv.h.
+2008-06-28 Guillem Jover <guillem@debian.org>
+
+ * lib/dpkg-db.h (skip_slash_dotslash): Move declaration ...
+ * lib/dpkg-priv.h: ... here.
+ * lib/parsehelp.c (skip_slash_dotslash): Move definition ...
+ * lib/path.c: ... here.
+ * lib/fields.c: Include <dpkg-priv.h>.
+ * src/filesdb.c: Likewise.
+
2008-06-28 Guillem Jover <guillem@debian.org>
* lib/dpkg.h (onerr_abort): Move declaration to the ehandle.c section.
extern const struct namevalue eflaginfos[];
extern const struct namevalue wantinfos[];
-const char *skip_slash_dotslash(const char *p);
-
int informativeversion(const struct versionrevision *version);
enum versiondisplayepochwhen { vdew_never, vdew_nonambig, vdew_always };
/* Path handling. */
size_t rtrim_slash_slashdot(char *path);
+const char *skip_slash_dotslash(const char *path);
/* Subprocess handling. */
#include <dpkg.h>
#include <dpkg-db.h>
+#include <dpkg-priv.h>
#include "parsedump.h"
static int convert_string
}
}
-const char *skip_slash_dotslash(const char *p) {
- while (p[0] == '/' || (p[0] == '.' && p[1] == '/')) p++;
- return p;
-}
* libdpkg - Debian packaging suite library routines
* path.c - path handling functions
*
+ * Copyright (C) 1995 Ian Jackson <ian@chiark.greenend.org.uk>
* Copyright (C) 2008 Guillem Jover <guillem@debian.org>
*
* This is free software; you can redistribute it and/or modify
return end - path + 1;
}
+const char *
+skip_slash_dotslash(const char *path)
+{
+ while (path[0] == '/' || (path[0] == '.' && path[1] == '/'))
+ path++;
+
+ return path;
+}
+
#include <dpkg.h>
#include <dpkg-db.h>
+#include <dpkg-priv.h>
#include "filesdb.h"
#include "main.h"