deps/kb_meme/meme-5.0.1/src/dreme-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 dreme_attr_parse_error(void *state, int errcode, const char *tag, const char *attr, const char *value) {
  PS_T *ps = (PS_T*)state;
  if (errcode == PARSE_ATTR_DUPLICATE) {
    error(ps, "Duplicate attribute %s::%s.\n", tag, attr);
  } else if (errcode == PARSE_ATTR_BAD_VALUE) {
    error(ps, "Bad value \"%s\" for attribute %s::%s.\n", value, tag, attr);
  } else if (errcode == PARSE_ATTR_MISSING) {
    error(ps, "Missing required attribute %s::%s.\n", tag, attr);
  }
}
void dreme_attr_parse_error ( void * state , int errcode , const char * tag , const char * attr , const char * value ) { PS_T * ps = ( PS_T * ) state ; if ( errcode == PARSE_ATTR_DUPLICATE ) { error ( ps , " \n " , tag , attr ) ; } else if ( errcode == PARSE_ATTR_BAD_VALUE ) { error ( ps , " \" \" \n " , value , tag , attr ) ; } else if ( errcode == PARSE_ATTR_MISSING ) { error ( ps , " \n " , tag , attr ) ; } }
Report an attribute parse error to the user.
Report an attribute parse error to the user .