🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #274

Re: built-in prototypes?

#274
From: Jason Merrill
Date: Fri, 04 Sep 1992 21:11
51 lines
1907 bytes
bothner@cygnus.com writes:

>libg++ extracts a definition of size_t from the system header
>files (in the script libg++/utils/gen-params).  So basically,
>gcc's definition of size_t as int (which contradicts ANSI, but
>matches most recent releases of SunOS) does not match your
>system's header files.  You could fix gcc (by changing its
>definition of SIZE_TYPE).

If you are compiling libg++ with gcc (as I would assume), the size_t
defined in the gcc headers (i.e. stddef.h) should take precedence over the
system headers, I feel.  Thus:

*** /gnu/libg++/libg++/utils/gen-params~	Fri Jun 26 12:29:41 1992
--- /gnu/libg++/libg++/utils/gen-params	Fri Sep  4 14:06:22 1992
***************
*** 107,113
  # using sed to search for typedefs in the output.
  
  cat >dummy.c <<!EOF!
- #include <sys/types.h>
  #include <stddef.h>
  #include <stdarg.h>
  #include <stdio.h>

--- 107,112 -----
  # using sed to search for typedefs in the output.
  
  cat >dummy.c <<!EOF!
  #include <stddef.h>
  #include <sys/types.h>
  #include <stdarg.h>
***************
*** 109,114
  cat >dummy.c <<!EOF!
  #include <sys/types.h>
  #include <stddef.h>
  #include <stdarg.h>
  #include <stdio.h>
  #include <time.h>

--- 108,114 -----
  
  cat >dummy.c <<!EOF!
  #include <stddef.h>
+ #include <sys/types.h>
  #include <stdarg.h>
  #include <stdio.h>
  #include <time.h>
-- 
Fool on a Pedestal
Technical Details
Message-ID: <1992Sep4.211129.25826@muddcs.claremont.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!jarthur.claremont.edu!jason
References: <9209011942.AA15781@musclefish.com>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!jarthur.claremont.edu!jason
From: jason@jarthur.claremont.edu (Jason Merrill)
Subject: Re: built-in prototypes?
Message-ID: <1992Sep4.211129.25826@muddcs.claremont.edu>
Sender: gnulists@ai.mit.edu
Organization: Harvey Mudd College, Claremont, CA 91711
References: <9209011942.AA15781@musclefish.com> 
Distribution: gnu
Date: Fri, 4 Sep 1992 21:11:29 GMT
Approved: bug-lib-g++@prep.ai.mit.edu
Lines: 52