deps/kb_meme/meme-5.0.1/src/motif-in-meme-json.c
/*
 * Finish with the alphabet reader and return the ALPH_T
 */
Finish with the alphabet reader and return the ALPH_T
Finish with the alphabet reader and return the ALPH_T
void* mhtml2_alph_end(void* user_data, void* owner, void* self) {
  ALPH_T *alph;
  ALPH_READER_T *reader;
  DATA_T* data;
  PARMSG_T *msg;
  data = (DATA_T*)owner;
  reader = (ALPH_READER_T*)self;
  alph_reader_done(reader);
  while (alph_reader_has_message(reader)) {
    msg = alph_reader_next_message(reader);
    if (msg->severity == SEVERITY_ERROR) {
      error(data, "Alphabet error: %s.", msg->message);
    } else {
      warning(data, "Alphabet warning: %s.", msg->message);
    }
    parmsg_destroy(msg);
  }
  alph = alph_reader_alphabet(reader);
  if (alph == NULL) {
    error(data, "Failed to determine the alphabet.");
  }
  alph_reader_destroy(reader);
  return alph;
}
void * mhtml2_alph_end ( void * user_data , void * owner , void * self ) { ALPH_T * alph ; ALPH_READER_T * reader ; DATA_T * data ; PARMSG_T * msg ; data = ( DATA_T * ) owner ; reader = ( ALPH_READER_T * ) self ; alph_reader_done ( reader ) ; while ( alph_reader_has_message ( reader ) ) { msg = alph_reader_next_message ( reader ) ; if ( msg -> severity == SEVERITY_ERROR ) { error ( data , " " , msg -> message ) ; } else { warning ( data , " " , msg -> message ) ; } parmsg_destroy ( msg ) ; } alph = alph_reader_alphabet ( reader ) ; if ( alph == NULL ) { error ( data , " " ) ; } alph_reader_destroy ( reader ) ; return alph ; }
Finish with the alphabet reader and return the ALPH_T
Finish with the alphabet reader and return the ALPH_T