🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #41607

fix-headers & __USE_FIXED_PROTOTYPES__

#41607
From: Chris Jepeway
Date: Tue, 27 Feb 1996 00:00
14 lines
1204 bytes
I'm building gcc-2.7.2 under SunOS-4.1.3, and I'm having trouble
generating prototypes for Sun's implicitly declared libc functions.
As an example, the SunOS-4.1.3 <stdio.h> doesn't include an explicit
prototype for fprintf(), and so the only prototype generated by
fixincludes/fixproto/fix-headers for fprintf() is buried in
#if defined(__cplusplus) || defined (__USE_FIXED_PROTOTYPES__).
Worse, the argument list for that prototype isn't protected w/
the _PARAMS macro.  Other than mangling the headers that
fixincludes/fixproto/fix-headers reads, as could be done by
puting a prototype for fprintf() in /usr/include/stdio.h, eg,
is there some way to tell the fix* things to generate "normal"
headers for such implicitly declared functions?

Chris <jepeway@cs.utk.edu>
Technical Details
Message-ID: <4gvt48INNkeb@CS.UTK.EDU>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,c5ec6587cc9ee2e6,start
X-Google-Attributes: gid11318c,public
From: jepeway@cs.utk.edu (Chris Jepeway)
Subject: fix-headers & __USE_FIXED_PROTOTYPES__
Date: 1996/02/27
Message-ID: <4gvt48INNkeb@CS.UTK.EDU>
X-Deja-AN: 141413973
distribution: local
organization: Computer Science Dept, University of Tennessee, Knoxville
newsgroups: gnu.gcc.help