🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.interviews
Article #1680

Re: Problem with GCC-2.4.5, and libg++-2.4 compiling IV-3.1...

#1680
From: Anthony A. Datri
Date: Mon, 12 Jul 1993 16:27
27 lines
1579 bytes
>The bug is apparently in the Sun header files which should set size_t
>to unsigned long, not int. libg++-2.4 fixes this problem.

Like I just said, IT DOESN'T.  In fact, String.cc contains

	inline static int slen(const char* t) // inline  strlen
	{
	  if (t == 0)
	    return 0;
	  else
	  {
	    const char* a = t;
	    while (*a++ != 0);
	    return a - 1 - t;
	  }
	}

Now, it's difficult to know if this is ever actually used as strlen, but
it sure looks to me like it says "int".

Wouldn't it be silly of Sun to have their headers say unsigned long when their
library function still returns an int?

-- 

======================================================================8--<
Technical Details
Message-ID: <CA28DM.CKy@scr.siemens.com>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!darwin.sura.net!haven.umd.edu!uunet!das.wang.com!siemens!aad
References: <SMILEY.93Jul9175300@maharet.im.hou.compaq.com> <CA146p.21v@scr.siemens.com> <1993Jul12.073948.7933@ericsson.se>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10ba33,2a85f141102c1320
X-Google-Attributes: gid10ba33,public
X-Google-Thread: 101a2b,2a85f141102c1320
X-Google-Attributes: gid101a2b,public
X-Google-ArrivalTime: 1993-07-12 10:23:26 PST
Newsgroups: comp.windows.interviews,gnu.g++.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!darwin.sura.net!haven.umd.edu!uunet!das.wang.com!siemens!aad
From: aad@scr.siemens.com (Anthony A. Datri)
Subject: Re: Problem with GCC-2.4.5, and libg++-2.4 compiling IV-3.1...
Message-ID: <CA28DM.CKy@scr.siemens.com>
Sender: news@scr.siemens.com (NeTnEwS)
Nntp-Posting-Host: lovecraft.siemens.com
Organization: Siemens Weyland-Yutani
References: <SMILEY.93Jul9175300@maharet.im.hou.compaq.com> <CA146p.21v@scr.siemens.com> <1993Jul12.073948.7933@ericsson.se>
Date: Mon, 12 Jul 1993 16:27:20 GMT
Lines: 28