--* From postmaster%watson.vnet.ibm.com@yktvmv.watson.ibm.com  Fri Jul  2 18:38:28 1993
--* Received: from yktvmv2.watson.ibm.com by radical.watson.ibm.com (AIX 3.2/UCB 5.64/900524)
--*           id AA12607; Fri, 2 Jul 1993 18:38:28 -0400
--* X-External-Networks: yes
--* Received: from watson.vnet.ibm.com by yktvmv.watson.ibm.com (IBM VM SMTP V2R3)
--*    with BSMTP id 3639; Fri, 02 Jul 93 18:39:25 EDT
--* Received: from YKTVMV by watson.vnet.ibm.com with "VAGENT.V1.0"
--*           id <A.EDWARDS.NOTE.YKTVMV.7835.Jul.02.18:39:23.-0400>
--*           for asbugs@watson; Fri, 02 Jul 93 18:39:24 -0400
--* Received: from ibm4.scri.fsu.edu by watson.ibm.com (IBM VM SMTP V2R3) with TCP;
--*    Fri, 02 Jul 93 18:39:22 EDT
--* Received: by ibm4.scri.fsu.edu id AA30580
--*   (5.65c/IDA-1.4.4 for asbugs@watson.ibm.com); Fri, 2 Jul 1993 18:39:18 -0400
--* Date: Fri, 2 Jul 1993 18:39:18 -0400
--* From: Robert Edwards <edwards@ibm4.scri.fsu.edu>
--* Message-Id: <199307022239.AA30580@ibm4.scri.fsu.edu>
--* To: asbugs@watson.ibm.com
--* Subject: C declaration incompatibility on SunOS/gcc in store.{c,h} [bug2][Asharp V28.Ia on  SunOS sun13.scr 4.1.3 3 sun4c/gcc version 2.3.2]

--@ Fixed  by: JMS Thu Oct 14 15:32:12 1993
--@ Tested by: store.c
--@ Summary:   same types for stoAlloc, stoSize, stoResize in store.[ch]

----------- SunOS sun13.scr 4.1.3 3 sun4c ---------

In /usr/include/sys/stdtypes.h

typedef int             size_t;         /* ??? */



------------ Asharp  V28.Ia -------------

In cport.h

typedef unsigned long   ULong;
typedef size_t          Length;


In store.h:

extern MostAlignedType* stoAlloc        (unsigned code, ULong size);
extern ULong            stoSize         (Pointer p);
extern MostAlignedType* stoResize       (Pointer p, ULong size);


In store.c

#define USE_STO_ONCE

In store.c line line 2750   ( ! USE_STO_BTREE )

MostAlignedType *
stoAlloc(unsigned code, Length size)
{
...
}

Length
stoSize(Pointer p)
{
        return stoPtrToHdr(p)->size - sizeofHdr;
}

MostAlignedType *
stoResize(Pointer p0, Length size)
{
...
}



Compiling:

gmake sungcc all

docc -g -DTEST_ALL -I../src -c ../src/store.c
../src/store.c:2754: conflicting types for `stoAlloc'
../src/store.h:23: previous declaration of `stoAlloc'
../src/store.c:2783: conflicting types for `stoSize'
../src/store.h:28: previous declaration of `stoSize'
../src/store.c:2797: conflicting types for `stoResize'
../src/store.h:29: previous declaration of `stoResize'

 
