This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: read_ret_type include fix


> 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
>  
>  
>  /*
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]