www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/08/27/08:05:23

Date: Tue, 27 Aug 1996 08:00:40 -0400
From: dj (DJ Delorie)
Message-Id: <199608271200.IAA19710@delorie.com>
To: eliz AT is DOT elta DOT co DOT il
CC: djgpp-workers AT delorie DOT com
In-reply-to: <Pine.SUN.3.91.960827074805.11185F-100000@is> (message from Eli Zaretskii on Tue, 27 Aug 1996 07:52:32 +0200 (IST))
Subject: Re: getc and putc: not macros

> Is there any reason why `getc' and `putc' aren't macros on <stdio.h>?  
> There are inline functions `__getc' and `__putc', but they are only on 
> <libc/file.h>...

Based on looking at <libc/file.h>, I would guess that gcc won't inline
them anyway.

In theory any function can be "inlined" (if gcc permits), but each
time you do so you make it so that you have to recompile sources to
upgrade libc.  With all the work we've been doing on text vs binary, I
didn't feel like recompiling all the gnu utilities instead of just
linking.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019