From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lowell Johnson To: Brian Gough Cc: gsl-discuss@sources.redhat.com Subject: Re: const qualifier on function return types. Date: Wed, 19 Dec 2001 13:20:00 -0000 Message-id: <01062908483500.11374@edclxw5> References: <01061510380302.06977@edclxw5> <15163.39411.452885.379721@debian> X-SW-Source: 2001/msg00259.html 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