itaps-parallel Re: typedef structure in iMeshP.h

Jason Kraftcheck kraftche at cae.wisc.edu
Tue Oct 21 13:20:22 CDT 2008


Devine, Karen D wrote:
> Hi, Ting.
> 
> I admit that I do not know what the ITAPS_DECLARE_HANDLE means or by whom it
> was added to the interface.  I understood that handles were always void*, so
> your suggestion seems correct.
> 

I added it.  The header did not contain any definitions of
iMeshP_PartitionHandle, etc., so I added them the way I thought that they
should be defined.  As discussed in this thread:
http://www-unix.mcs.anl.gov/web-mail-archive/lists/tstt-interface/2008/09/msg00005.html
defining them in this fashion is better than using 'void*' because the
different handle types are distinct (e.g. the compiler will complain if an
application tries to pass an iMeshP_PartHandle where an
iMeshP_PartitionHandle is expected.)

- jason




More information about the itaps-parallel mailing list