mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 09:23:06 +00:00
[LIBXML2] Update to version 2.9.7. CORE-14291
This commit is contained in:
parent
b97f0a8fed
commit
fc82f8e2e3
52 changed files with 1978 additions and 2458 deletions
12
sdk/lib/3rdparty/libxml2/xmlcatalog.c
vendored
12
sdk/lib/3rdparty/libxml2/xmlcatalog.c
vendored
|
@ -312,7 +312,8 @@ static void usage(const char *name) {
|
|||
/* split into 2 printf's to avoid overly long string (gcc warning) */
|
||||
printf("\
|
||||
Usage : %s [options] catalogfile entities...\n\
|
||||
\tParse the catalog file and query it for the entities\n\
|
||||
\tParse the catalog file (void specification possibly expressed as \"\"\n\
|
||||
\tappoints the default system one) and query it for the entities\n\
|
||||
\t--sgml : handle SGML Super catalogs for --add and --del\n\
|
||||
\t--shell : run a shell allowing interactive queries\n\
|
||||
\t--create : create a new catalog\n\
|
||||
|
@ -408,11 +409,18 @@ int main(int argc, char **argv) {
|
|||
continue;
|
||||
} else if (argv[i][0] == '-')
|
||||
continue;
|
||||
filename = argv[i];
|
||||
|
||||
if (filename == NULL && argv[i][0] == '\0') {
|
||||
/* Interpret empty-string catalog specification as
|
||||
a shortcut for a default system catalog. */
|
||||
xmlInitializeCatalog();
|
||||
} else {
|
||||
filename = argv[i];
|
||||
ret = xmlLoadCatalog(argv[i]);
|
||||
if ((ret < 0) && (create)) {
|
||||
xmlCatalogAdd(BAD_CAST "catalog", BAD_CAST argv[i], NULL);
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue