NS_PRECONDITION(_retval != nsnull, "null ptr"); NS_PRECONDITION(location != nsnull, "null ptr"); if (!location || !_retval) return( NS_ERROR_NULL_POINTER);
NS_ENSURE_ARG_POINTER(_retval); NS_ENSURE_ARG_POINTER(location);
NS_IMETHODIMP ImportAddressImpl::GetNeedsFieldMap(nsIFileSpec *location, PRBool *_retval){    NS_PRECONDITION(_retval != nsnull, "null ptr");    NS_PRECONDITION(location != nsnull, "null ptr");	if (!location || !_retval)		return( NS_ERROR_NULL_POINTER);	*_retval = PR_TRUE;	PRBool	exists = PR_FALSE;	PRBool	isFile = PR_FALSE;	nsresult rv = location->Exists( &exists);	rv = location->IsFile( &isFile);		if (!exists || !isFile)		return( NS_ERROR_FAILURE);	PRBool	isLDIF = PR_FALSE;	rv = nsTextAddress::IsLDIFFile( location, &isLDIF);	if (NS_FAILED( rv)) {		IMPORT_LOG0( "*** Error determining if file is of type LDIF\n");		return( rv);	}		if (isLDIF)		*_retval = PR_FALSE;		return( NS_OK);}