freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Frediano Ziglio <freddyz77 AT tin.it>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: RE: [freetds] tdsstring.c ansi alias problem
- Date: Tue, 06 May 2003 05:57:28 -0000
Il mar, 2003-05-06 alle 07:40, Craig A. Berry ha scritto:
> At 5:54 PM +0200 5/5/03, ZIGLIO Frediano wrote:
> >If "*(char **) s = src;" is not OK perhaps it's a priority problem...
> >*((char**)s) = src should work better.
>
> That's not the issue at all. The standard says that the compiler may
> safely assume two items are in different storage locations if their data
> types are different. Here you are trying to make the same storage location
> have two different types.
>
> I still don't see why the function just doesn't do:
>
> return (DSTR) *src;
??? where is the assignment ?
DSTR is just a char* casted. DSTR* is a char**. (I explained the reason
for al these casts in a previous mail).
freddy77
-
[freetds] tdsstring.c ansi alias problem,
Craig A. Berry, 05/04/2003
- <Possible follow-up(s)>
- RE: [freetds] tdsstring.c ansi alias problem, Lowden, James K, 05/05/2003
-
RE: [freetds] tdsstring.c ansi alias problem,
ZIGLIO Frediano, 05/05/2003
-
RE: [freetds] tdsstring.c ansi alias problem,
Craig A. Berry, 05/06/2003
- RE: [freetds] tdsstring.c ansi alias problem, Frediano Ziglio, 05/06/2003
-
RE: [freetds] tdsstring.c ansi alias problem,
Craig A. Berry, 05/06/2003
- RE: [freetds] tdsstring.c ansi alias problem, Lowden, James K, 05/05/2003
Archive powered by MHonArc 2.6.24.