Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@gnat.com>
To: Andrew Cagney <cagney@gnu.org>
Cc: gdb@sources.redhat.com
Subject: Re: better name for var_integer et.al.
Date: Wed, 15 Sep 2004 18:19:00 -0000	[thread overview]
Message-ID: <20040915181900.GW5843@gnat.com> (raw)
In-Reply-To: <414883EC.9000500@gnu.org>

>  /* Unsigned Integer.  *VAR is an unsigned int.  The user can type 0
>     to mean "unlimited", which is stored in *VAR as UINT_MAX.  */
>  var_uinteger,

Ada calls such numbers "Positive". var_positive might be a good name.

>  /* Like var_uinteger but signed.  *VAR is an int.  The user can type 0
>     to mean "unlimited", which is stored in *VAR as INT_MAX.  */
>  var_integer,

I can't see any use for this semantics, but maybe it's due to my limited
experience. I looked at the current code, and most if not all of them
where just misuses of this kind. Some of them are really booleans (so I
suspect var_zinteger would be better), or postive numbers (so
var_positive would be better).

I not useful, I would consider just removing it.

>  /* ZeroableInteger.  *VAR is an int.  Like Unsigned Integer except
>     that zero really means zero.  */
>  var_zinteger,

var_integer? (assuming we get rid of the non-zero signed integer)


-- 
Joel


  reply	other threads:[~2004-09-15 18:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-15 18:05 Andrew Cagney
2004-09-15 18:19 ` Joel Brobecker [this message]
2004-09-15 20:35   ` Andrew Cagney
2004-09-16  0:29     ` Joel Brobecker

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=20040915181900.GW5843@gnat.com \
    --to=brobecker@gnat.com \
    --cc=cagney@gnu.org \
    --cc=gdb@sources.redhat.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