Issue 18988 - spreadsheet functions with no type - from linux sparc port
Summary: spreadsheet functions with no type - from linux sparc port
Status: CLOSED FIXED
Alias: None
Product: Calc
Classification: Application
Component: code (show other issues)
Version: OOo 1.1 RC3
Hardware: Sun Linux, all
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ooo
QA Contact: issues@sc
URL:
Keywords:
Depends on: 19098 19099 19102 19103 19104
Blocks:
  Show dependency tree
 
Reported: 2003-09-03 01:16 UTC by sparcmoz
Modified: 2013-08-07 15:13 UTC (History)
1 user (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
warnings about no types (1.29 KB, text/plain)
2003-09-03 01:17 UTC, sparcmoz
no flags Details
my latest diff against rc4 for module sc on linux sparc (7.19 KB, text/plain)
2003-09-03 01:19 UTC, sparcmoz
no flags Details
return NULL warnings (3.69 KB, patch)
2003-09-07 06:41 UTC, sparcmoz
no flags Details | Diff
patch for things with no types (and tokstack function had wrong type) (4.37 KB, patch)
2003-09-07 06:43 UTC, sparcmoz
no flags Details | Diff
to return zero instead of NULL (5.61 KB, patch)
2003-09-07 06:44 UTC, sparcmoz
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description sparcmoz 2003-09-03 01:16:52 UTC
This issue is to manage those spreadsheet functions with no types - a separate 
issue shall be made for each case and this issue is to depend on all those.

Attached are: 
(a) a list of the warning messages from gcc-3.3.2 (debian/unstable) on linux 
sparc
(b) my diff against rc4 for module sc

I did guess the types and compiled sc, everything in Calc seems much faster now 
especially open and close spreadsheets, i dont know if this should be expected, 
or perhaps something else has changed in rc4 the last couple of days?
Comment 1 sparcmoz 2003-09-03 01:17:46 UTC
Created attachment 8962 [details]
warnings about no types
Comment 2 sparcmoz 2003-09-03 01:19:15 UTC
Created attachment 8963 [details]
my latest diff against rc4 for module sc on linux sparc
Comment 3 frank 2003-09-03 08:50:14 UTC
Hi Eike,

I think this is something for you and/or Niklas.

Frank
Comment 4 ooo 2003-09-03 12:28:40 UTC
Set Platform/OS to Sun/Linux because of NOOPTFILES for Linux on Sparc,
even if some of the patches are more All/All because of the type
information thingy.

Waiting for 1.1 branch to be created for porting.
Comment 5 sparcmoz 2003-09-04 12:55:11 UTC
making this depend on nWinkDiv issue 19054
Comment 6 ooo 2003-09-04 18:11:21 UTC
Why making this depend on issue 19054? Any code including that
svdtrans.hxx should show the warning.
Comment 7 sparcmoz 2003-09-05 08:11:16 UTC
Removing the depend on 19054.
 
I did dmake clean and build OK with these patches 
(except nWinkDiv still to do but that is issue 19054) 
Comment 8 ooo 2003-09-05 13:18:12 UTC
See also issue 19098 (even if closed!), patch not copied because
pasting from the description results in broken lines.
Comment 9 ooo 2003-09-05 13:19:50 UTC
See also issue 19099 (even if closed!), patch not copied because
pasting from the description results in broken lines.
Comment 10 ooo 2003-09-05 13:22:10 UTC
See also issue 19102 (even if closed!), patch not copied because
pasting from the description results in broken lines.
Comment 11 ooo 2003-09-05 13:22:58 UTC
See also issue 19103 (even if closed!), patch not copied because
pasting from the description results in broken lines.
Comment 12 ooo 2003-09-05 13:23:46 UTC
See also issue 19104 (even if closed!), patch not copied because
pasting from the description results in broken lines.
Comment 13 sparcmoz 2003-09-05 13:33:18 UTC
Sorry about that - I am new to this - is it useful for me to try and
get rid of all these warnings or am i just being a pest?

all those other patches are already in the attachment here at 18988. 

Where is IMPL_LINK defined? gcc-3.3 complains about these functions
returning NULL, 
IMPL_LINK (param list)
{
     return NULL; // should be return 0;
}

Comment 14 ooo 2003-09-05 13:52:05 UTC
Hi Sparcmoz (btw: what's your real name?)

Please keep on reporting thos missing type stuff. As I already said,
I'd like it more if compilers would bail out with an error on these,
instead of saying nothing or just a warning in case of the lates gcc.

IMPL_LINK is defined in tools/inc/link.hxx to return a long, so the
compiler is right about 0 instead of NULL.

So _all_ patches of the issues I just closed are contained in this
sc_types.diff here? I didn't cross-check.
Comment 15 sparcmoz 2003-09-05 13:59:31 UTC
Q: So _all_ patches of the issues I just closed are contained in this
sc_types.diff here? I didn't cross-check.

A:  yes i just copied them all out :)

But be aware there some NOOPT things in there too, it was just my
whole diff against rc4. 


Comment 16 sparcmoz 2003-09-05 14:01:05 UTC
oh, my name is Jim Watson - i just cant figure how to make my name
display - not trying to be mysterious at all...
Comment 17 sparcmoz 2003-09-05 14:09:11 UTC
now i understand what to do, i will make some more tidy patches with
just the missing types things over the weekend. 
Comment 18 sparcmoz 2003-09-07 06:41:33 UTC
Created attachment 9061 [details]
return NULL warnings
Comment 19 sparcmoz 2003-09-07 06:43:18 UTC
Created attachment 9062 [details]
patch for things with no types (and tokstack function had wrong type)
Comment 20 sparcmoz 2003-09-07 06:44:45 UTC
Created attachment 9063 [details]
to return zero instead of NULL
Comment 21 ooo 2003-10-22 11:42:15 UTC
Patches committed to branch cws_srx645_ooo111fix1.
Note that I changed the sc/source/filter/xml/xmlsubti.hxx patch from
const sal_Int32 nDefault...
to
const ScMysalIntVec::size_type nDefault...
Comment 22 sparcmoz 2003-10-23 23:24:10 UTC
While reviewing these changes I have noticed in
sc/source/ui/view/makefile.mk I have added viewfun4.obj to the list of
NOOPT files for other platforms (not linux sparc). This file should
have been only for linux sparc, sorry.
Comment 23 ooo 2003-10-24 13:04:21 UTC
Removed. I should have noticed.. Thanks for reviewing.
Comment 24 sparcmoz 2003-10-28 08:41:31 UTC
One more I overlooked :( the linux sparc patch to /sc/util/makefile.mk
is no longer required, it was fixed in binutils debian bug 205548 see
OOo issue 18250.

10/22/2003 06:36	er 	sc/ sc/ util/ makefile.mk 	1.18.42.1.12.1 
cws_srx645_ooo111fix1  	6/4 
Comment 25 ooo 2003-10-28 14:17:34 UTC
Did undo that single change.
Comment 26 ooo 2004-01-23 15:55:20 UTC
Integrated in m3s1.