XML and header discrepancy for clSetMemObjectDestructorAPPLE
bashbaug opened this issue · comments
Ben Ashbaugh commented
Here is the declaration for clSetMemObjectDestructorAPPLE
in the headers:
extern CL_API_ENTRY cl_int CL_API_CALL clSetMemObjectDestructorAPPLE( cl_mem memobj,
void (* pfn_notify)(cl_mem memobj, void * user_data),
void * user_data) CL_API_SUFFIX__VERSION_1_0;
Here is what is in the XML file:
<command suffix="CL_API_SUFFIX__VERSION_1_0">
<proto><type>cl_int</type> <name>clSetMemObjectDestructorAPPLE</name></proto>
<param><type>cl_mem</type> <name>memobj</name></param>
<param>void (CL_CALLBACK* <name>pfn_notify</name>)(cl_mem memobj, void* user_data)</param>
<param><type>void</type>* <name>user_data</name></param>
</command>
Note that there is no CL_CALLBACK
on pfn_notify
in the headers but there is in the XML file.
I'm not sure which one is incorrect, but the discrepancy should be fixed since it can cause issues with generated code.
Ben Ashbaugh commented
I tracked down a mac and confirmed that clSetMemObjectDestructorAPPLE
has CL_CALLBACK
, so the XML file is correct and the headers are incorrect. I'll see if I can transfer this issue and we'll fix the headers.