Re: [hatari-devel] Remove C++-style comments |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-devel] Remove C++-style comments
- From: Thomas Huth <th.huth@xxxxxxxxx>
- Date: Sun, 3 Nov 2024 17:41:40 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1730655703; bh=9QordrgAM1h3RIKfR8pHBhPFTP/M7AOgRfRc9176IZ0=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=nEs4tt/xSAhNJubtZLtwCMPVMQWkgjO/Vcyvi0zu8Vk+mZFlU01jj9g4WKu0SYx9R r3ETaFgd87RSOAwy4r7m6VoVfMki8XAsJhw0ZYj3L6TsUxC11EmaVj3qHGAawkBMfk cacIhNBA5ufdL1SEjsoOFirRFQs6WkE/BaNle4qNGocMEagCWoTFsuGzwyPko+X6wH mijkrYkvMy1bFTOGQL1VO6YV5ujrp0KwfXOSSIPnB5zSGv5FW3mYI0t7oROStzmI2O Q7NzfnTGkg4FP6bFS+Mljrx+m9HsT7D1nmKN33168wUPIgWeIOgeoPQ3tmtD1Ea3lV i/ZdRF5rBT1rw==
Am Sun, 3 Nov 2024 18:03:15 +0100
schrieb Vincent Rivière <vincent.riviere@xxxxxxxxxxx>:
> On 03/11/2024 at 13:17, Thomas Huth wrote:
> > Honestly, I'm not sure whether we should really enforce the comment markers
> > in Hatari like this. Using "/* ... */" was important 20 - 30 years ago when
> > not all C compileres were able to deal with "//" comments yet, but these
> > times are clearly over.
>
> Well, it's just a matter of standard.
>
> - If you decide that Hatari is written in C89, then you must forbid //
> comments, as they aren't part of the standard.
>
> - But if you decide that Hatari is written in C99, then you should allow //
> comments, as they are part of the standard. Except if you want to ban //
> comments for some other reason. Every project has his own rules.
Hatari uses -std=gnu99. And we don't recommend anything in the coding
styles, so both ways of comments should be fine. Thus let's really keep the
comments the way that they currently are.
Thomas