3rd_party/hmmer-3.1b2-linux-intel-x86_64/src/fm_general.c
/* Function:  fm_addAmbiguityRange()
 *
 * Synopsis:  return a pointer to the next seed element on the list,
 *            increasing the size of the list, if necessary.
 *
 * Returns:   NULL in event of allocation failure, otherwise pointer to
 *            the next seed diagonal
 */
fm_addAmbiguityRange()
Synopsis:  return a pointer to the next seed element on the list,
increasing the size of the list, if necessary.

NULL in event of allocation failure, otherwise pointer to
the next seed diagonal
fm_addAmbiguityRange () Synopsis : return a pointer to the next seed element on the list increasing the size of the list if necessary . NULL in event of allocation failure otherwise pointer to the next seed diagonal
int
fm_addAmbiguityRange (FM_AMBIGLIST *list, uint32_t start, uint32_t stop) {
  int status;
  if (list->count == list->size) {
    list->size *= 4;
    ESL_REALLOC(list->ranges, list->size * sizeof(FM_INTERVAL));
  }
  list->ranges[list->count].lower = start;
  list->ranges[list->count].upper = stop;
  list->count++;
  return eslOK;
ERROR:
  return eslFAIL;
}
int fm_addAmbiguityRange ( FM_AMBIGLIST * list , uint32_t start , uint32_t stop ) { int status ; if ( list -> count == list -> size ) { list -> size *= 4 ; ESL_REALLOC ( list -> ranges , list -> size * sizeof ( FM_INTERVAL ) ) ; } list -> ranges [ list -> count ] . lower = start ; list -> ranges [ list -> count ] . upper = stop ; list -> count ++ ; return eslOK ; ERROR : return eslFAIL ; }
Function:  fm_addAmbiguityRange()
 Synopsis:  return a pointer to the next seed element on the list,
            increasing the size of the list, if necessary.
Function : fm_addAmbiguityRange () Synopsis : return a pointer to the next seed element on the list increasing the size of the list if necessary .