This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch,libgfortran & patch,fortran] Namelist


[ added gcc-patches@ since that is where all patches should go ]

Paul Thomas wrote:
> ! 	  p = write_block (len + 2);
> ! 	  if (!p)
> ! 	    goto query_return;
> ! 	  memcpy (p, "&", 1);
	*p = '&';

> ! 	      p = write_block (len + 2);
> ! 	      if (!p)
> ! 		goto query_return;
> ! 	      memcpy (p, " ", 1);
        *p = ' ';
> ! 	      memcpy ((char*)(p + 1), nl->var_name, len);
> ! 	      memcpy ((char*)(p + len + 1), "\n", 1);

We might have to add support for DOS-style line-breaks here, or is this
handled somewhere further down the stream?

> !       /* Flush the stream to force immediate output.  */
> ! 
> !       flush (current_unit->s);

Is this for debugging, or is this a requirement?

I still see a number of formatting errors, but I don't think they're reason
enough to hold up the patch any further.  From my POV this is ok.

- Tobi


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