Commit 8bc1c044 authored by Bernhard Link's avatar Bernhard Link

support ACTION_C that does not use arguments

parent 7875be21
......@@ -173,14 +173,14 @@ O(fast), O(x_morguedir), O(x_outdir), O(x_basedir), O(x_distdir), O(x_dbdir), O(
act(const struct atomlist *, packagetypes), \
int argc, args(const char *, argv[]))
#define ACTION_C(act, sp, name) static retvalue action_c_ ## act ## _ ## sp ## _ ## name ( \
#define ACTION_C(act, sp, a, name) static retvalue action_c_ ## act ## _ ## sp ## _ ## name ( \
struct distribution *alldistributions, \
sp(const char *, section), \
sp(const char *, priority), \
act(const struct atomlist *, architectures), \
act(const struct atomlist *, components), \
act(const struct atomlist *, packagetypes), \
int argc, const char *argv[])
a(int, argc), a(const char *, argv[]))
#define ACTION_B(act, sp, u, name) static retvalue action_b_ ## act ## _ ## sp ## _ ## name ( \
u(struct distribution *, alldistributions), \
......@@ -1172,7 +1172,7 @@ ACTION_B(y, n, y, buildneeded) {
}
}
ACTION_C(n, n, listdistros) {
ACTION_C(n, n, n, listdistros) {
for (struct distribution *d = alldistributions ; d != NULL ; d = d->next) {
printf("%s\n", d->codename);
}
......@@ -2951,7 +2951,7 @@ static bool mayaliasas(const struct distribution *alldistributions, const char *
return false;
}
ACTION_C(n, n, createsymlinks) {
ACTION_C(n, n, y, createsymlinks) {
retvalue result, r;
struct distribution *d, *d2;
bool warned_slash = false;
......@@ -3293,7 +3293,7 @@ static inline void verifyatomlist(struct upload_conditions *conditions, const st
}
ACTION_C(n, n, checkuploaders) {
ACTION_C(n, n, y, checkuploaders) {
retvalue result, r;
struct distribution *d;
char *sourcename = NULL;
......@@ -3578,7 +3578,7 @@ ACTION_B(n, n, y, listdbidentifiers) {
return result;
}
ACTION_C(n, n, listconfidentifiers) {
ACTION_C(n, n, y, listconfidentifiers) {
struct target *t;
const struct distribution *d;
retvalue result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment