| delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f |
| Date: | Tue, 11 Nov 2003 12:29:13 +0200 (EET) |
| From: | Esa A E Peuha <peuha AT cc DOT helsinki DOT fi> |
| Sender: | peuha AT sirppi DOT helsinki DOT fi |
| To: | djgpp-workers AT delorie DOT com |
| Subject: | Suggested improvements |
| Message-ID: | <Pine.OSF.4.58.0311071212520.5324@sirppi.helsinki.fi> |
| MIME-Version: | 1.0 |
| Reply-To: | djgpp-workers AT delorie DOT com |
I have been thinking of some small possible improvements to djgp's libc. First of these is fgetc/getc and fputc/putc. These two pairs of functions are completely identical, so maybe we could define fgetc to getc and fputc to putc in stdio.h if ANSI allows it (if not, then fgetc/fputc might be just stabs to getc/putc). Second, do we ever expect close do something that _close can't do? I'm asking this because now close is a stub to __close which calls _close... (This reminds me of the joke that every computing science problem can be solved by adding a layer of indirection. :-) It seems to me that it would be more sensible to define close to _close in libc/stabs.h. -- Esa Peuha student of mathematics at the University of Helsinki http://www.helsinki.fi/~peuha/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |