deps/kb_meme/meme-5.0.1/src/alph-in.c
/*
 * check_complements
 * Ensure that all referenced complement symbols actually exist.
 */
check_complements
Ensure that all referenced complement symbols actually exist.
check_complements Ensure that all referenced complement symbols actually exist .
static void check_complements(ALPH_READER_T *reader) {
  RBNODE_T *node;
  ALPH_SYM_T *sym;
  char sym_str[2];
  sym_str[1] = '\0';
  for (node = rbtree_first(reader->core); node != NULL; node = rbtree_next(node)) {
    sym = (ALPH_SYM_T*)rbtree_value(node);
    if (sym->complement == '\0') continue; 
    sym_str[0] = sym->complement;
    if (rbtree_find(reader->core, sym_str) == NULL) {
      add_msg(reader, parmsg_create(SEVERITY_ERROR, -1, reader->line_num, -1, 
            "core symbol %c has complement %c which has not been defined",
            sym->symbol, sym->complement));
    }
  }
}
static void check_complements ( ALPH_READER_T * reader ) { RBNODE_T * node ; ALPH_SYM_T * sym ; char sym_str [ 2 ] ; sym_str [ 1 ] = ' \0 ' ; for ( node = rbtree_first ( reader -> core ) ; node != NULL ; node = rbtree_next ( node ) ) { sym = ( ALPH_SYM_T * ) rbtree_value ( node ) ; if ( sym -> complement == ' \0 ' ) continue ; sym_str [ 0 ] = sym -> complement ; if ( rbtree_find ( reader -> core , sym_str ) == NULL ) { add_msg ( reader , parmsg_create ( SEVERITY_ERROR , -1 , reader -> line_num , -1 , " " , sym -> symbol , sym -> complement ) ) ; } } }
check_complements
 Ensure that all referenced complement symbols actually exist.
check_complements Ensure that all referenced complement symbols actually exist .
// no complement