Re: [RFC PATCH] explicitly mark recursion count

Valdis.Kletnieks
2004-06-02T19:33:27Z

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

On Wed, 02 Jun 2004 20:58:32 +0200, =?iso-8859-1?Q?J=F6rn?= Engel said:

> Note the "in the most general case" part. You can get things right if
> you make some assumptions and those assumptions are actually valid.
> In my case the assumptions are:
> 1. all relevant function pointers are stuffed into some struct and
> 2. no casts are used to disguise function pointer as something else.

That seems to be reasonable. And if we're aliasing, or shadowing, or casting
function pointers to something else, or using a union to overlay it, that's
just a time bomb waiting to explode. At the very least, such code should
require a large "Danger! Here be large and nasty dragons!" marker.

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]