deps/kb_meme/meme-5.0.1/src/cisml-sax.c
/*****************************************************************************
 * Report an attribute parse error to the user.
 ****************************************************************************/
Report an attribute parse error to the user.
Report an attribute parse error to the user .
void cisml_attr_parse_error(void *state, int errcode, const char *tag, const char *attr, const char *value) {
  CISML_PARSER_T *ps = (CISML_PARSER_T*)state;
  ps->state = PS_ERROR;
  if (errcode == PARSE_ATTR_DUPLICATE) {
    DEBUG_FMT(HIGH_VERBOSE, "CISML parser error: Duplicate attribute %s::%s.\n", tag, attr);
  } else if (errcode == PARSE_ATTR_BAD_VALUE) {
    DEBUG_FMT(HIGH_VERBOSE, "CISML parser error: Bad value \"%s\" for attribute %s::%s.\n", value, tag, attr);
  } else if (errcode == PARSE_ATTR_MISSING) {
    DEBUG_FMT(HIGH_VERBOSE, "CISML parser error: Missing required attribute %s::%s.\n", tag, attr);
  }
}
void cisml_attr_parse_error ( void * state , int errcode , const char * tag , const char * attr , const char * value ) { CISML_PARSER_T * ps = ( CISML_PARSER_T * ) state ; ps -> state = PS_ERROR ; if ( errcode == PARSE_ATTR_DUPLICATE ) { DEBUG_FMT ( HIGH_VERBOSE , " \n " , tag , attr ) ; } else if ( errcode == PARSE_ATTR_BAD_VALUE ) { DEBUG_FMT ( HIGH_VERBOSE , " \" \" \n " , value , tag , attr ) ; } else if ( errcode == PARSE_ATTR_MISSING ) { DEBUG_FMT ( HIGH_VERBOSE , " \n " , tag , attr ) ; } }
Report an attribute parse error to the user.
Report an attribute parse error to the user .