Re: internal vtable format - name mangling?

Georg Seidel <[email protected]>
Newsgroups gmane.comp.video.gephex.devel
Message-ID <[email protected]>
> | Update of the format: to avoid memory leaks, the vtable will also store
> | a pointer
> | to a function that can be used to free itself.
> 
> Who is "itself"? Is it the vtable?

Yes

> typeof(a[0]) = const char* 0-terminated
> typeof(a[1]) = void (*)(vtable_ptr)
> typeof(a[2]) = // depends on the interface
> ...
> typeof(a[n+2]) = // depends on the interface
> typeof(a[n+3]) = unsigned int or void_ptr with 0 as value

Yes, if n == 2*num_funs-1


> 
> - --
> GnuPG (ID B3D1B1BB) C2F4 F775 5022 1891 48F4  761D 0A6D E2E7 B3D1 B1BB
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
> 
> iD8DBQFAQG/aCm3i57PRsbsRArJRAJ99FhTTG3G9junpvr534I1RipL+XgCfedUK
> EhmJrs85zQ/G2kCnvTnUdrc=
> =Qaqq
> -----END PGP SIGNATURE-----
> _______________________________________________
> gephex-devel mailing list
> [email protected]
> http://lists.gephex.org/mailman/listinfo/gephex-devel
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.