This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: const qualifier on function return types.
- To: Brian Gough <bjg at network-theory dot co dot uk>
- Subject: Re: const qualifier on function return types.
- From: Lowell Johnson <ldjohn at usgs dot gov>
- Date: Fri, 29 Jun 2001 08:44:07 -0500
- Cc: gsl-discuss at sources dot redhat dot com
- References: <01061510380302.06977@edclxw5> <15163.39411.452885.379721@debian>
On Thu, 28 Jun 2001, Brian Gough wrote:
[snip]
> If you have a moment would you mind trying out the program below with
> the IRIX compiler. It's my proposal for a scheme that avoids the
> const problem. It works with GCC but I'd like to hear if it works for
> you on IRIX before I go and modify all the view-related functions and
> references to them. Thanks.
[snip]
Here are the results:
(Copied your test case to a file named gsl_test.c.)
~/tmp> make gsl_test
cc -O -s -n32 -mips3 -Wl,-woff,85 -fullwarn -o gsl_test gsl_test.c
~/tmp> ./gsl_test
v1 = 123.4 .. 9.123
v2 = 567.8 .. 9.123
v2 = 567.8 .. 9.123
v2 = 568.8 .. 10.123
v2 = 568.8 .. 10.123
Let me know if you need additional info.
-- Lowell