1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +03:00

bump the libxml2 require to 2.6.0 which should ship for good real soon...

* configure.in: bump the libxml2 require to 2.6.0 which
  should ship for good real soon...
* doc/Makefile.am: fix installation of HTML pages
* doc/libxslt-api.xml: rebuilt
* libxslt/xsltexports.h: cleanup
* python/generator.py: ATTRIBUTE_UNUSED is after the parameter
* xsltproc/xsltproc.c: applied Crutcher Dunnavant --load-trace patch 2
Daniel
This commit is contained in:
Daniel Veillard
2003-10-19 21:35:47 +00:00
parent e0bbbefe2e
commit eb955f5fe1
7 changed files with 62 additions and 7 deletions

View File

@ -1,3 +1,13 @@
Sun Oct 19 23:32:23 CEST 2003 Daniel Veillard <daniel@veillard.com>
* configure.in: bump the libxml2 require to 2.6.0 which
should ship for good real soon...
* doc/Makefile.am: fix installation of HTML pages
* doc/libxslt-api.xml: rebuilt
* libxslt/xsltexports.h: cleanup
* python/generator.py: ATTRIBUTE_UNUSED is after the parameter
* xsltproc/xsltproc.c: applied Crutcher Dunnavant --load-trace patch 2
Fri Oct 17 18:25:42 HKT 2003 William Brack <wbrack@mmm.com.hk> Fri Oct 17 18:25:42 HKT 2003 William Brack <wbrack@mmm.com.hk>
* libxslt/attributes.c: fixed bug 123822 * libxslt/attributes.c: fixed bug 123822

View File

@ -11,7 +11,7 @@ PACKAGE=libxslt
LIBEXSLT_MAJOR_VERSION=0 LIBEXSLT_MAJOR_VERSION=0
LIBEXSLT_MINOR_VERSION=7 LIBEXSLT_MINOR_VERSION=7
LIBEXSLT_MICRO_VERSION=22 LIBEXSLT_MICRO_VERSION=22
LIBXML_REQUIRED_VERSION=2.5.6 LIBXML_REQUIRED_VERSION=2.6.0
LIBXSLT_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION.$LIBXSLT_MICRO_VERSION LIBXSLT_VERSION=$LIBXSLT_MAJOR_VERSION.$LIBXSLT_MINOR_VERSION.$LIBXSLT_MICRO_VERSION

View File

