deps/kb_meme/meme-5.0.1/src/motif-in-meme-json.c
/*****************************************************************************
 * Create the parser for MEME HTML with JSON data
 ****************************************************************************/
Create the parser for MEME HTML with JSON data
Create the parser for MEME HTML with JSON data
void* mhtml2_create(const char *optional_filename, int options) {
  MHTML2_T *parser;
  parser = mm_malloc(sizeof(MHTML2_T));
  memset(parser, 0, sizeof(MHTML2_T));
  parser->data = create_parser_data(options, optional_filename);
  parser->reader = jsonchk_create(mhtml2_verror, parser->data,
      json_def((options & SCANNED_SITES) != 0));
  return parser;
}
void * mhtml2_create ( const char * optional_filename , int options ) { MHTML2_T * parser ; parser = mm_malloc ( sizeof ( MHTML2_T ) ) ; memset ( parser , 0 , sizeof ( MHTML2_T ) ) ; parser -> data = create_parser_data ( options , optional_filename ) ; parser -> reader = jsonchk_create ( mhtml2_verror , parser -> data , json_def ( ( options & SCANNED_SITES ) != 0 ) ) ; return parser ; }
Create the parser for MEME HTML with JSON data
Create the parser for MEME HTML with JSON data