Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@gnu.org>
To: Jason Molenda <jmolenda@apple.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFC patch mi-cmds.c table format (pedantic)
Date: Fri, 19 Mar 2004 00:09:00 -0000	[thread overview]
Message-ID: <4059FEA9.4030401@gnu.org> (raw)
In-Reply-To: <6994FFF8-786D-11D8-9229-000393D457E2@apple.com>

First, have a look at:
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=496

> Hi Andrew, in this change:
>     http://sources.redhat.com/ml/gdb-patches/2003-08/msg00052.html
> 
> the mi-cmds table changed from this format:
> 
>   {"break-info", "info break %s", 0},
>   {"break-insert", 0, 0, mi_cmd_break_insert},
> 
> to this format:
> 
>   { "break-info", { "info break", 1 }, NULL, NULL },
>   { "break-insert", { NULL, 0 }, 0, mi_cmd_break_insert},
> 
> As you can see here, the use of 0 vs NULL is inconsistent,

That's cos it was converted using an emacs macro.

 > and the spacing on the close parens on the last arg is inconsistent.
 > The implied initialization of 0 is also used in many places.
 > All of this is valid, but it could be a bit more consistent.
 > So instead of
> 
> -  { "break-insert", { NULL, 0 }, 0, mi_cmd_break_insert},
> +  { "break-insert", { NULL, 0 }, NULL, mi_cmd_break_insert},
> 
> -  { "exec-step", { NULL, 0 }, mi_cmd_exec_step},
> +  { "exec-step", { NULL, 0 }, mi_cmd_exec_step, NULL},
> 
> -  { NULL, }
> +  { NULL, { NULL, 0 }, NULL, NULL}

ok, but perhaps don't bother with the trailing initializers.

Should I ask what motived this?

Andrew



  parent reply	other threads:[~2004-03-19  0:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-19  0:09 Jason Molenda
2004-03-17 23:47 ` Jason Molenda
2004-03-19  0:09 ` Eli Zaretskii
2004-03-18  5:53   ` Eli Zaretskii
2004-03-19  0:09   ` Jason Molenda
2004-03-18 19:26     ` Jason Molenda
2004-03-19 14:36     ` Eli Zaretskii
2004-03-19  0:09 ` Andrew Cagney [this message]
2004-03-19  0:34   ` Jason Molenda
2004-03-19 15:12     ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4059FEA9.4030401@gnu.org \
    --to=cagney@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jmolenda@apple.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox