Hi,

I'd like to fix the naming collisions for the memory allocation utility
macros/functions between gallium & mesa, especially the MALLOC, CALLOC,
CALLOC_STRUCT, FREE, and REALLOC macros in u_memory.[ch].

The main motivation is to be able to use the memory debugging functions
debug_malloc, etc instead of the standard library's ones.  The mesa
based state tracker sometimes frees mesa structures (allocated with
malloc), with debug_free, and probably vice versa.

I don't have any particular preference for Gallium memory allocation
functions, as long as they are different from mesa. We could go for the
trend of prefixing with the module name (util_malloc, util_free, etc).
Or we could go for using some Gallium globally unique prefix
(ga3d_malloc, or ga_malloc). What you do you think?

Jose


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to