[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-patch] -D hell
From: |
Andreas Grünbacher |
Subject: |
Re: [bug-patch] -D hell |
Date: |
Mon, 21 Mar 2016 15:31:16 +0100 |
2016-03-21 11:57 GMT+01:00 Mattias Andrée <address@hidden>:
> Hi again!
>
> patch(1p) specifies for '-D define' that
>
> If the patched file is processed with the C preprocessor,
> where the macro 'define' is defined, the output shall contain
> the changes from the patch file; otherwise, the output shall
> not contain the patches specified in the patch file.
>
> I interpret this as implying that a patched C must be at least
> as syntactically correct after patching as before patching.
That's only wishful thinking. There is no such guarantee, and there
never will be.
(The description in the patch(1p) man page sounds weird to me.)
Andreas