[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: test-argmatch: fix a link failure
From: |
Jim Meyering |
Subject: |
Re: test-argmatch: fix a link failure |
Date: |
Sun, 11 Nov 2007 14:19:19 +0100 |
Bruno Haible <address@hidden> wrote:
>> Avoid link failure for the argmatch test.
>> * tests/test-argmatch.c (usage): Define function to avoid a link
>> failure: argmatch_die requires a usage function.
>
> This change may be justified inside coreutils. But in gnulib, the argmatch
> module does not make any reference to a 'usage' function. The link error
> comes from coreutils defining
> #define ARGMATCH_DIE usage (1)
> in its config.h. Another package could be doing
> #define ARGMATCH_DIE foobar (17)
> and by the same argumentation then we would need to define a function
> 'foobar' in the test. So adding a 'usage' function in the test does not
> smell like the right fix.
>
> Furthermore the signature of the usage() function that you added is not right.
>
> I propose this patch instead:
That looks perfect.
Thanks for fixing the underlying problem.