@ -105,8 +105,10 @@ install-data-local:
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR) $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)
-@INSTALL@ -m 0644 $(srcdir)/*.html $(DESTDIR)$(TARGET_DIR) -@INSTALL@ -m 0644 $(srcdir)/*.html $(DESTDIR)$(TARGET_DIR)
-@INSTALL@ -m 0644 $(srcdir)/*.gif $(DESTDIR)$(TARGET_DIR) -@INSTALL@ -m 0644 $(srcdir)/*.gif $(DESTDIR)$(TARGET_DIR)
-@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(TARGET_DIR) $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/html
-@INSTALL@ -m 0644 $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) -@INSTALL@ -m 0644 $(srcdir)/html/*.html $(DESTDIR)$(TARGET_DIR)/html
-@INSTALL@ -m 0644 $(srcdir)/html/*.png $(DESTDIR)$(TARGET_DIR)/html
-@INSTALL@ -m 0644 $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR)/html
$(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/tutorial $(mkinstalldirs) $(DESTDIR)$(TARGET_DIR)/tutorial
-@INSTALL@ -m 0644 $(srcdir)/tutorial/* $(DESTDIR)$(TARGET_DIR)/tutorial -@INSTALL@ -m 0644 $(srcdir)/tutorial/* $(DESTDIR)$(TARGET_DIR)/tutorial
-(cd $(DESTDIR); gtkdoc-fixxref --module=libxslt --html-dir=$(HTML_DIR)) -(cd $(DESTDIR); gtkdoc-fixxref --module=libxslt --html-dir=$(HTML_DIR))

View File

@ -406,6 +406,7 @@
<macro name='XSLTCALL' file='xsltexports'> <macro name='XSLTCALL' file='xsltexports'>
</macro> </macro>
<macro name='XSLTPUBFUN' file='xsltexports'> <macro name='XSLTPUBFUN' file='xsltexports'>
<info>XSLTPUBFUN, XSLTPUBVAR, XSLTCALL Macros which declare an exportable function, an exportable variable and the calling convention used for functions. Please use an extra block for every platform/compiler combination when modifying this, rather than overlong #ifdef lines. This helps readability as well as the fact that different compilers on the same platform might need different definitions. Windows platform with MS compiler Windows platform with Borland compiler Windows platform with GNU compiler (Mingw) Cygwin platform, GNU compiler</info>
</macro> </macro>
<macro name='XSLTPUBVAR' file='xsltexports'> <macro name='XSLTPUBVAR' file='xsltexports'>
</macro> </macro>

View File

@ -10,6 +10,7 @@
#define __XSLT_EXPORTS_H__ #define __XSLT_EXPORTS_H__
/** /**
* XSLTPUBFUN:
* XSLTPUBFUN, XSLTPUBVAR, XSLTCALL * XSLTPUBFUN, XSLTPUBVAR, XSLTCALL
* *
* Macros which declare an exportable function, an exportable variable and * Macros which declare an exportable function, an exportable variable and

View File

@ -406,10 +406,11 @@ def print_function_wrapper(name, output, export, include):
return 1 return 1
output.write("PyObject *\n") output.write("PyObject *\n")
output.write("libxslt_%s(ATTRIBUTE_UNUSED PyObject *self," % (name)) output.write("libxslt_%s(PyObject *self ATTRIBUTE_UNUSED," % (name))
output.write(" PyObject *args")
if format == "": if format == "":
output.write("ATTRIBUTE_UNUSED ") output.write(" ATTRIBUTE_UNUSED")
output.write(" PyObject *args) {\n") output.write(") {\n")
if ret[0] != 'void': if ret[0] != 'void':
output.write(" PyObject *py_retval;\n") output.write(" PyObject *py_retval;\n")
if c_return != "": if c_return != "":

View File

@ -94,6 +94,7 @@ static int noout = 0;
#ifdef LIBXML_HTML_ENABLED #ifdef LIBXML_HTML_ENABLED
static int html = 0; static int html = 0;
#endif #endif
static int load_trace = 0;
#ifdef LIBXML_XINCLUDE_ENABLED #ifdef LIBXML_XINCLUDE_ENABLED
static int xinclude = 0; static int xinclude = 0;
#endif #endif
@ -171,6 +172,13 @@ xsltprocExternalEntityLoader(const char *URL, const char *ID,
if (ret != NULL) { if (ret != NULL) {
if (warning != NULL) if (warning != NULL)
ctxt->sax->warning = warning; ctxt->sax->warning = warning;
if (load_trace) {
fprintf \
(stderr,
"Loaded URL=\"%s\" ID=\"%s\"\n",
URL ? URL : "(null)",
ID ? ID : "(null)");
}
return(ret); return(ret);
} }
} }
@ -182,12 +190,20 @@ xsltprocExternalEntityLoader(const char *URL, const char *ID,
newURL = xmlStrcat(newURL, (const xmlChar *) lastsegment); newURL = xmlStrcat(newURL, (const xmlChar *) lastsegment);
if (newURL != NULL) { if (newURL != NULL) {
ret = defaultEntityLoader((const char *)newURL, ID, ctxt); ret = defaultEntityLoader((const char *)newURL, ID, ctxt);
xmlFree(newURL);
if (ret != NULL) { if (ret != NULL) {
if (warning != NULL) if (warning != NULL)
ctxt->sax->warning = warning; ctxt->sax->warning = warning;
if (load_trace) {
fprintf \
(stderr,
"Loaded URL=\"%s\" ID=\"%s\"\n",
newURL,
ID ? ID : "(null)");
}
xmlFree(newURL);
return(ret); return(ret);
} }
xmlFree(newURL);
} }
} }
if (warning != NULL) { if (warning != NULL) {
@ -476,6 +492,9 @@ static void usage(const char *name) {
printf("\t--novalid skip the Dtd loading phase\n"); printf("\t--novalid skip the Dtd loading phase\n");
printf("\t--noout: do not dump the result\n"); printf("\t--noout: do not dump the result\n");
printf("\t--maxdepth val : increase the maximum depth\n"); printf("\t--maxdepth val : increase the maximum depth\n");
#if LIBXML_VERSION >= 20600
printf("\t--maxparserdepth val : increase the maximum parser depth\n");
#endif
#ifdef LIBXML_HTML_ENABLED #ifdef LIBXML_HTML_ENABLED
printf("\t--html: the input document is(are) an HTML file(s)\n"); printf("\t--html: the input document is(are) an HTML file(s)\n");
#endif #endif
@ -497,6 +516,7 @@ static void usage(const char *name) {
#ifdef LIBXML_XINCLUDE_ENABLED #ifdef LIBXML_XINCLUDE_ENABLED
printf("\t--xinclude : do XInclude processing on document intput\n"); printf("\t--xinclude : do XInclude processing on document intput\n");
#endif #endif
printf("\t--load-trace : print trace of all external entites loaded\n");
printf("\t--profile or --norman : dump profiling informations \n"); printf("\t--profile or --norman : dump profiling informations \n");
printf("\nProject libxslt home page: http://xmlsoft.org/XSLT/\n"); printf("\nProject libxslt home page: http://xmlsoft.org/XSLT/\n");
printf("To report bugs and get help: http://xmlsoft.org/XSLT/bugs.html\n"); printf("To report bugs and get help: http://xmlsoft.org/XSLT/bugs.html\n");
@ -630,6 +650,9 @@ main(int argc, char **argv)
xinclude++; xinclude++;
xsltSetXIncludeDefault(1); xsltSetXIncludeDefault(1);
#endif #endif
} else if ((!strcmp(argv[i], "-load-trace")) ||
(!strcmp(argv[i], "--load-trace"))) {
load_trace++;
} else if ((!strcmp(argv[i], "-param")) || } else if ((!strcmp(argv[i], "-param")) ||
(!strcmp(argv[i], "--param"))) { (!strcmp(argv[i], "--param"))) {
i++; i++;
@ -677,6 +700,17 @@ main(int argc, char **argv)
if (value > 0) if (value > 0)
xsltMaxDepth = value; xsltMaxDepth = value;
} }
#if LIBXML_VERSION >= 20600
} else if ((!strcmp(argv[i], "-maxparserdepth")) ||
(!strcmp(argv[i], "--maxparserdepth"))) {
int value;
i++;
if (sscanf(argv[i], "%d", &value) == 1) {
if (value > 0)
xmlParserMaxDepth = value;
}
#endif
} else if ((!strcmp(argv[i],"-dumpextensions"))|| } else if ((!strcmp(argv[i],"-dumpextensions"))||
(!strcmp(argv[i],"--dumpextensions"))) { (!strcmp(argv[i],"--dumpextensions"))) {
dumpextensions++; dumpextensions++;
@ -714,6 +748,12 @@ main(int argc, char **argv)
(!strcmp(argv[i], "--maxdepth"))) { (!strcmp(argv[i], "--maxdepth"))) {
i++; i++;
continue; continue;
#if LIBXML_VERSION >= 20600
} else if ((!strcmp(argv[i], "-maxparserdepth")) ||
(!strcmp(argv[i], "--maxparserdepth"))) {
i++;
continue;
#endif
} else if ((!strcmp(argv[i], "-o")) || } else if ((!strcmp(argv[i], "-o")) ||
(!strcmp(argv[i], "-output")) || (!strcmp(argv[i], "-output")) ||
(!strcmp(argv[i], "--output"))) { (!strcmp(argv[i], "--output"))) {