Backed out revision 3.2. In C and C++, a pointer to any datatype

can be implicitly cast to void *.  So the explicit (void *) cast
in the argument for PR_Free() should not be necessary.
This commit is contained in:
wtc 1998-06-03 21:23:24 +00:00
parent 008bf9e083
commit d5808c772f

View File

@ -121,7 +121,7 @@ PR_EXTERN(void) PR_Free(void *ptr);
** OUTPUTS: the referenced object is returned to the heap
** RETURN: void
***********************************************************************/
#define PR_DELETE(_ptr) { PR_Free((void*)_ptr); (_ptr) = NULL; }
#define PR_DELETE(_ptr) { PR_Free(_ptr); (_ptr) = NULL; }
/***********************************************************************
** FUNCTION: PR_FREEIF()