Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Wu Zhou <woodzltc@cn.ibm.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] New testcase to evaluate Fortran substring expression
Date: Mon, 01 Aug 2005 04:44:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.63.0507291616040.17779@localhost.localdomain> (raw)
In-Reply-To: <20050801021253.GH30901@nevyn.them.org>

On Sun, 31 Jul 2005, Daniel Jacobowitz wrote:

> This is looks very good!  Two comments for you:
> 
>   - The magic (and undocumented) constants are not a good idea.  Rather
>     than being clever with abs(), how about using an enum saying what
>     sort of range it is?

What about adding the following enumeration definition to f-lang.h and 
keeping the use of abs to get the number of arguments following the F90 
subrange expression:

/* This enumeration type is to identify the sort of F90 subrange expression.
   If only the low bound is by default, set it to -1; if both bounds are by
   default, set it to 0; if only the high bound is by default, set it to 1;
   if no bound is by default, set it to 2.  The absolute value of the value
   is also the number of arguments following this expression */

enum f90_range_type
  {
    LOW_BOUND_DEFAULT=-1,
    BOTH_BOUND_DEFAULT,
    HIGH_BOUND_DEFAULT,
    NONE_BOUND_DEFAULT
  };

If use other values, it might looks ugly to me to set the nargs based on 
the type value respectively.  What is your point on this?  

> 
>   - You have a bunch of lines which are too long in eval.c; could you
>     fix that, please?

Sorry, I am not very sure what is the maximum limit of a line in the sources
and comments.  Maybe it is 72? or 80, or any other number?  Maybe I can 
choose to use the smaller one?  
 
Regards
- Wu Zhou


  reply	other threads:[~2005-08-01  4:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-22  4:02 Wu Zhou
2005-07-03 18:57 ` Daniel Jacobowitz
2005-07-09  3:12   ` Wu Zhou
2005-07-14 23:46     ` Daniel Jacobowitz
2005-07-15  5:25       ` Wu Zhou
2005-07-15 11:49         ` Wu Zhou
2005-08-01  2:12           ` Daniel Jacobowitz
2005-08-01  4:44             ` Wu Zhou [this message]
2005-08-01  6:23               ` Mark Kettenis
2005-08-02  3:10               ` Daniel Jacobowitz
2005-08-02 10:16                 ` Wu Zhou

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=Pine.LNX.4.63.0507291616040.17779@localhost.localdomain \
    --to=woodzltc@cn.ibm.com \
    --cc=drow@false.org \
    --cc=gdb-patches@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