[Debburn-devel] Re: Bug#390353: wodim: Writng to CD fails with "permission denied" on hard disk's sg device

Eduard Bloch edi at gmx.de
Tue Oct 3 18:47:15 UTC 2006


#include <hallo.h>
* Albert Cahalan [Tue, Oct 03 2006, 01:19:00PM]:
> On 10/3/06, Peter Samuelson <peter at p12n.org> wrote:
> >[Albert Cahalan]
> >> >> +       // try to reopen locked/busy devices up to five times
> >> >
> >> >C++-style-comment.
> >>
> >> No, a BCPL-style comment. C supports them since 1999,
> >> but many compilers (including Visual C and gcc) supported
> >> them long before the standard was passed.
> >
> >Well, Eduard has been compiling on AIX with the vendor compiler, which
> >apparently doesn't support //.
> 
> I guess AIX isn't being maintained. It is supported by gcc though.

Why should everybody install GCC if we can prevent that dependency
easily? Because you are lazy to care about ANSI-C compatibility? I am
not.

> If you want to be weird, use the vendor compiler with the GNU
> preprocessor.

Again, a redundant dependency. And overkill.

> >I like // comments too, but AIX 5 is not exactly dead.  (It _is_ POSIX,
> >so it really should not be painful to support in general.)  And your
> >suggestion of doing manual preprocessing via sed strikes me as a cure
> >worse than the disease.
> 
> So put it in the Makefile. This is easy to deal with:

"Easy" is relative. 

> %.j : %.c
>        sed 's^//.*^^' < $< > $@

I suggest you add a macro to your editor to just convert the BCPL-style
comments to ANSI-C compliant ones. IMO more sensible than forcing every
user to use that workaround.

Eduard.
-- 
<Angel`Eye> installations anleitung für intelx86 richtig ?
<Salz> Angel`Eye: Kommt auf deinen Rechner an. Wenn du die Antwort nicht weißt,
	ist sie ja.



More information about the Debburn-devel mailing list