Re: Patch proposal

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
2011/6/16 Christos Zoulas <[email protected]>:
> On Jun 16,  9:32am, [email protected] (Frediano Ziglio) wrote:
> -- Subject: [freetds] Patch proposal
>
> | Hi,
> |   I would like to include this patch (and follows). It define some
> | macro to merge allocation and casting.
>
> Please do not cast malloc. We are not in the 80's anymore and casting
> malloc() hides bugs. For example on an _LP64 bit machine casting malloc()
> will hide the warning of integer to pointer conversion when there is no
> prototype in scope.
>
> christos

integer ?? No Christos these macros just convert the void* pointer to
a specialized pointer. Just lika a C++ "new int[10]" return a int* a
tds_zallocn(int, 10) will return a int*.

freddy77
_______________________________________________
FreeTDS mailing list
[email protected]
http://lists.ibiblio.org/mailman/listinfo/freetds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.