PRUint16 *ccmap = (PRUint16*)PR_Malloc(CCMAP_EXTRA + 16 * sizeof(PRUint16)); NS_ASSERTION(ccmap, "failed to alloc new CCMap");  if (!ccmap) return nsnull;  memset(ccmap, '\0', CCMAP_EMPTY_SIZE_PER_INT16 * sizeof(PRUint16)+ CCMAP_EXTRA); ccmap += CCMAP_EXTRA; CCMAP_SIZE(ccmap) = CCMAP_EMPTY_SIZE_PER_INT16; CCMAP_FLAG(ccmap) = CCMAP_NONE_FLAG; return ccmap;
nsCompressedCharMap ccmapObj; return ccmapObj.NewCCMap();
PRUint16* CreateEmptyCCMap(){  PRUint16 *ccmap = (PRUint16*)PR_Malloc(CCMAP_EXTRA + 16 * sizeof(PRUint16));  NS_ASSERTION(ccmap, "failed to alloc new CCMap");  if (!ccmap)    return nsnull;  memset(ccmap, '\0', CCMAP_EMPTY_SIZE_PER_INT16 * sizeof(PRUint16)+ CCMAP_EXTRA);  ccmap += CCMAP_EXTRA;  CCMAP_SIZE(ccmap) = CCMAP_EMPTY_SIZE_PER_INT16;  CCMAP_FLAG(ccmap) = CCMAP_NONE_FLAG;  return ccmap;}