Re: [PATCH V6 1/3] gdb: support for eBPF

Simon Marchi
2020-08-03T16:00:19Z

On 2020-08-03 11:52 a.m., Jose E. Marchesi via Gdb-patches wrote:
>> Just my two cents. The 'struct' keyword can be removed in numerous places
>> throughout the file. Also, NULL can be replaced with nullptr.
> I prefer to write (and maintain) C.
>

Just pretend that you've done

typedef struct {
...
} foo;

instead of

struct foo
{
...
};

and there there is

#define nullptr NULL

:)

FWIW, I agree with Baris on that, but it's not something worth fighting over, especially
for tdep code. As long as you maintain it, I think it's ok to have a bit of artistic
freedom. For common code, we probably want to enforce a more consistent style though.

Simon