bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reply to Mr Verdoolaege about wide chars


From: Rod Chamberlin
Subject: Re: Reply to Mr Verdoolaege about wide chars
Date: Fri, 28 Sep 2001 13:18:24 +0100 (BST)

On Fri, 28 Sep 2001, Thomas E. Dickey wrote:

> On Fri, 28 Sep 2001, Sven Verdoolaege wrote:
> 
> > On Thu, Sep 27, 2001 at 10:56:09AM +0200, Sven Verdoolaege wrote:
> > > On Thu, Sep 27, 2001 at 06:18:55AM +0200, philippe blain wrote:
> > > > A function CANNOT return a structure,
> > >
> > > Says who ?
> > >
> > K&R apparently.
> > Does anyone have the ansi standard at hand ?
> > I'm pretty sure it is allowed in ansi C.
> 
> likewise (I'm certain that it's allowed, though it's of course not
> necessarily efficient).
> 
> > You might want to post a patch. Since Thomas hasn't reacted
> > to this issue (at least not publicly), he may very well accept it.
> 
> maybe/maybe not - it would be nice to make things simpler, but I don't
> see a good way to do that in the slice we're discussing.
> 

I think the thing you need to beware of if you are returning structures is
thread safety, since the structure is usually returned in a standard
common block of memory rather than in a register/on the stack.

> -- 
> T.E.Dickey <address@hidden>
> http://invisible-island.net
> ftp://invisible-island.net
> 
> 
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-ncurses
> 

.............................Rod

+-----------------------------------------------------------------------------+
| Rod Chamberlin               | address@hidden   Tel +44 23 8023 2345        |
| Software Development Manager |                  Mob +44 7803 295406         |
| QueriX                       |                  Fax +44 23 8039 9685        |
+-----------------------------------------------------------------------------+




reply via email to

[Prev in Thread] Current Thread [Next in Thread]