deps/kb_meme/meme-5.0.1/src/meme-sax.c
/*****************************************************************************
 * Push an expected state on the stack
 ****************************************************************************/
Push an expected state on the stack
Push an expected state on the stack
void meme_push_es(PS_T *ps, PS_EN expected_state, int expected_occurances) {
  ES_T *es;
  if (expected_state < PS_ERROR ||  expected_state > PS_END) {
    die("Bad state code!\n");
  }
  es = mm_malloc(sizeof(ES_T));
  es->state = expected_state;
  es->expected = expected_occurances;
  es->found = 0;
  linklst_push(es, ps->expected_stack);
}
void meme_push_es ( PS_T * ps , PS_EN expected_state , int expected_occurances ) { ES_T * es ; if ( expected_state < PS_ERROR || expected_state > PS_END ) { die ( " \n " ) ; } es = mm_malloc ( sizeof ( ES_T ) ) ; es -> state = expected_state ; es -> expected = expected_occurances ; es -> found = 0 ; linklst_push ( es , ps -> expected_stack ) ; }
Push an expected state on the stack
Push an expected state on the stack