1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-28 04:41:59 +03:00

small fixes w.r.t. IS_XSLT_REAL_NODE change some makefile "distclean"

* libxslt/functions.c libxslt/numbers.c: small fixes w.r.t.
  IS_XSLT_REAL_NODE change
* python/Makefile.am Makefile.am: some makefile "distclean"
  target improvement from Graham Wilson
* xsltproc/xsltproc.c: small fix from Alexey Efimov for options
  display.
Daniel
This commit is contained in:
Daniel Veillard
2003-09-18 09:31:46 +00:00
parent 4b8b616fb7
commit 1f23440f79
6 changed files with 19 additions and 6 deletions

View File

@ -1,3 +1,12 @@
Thu Sep 18 11:28:43 CEST 2003 Daniel Veillard <daniel@veillard.com>
* libxslt/functions.c libxslt/numbers.c: small fixes w.r.t.
IS_XSLT_REAL_NODE change
* python/Makefile.am Makefile.am: some makefile "distclean"
target improvement from Graham Wilson
* xsltproc/xsltproc.c: small fix from Alexey Efimov for options
display.
Mon Sep 15 07:41:14 PDT 2003 William Brack <wbrack@mmm.com.hk>
* libxslt/xsltutils.h: Added XML_PI_NODE to the macro

View File

@ -47,6 +47,8 @@ xsltConf.sh: xsltConf.sh.in Makefile
< $(srcdir)/xsltConf.sh.in > xsltConf.tmp \
&& mv xsltConf.tmp xsltConf.sh
CLEANFILES = xsltConf.sh
check-local: tests
dummy:

View File

@ -301,7 +301,8 @@ xsltDocumentFunction(xmlXPathParserContextPtr ctxt, int nargs)
xmlNodePtr target;
target = obj2->nodesetval->nodeTab[0];
if (target->type == XML_ATTRIBUTE_NODE) {
if ((target->type == XML_ATTRIBUTE_NODE) ||
(target->type == XML_PI_NODE)) {
target = ((xmlAttrPtr) target)->parent;
}
base = xmlNodeGetBase(target->doc, target);

View File

@ -215,7 +215,7 @@ xsltNumberFormatDecimal(xmlBufferPtr buffer,
break;
}
pointer -= len;
strncpy((char *)pointer, temp_char, len);
strncpy((char *)pointer, (const char *)temp_char, len);
}
number /= 10.0;
++i;

View File

@ -53,7 +53,8 @@ API_DESC = $(top_srcdir)/doc/libxslt-api.xml $(srcdir)/libxslt-python-api.xml
GENERATED= $(srcdir)/libxsltclass.py \
$(srcdir)/libxslt-export.c \
$(srcdir)/libxslt-py.c \
$(srcdir)/libxslt-py.h
$(srcdir)/libxslt-py.h \
$(srcdir)/libxsltclass.txt
$(GENERATED): gen_prog
@ -69,6 +70,4 @@ endif
tests test: all
cd tests && $(MAKE) tests
clean:
rm -f $(GENERATED) *.o libxslt.so *.pyc libxslt.py gen_prog
CLEANFILES= $(GENERATED) *.o libxslt.so *.pyc libxslt.py gen_prog

View File

@ -470,7 +470,9 @@ static void usage(const char *name) {
printf("\t--output file or -o file: save to a given file\n");
printf("\t--timing: display the time used\n");
printf("\t--repeat: run the transformation 20 times\n");
#ifdef LIBXML_DEBUG_ENABLED
printf("\t--debug: dump the tree of the result instead\n");
#endif
printf("\t--dumpextensions: dump the registered extension elements and functions to stdout\n");
printf("\t--novalid skip the Dtd loading phase\n");
printf("\t--noout: do not dump the result\n");