octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patches against latest CVS for IRIX 6.5


From: Albert Chin
Subject: Re: Patches against latest CVS for IRIX 6.5
Date: Thu, 20 Feb 2003 13:59:27 -0600
User-agent: Mutt/1.4i

On Thu, Feb 20, 2003 at 01:32:47PM -0600, John W. Eaton wrote:
> On 20-Feb-2003, Albert Chin <address@hidden> wrote:
> 
> | Needed as ino_t and off_t are 'unsigned long long' and 'long long',
> | respectively.
> | 
> | -- 
> | albert chin (address@hidden)
> | 
> | -- snip snip
> | Index: src/ov.h
> | ===================================================================
> | RCS file: /cvs/octave/src/ov.h,v
> | retrieving revision 1.67
> | diff -u -3 -p -r1.67 ov.h
> | --- src/ov.h        2003/02/20 16:46:37     1.67
> | +++ src/ov.h        2003/02/20 19:04:43
> | @@ -165,6 +165,8 @@ public:
> |    octave_value (unsigned int i);
> |    octave_value (long int i);
> |    octave_value (unsigned long int i);
> | +  octave_value (unsigned long long i);
> | +  octave_value (long long i);
> |    octave_value (octave_time t);
> |    octave_value (double d);
> |    octave_value (const Cell& m);
> 
> The declarations look great, but how do you plan to implement these
> functions?

Good question. Can I just duplicate the definition for the others in
ov.cc:
  octave_value::octave_value (long int i)
    : rep (new octave_scalar (i))
  {
    rep->count = 1;
  }

So I'd do:
  octave_value::octave_value (unsigned long long i)
    : rep (new octave_scalar (i))
  {
    rep->count = 1;
  }
  octave_value::octave_value (long long i)
    : rep (new octave_scalar (i))
  {
    rep->count = 1;
  }

-- 
albert chin (address@hidden)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]