コード例 #1
0
ファイル: kernlcsf.c プロジェクト: AbdelghaniDr/mirror
/* remove map from run time structure (LIBRARY_INTERNAL)
 * The map handle will become invalid.
 */
void CsfUnloadMap(
  MAP *m) /* map handle */
{
  POSTCOND(CsfIsValidMap(m));

  mapList[m->mapListId] = NULL;
  m->mapListId = -1;
}
コード例 #2
0
ファイル: attravai.c プロジェクト: drownedout/datamap
/* check if an attribute is available
 * MattributeAvail search for the given id in the map.
 *
 * returns
 *  0 if the attribute is not available,
 *  nonzero if the attribute is available
 *
 * Merrno
 * ILLHANDLE
 */
int MattributeAvail(
	MAP *m,    /* map handle */
	CSF_ATTR_ID id)  /* identification of attribute */
{
	ATTR_CNTRL_BLOCK b;

     	if (! CsfIsValidMap(m))
	 	return 0;
	return(CsfGetAttrBlock(m, id, &b) != 0);
}