示例#1
0
int parseDTD (char* dtdpath) {
  FILE* f;
  int  r = -1;

  ENTER ("parseDTD");
  if (f = fopen (dtdpath, "r")) {
    r = parseXml (f);  /* DTDをパースする */
    fclose (f);
  }
  else
    warn3 ("Specified DTD file \"", dtdpath, "\" does not exist.");
  LEAVE ("parseDTD");
  return r;
}
示例#2
0
文件: module.c 项目: jmscott/blobio
void
module_leave()
{
    int i;
    static char nm[] = "module_leave";

    for (i = 0;  i < module_count;  i++) {
        struct digest_module *mp = modules[i];

        if (mp->shutdown) {
            if ((*mp->shutdown)())
                error3(nm, mp->name, "callback failed");
        } else
            warn3(nm, mp->name, "no shutdown() callback");
    }
}