This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: read_ret_type include fix
- To: ddsinc09 at ix dot netcom dot com
- Subject: Re: read_ret_type include fix
- From: "Philippe De Muyter" <phdm at macqel dot be>
- Date: Wed, 23 Jun 1999 20:47:53 +0200 (CEST)
- Cc: egcs-patches at egcs dot cygnus dot com, law at cygnus dot com, ddsinc09 at ix dot netcom dot com
> Hi Philippe,
>
> It looks like I commented it out when I was backing out
> fixes from the SVR4 "fixinc.svr4" file. Below is a proposed
> diff. I have added a selection clause because the "select"
> is done internally without forking off another process.
> I would like you to consider the select clause and propose
> any improvements.
That looks perfect to me. Thanks.
Philippe
> Index: inclhack.def
> ===================================================================
> RCS file: /cvs/egcs/egcs/gcc/fixinc/inclhack.def,v
> retrieving revision 1.29
> diff -u -r1.29 inclhack.def
> @@ -1235,15 +1235,14 @@
> /*
> * Fix return type of fread and fwrite on sysV68
> */
> -#ifdef LATER
> fix = {
> hackname = read_ret_type;
> files = stdio.h;
> + select = "extern int\t.*, fread\\(\\), fwrite\\(\\)";
> sed = "s/^\\(extern int\tfclose(), fflush()\\), "
> "\\(fread(), fwrite()\\)\\(.*\\)$"
> "/extern unsigned int\t\\2;\\\n\\1\\3/";
> };
> -#endif
>
>
> /*
>