diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2002-02-07 17:02:34 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2002-02-07 17:02:34 +0000 |
commit | 9de2bd46fce5d8e9ba9185dbb6044570887603cc (patch) | |
tree | 81c1ebc2197735ea8705b0ed735e1295f2dd95bf /xsltproc | |
parent | ff22c1a5f95bccd0b400d251dfde04280a6c7d52 (diff) | |
download | libxslt-9de2bd46fce5d8e9ba9185dbb6044570887603cc.tar.gz libxslt-9de2bd46fce5d8e9ba9185dbb6044570887603cc.tar.bz2 libxslt-9de2bd46fce5d8e9ba9185dbb6044570887603cc.zip |
small fix cleanup avoid a problem with $(TESTS) augmented the wrappers
* xsltproc/xsltproc.c: small fix
* Makefile.am: cleanup
* python/tests/Makefile.am: avoid a problem with $(TESTS)
* python/generator.py python/libxml_wrap.h python/libxsl.py
python/libxslt.c python/libxsltclass.txt: augmented the
wrappers
* python/tests/pyxsltproc.py: rewrote xsltproc on top of the
libxslt-python API to get an estimate of what is missing
Daniel
Diffstat (limited to 'xsltproc')
-rw-r--r-- | xsltproc/xsltproc.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c index 4b68b216..16591e3e 100644 --- a/xsltproc/xsltproc.c +++ b/xsltproc/xsltproc.c @@ -114,7 +114,7 @@ static int errorno = 0; */ #if defined(HAVE_GETTIMEOFDAY) -static struct timeval begin, end; +static struct timeval begin, endtime; /* * startTimer: call where you want to start timing */ @@ -132,10 +132,10 @@ static void endTimer(const char *format, ...) long msec; va_list ap; - gettimeofday(&end, NULL); - msec = end.tv_sec - begin.tv_sec; + gettimeofday(&endtime, NULL); + msec = endtime.tv_sec - begin.tv_sec; msec *= 1000; - msec += (end.tv_usec - begin.tv_usec) / 1000; + msec += (endtime.tv_usec - begin.tv_usec) / 1000; #ifndef HAVE_STDARG_H #error "endTimer required stdarg functions" @@ -153,7 +153,7 @@ static void endTimer(const char *format, ...) * that. */ -clock_t begin, end; +clock_t begin, endtime; static void startTimer(void) { begin=clock(); @@ -163,8 +163,8 @@ static void endTimer(char *format, ...) long msec; va_list ap; - end=clock(); - msec = ((end-begin) * 1000) / CLOCKS_PER_SEC; + endtime=clock(); + msec = ((endtime-begin) * 1000) / CLOCKS_PER_SEC; #ifndef HAVE_STDARG_H #error "endTimer required stdarg functions" @@ -536,6 +536,11 @@ main(int argc, char **argv) i += 2; continue; } + if ((!strcmp(argv[i], "-stringparam")) || + (!strcmp(argv[i], "--stringparam"))) { + i += 2; + continue; + } if ((argv[i][0] != '-') || (strcmp(argv[i], "-") == 0)) { if (timing) startTimer(); |