diff options
Diffstat (limited to 'libexslt')
-rw-r--r-- | libexslt/common.c | 8 | ||||
-rw-r--r-- | libexslt/crypto.c | 6 | ||||
-rw-r--r-- | libexslt/date.c | 128 | ||||
-rw-r--r-- | libexslt/dynamic.c | 10 | ||||
-rw-r--r-- | libexslt/exslt.c | 2 | ||||
-rw-r--r-- | libexslt/functions.c | 24 | ||||
-rw-r--r-- | libexslt/libexslt.h | 2 | ||||
-rw-r--r-- | libexslt/math.c | 16 | ||||
-rw-r--r-- | libexslt/saxon.c | 2 | ||||
-rw-r--r-- | libexslt/strings.c | 10 |
10 files changed, 104 insertions, 104 deletions
diff --git a/libexslt/common.c b/libexslt/common.c index 77f352e5..451a60d8 100644 --- a/libexslt/common.c +++ b/libexslt/common.c @@ -46,16 +46,16 @@ exsltNodeSetFunction (xmlXPathParserContextPtr ctxt, int nargs) { if (fragment == NULL) { xsltTransformError(tctxt, NULL, tctxt->inst, "exsltNodeSetFunction: Failed to create a tree fragment.\n"); - tctxt->state = XSLT_STATE_STOPPED; + tctxt->state = XSLT_STATE_STOPPED; return; } xsltRegisterLocalRVT(tctxt, fragment); strval = xmlXPathPopString (ctxt); - + txt = xmlNewDocText (fragment, strval); xmlAddChild((xmlNodePtr) fragment, txt); - obj = xmlXPathNewNodeSet(txt); + obj = xmlXPathNewNodeSet(txt); if (obj == NULL) { xsltTransformError(tctxt, NULL, tctxt->inst, "exsltNodeSetFunction: Failed to create a node set object.\n"); @@ -69,7 +69,7 @@ exsltNodeSetFunction (xmlXPathParserContextPtr ctxt, int nargs) { } if (strval != NULL) xmlFree (strval); - + valuePush (ctxt, obj); } } diff --git a/libexslt/crypto.c b/libexslt/crypto.c index 42ac6c5b..d142bb65 100644 --- a/libexslt/crypto.c +++ b/libexslt/crypto.c @@ -27,7 +27,7 @@ #define MD5_DIGEST_LENGTH 16 #define SHA1_DIGEST_LENGTH 20 -/* gcrypt rc4 can do 256 bit keys, but cryptoapi limit +/* gcrypt rc4 can do 256 bit keys, but cryptoapi limit seems to be 128 for the default provider */ #define RC4_KEY_LENGTH 128 @@ -48,7 +48,7 @@ * @hex: buffer to store hex version of blob * @hexlen: length of buffer to store hex version of blob * - * Helper function which encodes a binary blob as hex. + * Helper function which encodes a binary blob as hex. */ static void exsltCryptoBin2Hex (const unsigned char *bin, int binlen, @@ -357,7 +357,7 @@ exsltCryptoGcryptInit (void) { * @msglen: length of text to be hashed * @dest: buffer to place hash result * - * Helper function which hashes a message using MD4, MD5, or SHA1. + * Helper function which hashes a message using MD4, MD5, or SHA1. * using gcrypt */ static void diff --git a/libexslt/date.c b/libexslt/date.c index 18523d02..9ca993c6 100644 --- a/libexslt/date.c +++ b/libexslt/date.c @@ -99,7 +99,7 @@ typedef struct _exsltDateValDuration exsltDateValDuration; typedef exsltDateValDuration *exsltDateValDurationPtr; struct _exsltDateValDuration { long mon; /* mon stores years also */ - long day; + long day; double sec; /* sec stores min and hour also */ }; @@ -119,7 +119,7 @@ struct _exsltDateVal { * * ****************************************************************/ -#if defined(HAVE_TIME_H) \ +#if defined(HAVE_TIME_H) \ && (defined(HAVE_LOCALTIME) || defined(HAVE_LOCALTIME_R)) \ && (defined(HAVE_GMTIME) || defined(HAVE_GMTIME_R)) \ && defined(HAVE_TIME) @@ -791,27 +791,27 @@ exsltDateCurrent (void) local_s = localTm.tm_hour * SECS_PER_HOUR + localTm.tm_min * SECS_PER_MIN + localTm.tm_sec; - + gm_s = gmTm.tm_hour * SECS_PER_HOUR + gmTm.tm_min * SECS_PER_MIN + gmTm.tm_sec; - + if (localTm.tm_year < gmTm.tm_year) { - ret->value.date.tzo = -((SECS_PER_DAY - local_s) + gm_s)/60; + ret->value.date.tzo = -((SECS_PER_DAY - local_s) + gm_s)/60; } else if (localTm.tm_year > gmTm.tm_year) { - ret->value.date.tzo = ((SECS_PER_DAY - gm_s) + local_s)/60; + ret->value.date.tzo = ((SECS_PER_DAY - gm_s) + local_s)/60; } else if (localTm.tm_mon < gmTm.tm_mon) { - ret->value.date.tzo = -((SECS_PER_DAY - local_s) + gm_s)/60; + ret->value.date.tzo = -((SECS_PER_DAY - local_s) + gm_s)/60; } else if (localTm.tm_mon > gmTm.tm_mon) { - ret->value.date.tzo = ((SECS_PER_DAY - gm_s) + local_s)/60; + ret->value.date.tzo = ((SECS_PER_DAY - gm_s) + local_s)/60; } else if (localTm.tm_mday < gmTm.tm_mday) { - ret->value.date.tzo = -((SECS_PER_DAY - local_s) + gm_s)/60; + ret->value.date.tzo = -((SECS_PER_DAY - local_s) + gm_s)/60; } else if (localTm.tm_mday > gmTm.tm_mday) { - ret->value.date.tzo = ((SECS_PER_DAY - gm_s) + local_s)/60; + ret->value.date.tzo = ((SECS_PER_DAY - gm_s) + local_s)/60; } else { - ret->value.date.tzo = (local_s - gm_s)/60; + ret->value.date.tzo = (local_s - gm_s)/60; } - + return ret; } #endif @@ -1111,9 +1111,9 @@ exsltDateFormatDuration (const exsltDateValDurationPtr dt) return NULL; /* quick and dirty check */ - if ((dt->sec == 0.0) && (dt->day == 0) && (dt->mon == 0)) + if ((dt->sec == 0.0) && (dt->day == 0) && (dt->mon == 0)) return xmlStrdup((xmlChar*)"P0D"); - + secs = dt->sec; days = (double)dt->day; years = (double)(dt->mon / 12); @@ -1123,15 +1123,15 @@ exsltDateFormatDuration (const exsltDateValDurationPtr dt) if (secs < 0.0) { secs = -secs; *cur = '-'; - } + } if (days < 0) { days = -days; *cur = '-'; - } + } if (years < 0) { years = -years; *cur = '-'; - } + } if (months < 0) { months = -months; *cur = '-'; @@ -1301,7 +1301,7 @@ exsltDateFormat (const exsltDateValPtr dt) * _exsltDateCastYMToDays: * @dt: an #exsltDateValPtr * - * Convert mon and year of @dt to total number of days. Take the + * Convert mon and year of @dt to total number of days. Take the * number of years since (or before) 1 AD and add the number of leap * years. This is a function because negative * years must be handled a little differently and there is no zero year. @@ -1414,7 +1414,7 @@ _exsltDateTruncateDate (exsltDateValPtr dt, exsltDateType type) * @yr: year * * Determine the day-in-week from @yday and @yr. 0001-01-01 was - * a Monday so all other days are calculated from there. Take the + * a Monday so all other days are calculated from there. Take the * number of years since (or before) add the number of leap years and * the day-in-year and mod by 7. This is a function because negative * years must be handled a little differently and there is no zero year. @@ -1428,7 +1428,7 @@ _exsltDateDayInWeek(long yday, long yr) if (yr < 0) { ret = ((yr + (((yr+1)/4)-((yr+1)/100)+((yr+1)/400)) + yday) % 7); - if (ret < 0) + if (ret < 0) ret += 7; } else ret = (((yr-1) + (((yr-1)/4)-((yr-1)/100)+((yr-1)/400)) + yday) % 7); @@ -1542,7 +1542,7 @@ _exsltDateAdd (exsltDateValPtr dt, exsltDateValPtr dur) if (tyr == 0) tyr--; /* - * Coverity detected an overrun in daysInMonth + * Coverity detected an overrun in daysInMonth * of size 12 at position 12 with index variable "((r)->mon - 1)" */ if (tmon < 0) @@ -1567,7 +1567,7 @@ _exsltDateAdd (exsltDateValPtr dt, exsltDateValPtr dur) r->year++; } } - + r->day = tempdays; /* @@ -1642,7 +1642,7 @@ _exsltDateDifference (exsltDateValPtr x, exsltDateValPtr y, int flag) return NULL; if (((x->type < XS_GYEAR) || (x->type > XS_DATETIME)) || - ((y->type < XS_GYEAR) || (y->type > XS_DATETIME))) + ((y->type < XS_GYEAR) || (y->type > XS_DATETIME))) return NULL; exsltDateNormalize(x); @@ -1779,7 +1779,7 @@ _exsltDateAddDuration (exsltDateValPtr x, exsltDateValPtr y) * * Implements the EXSLT - Dates and Times date-time() function: * string date:date-time() - * + * * Returns the current date and time as a date/time string. */ static xmlChar * @@ -1805,7 +1805,7 @@ exsltDateDateTime (void) * * Implements the EXSLT - Dates and Times date() function: * string date:date (string?) - * + * * Returns the date specified in the date/time string given as the * argument. If no argument is given, then the current local * date/time, as returned by date:date-time is used as a default @@ -1849,7 +1849,7 @@ exsltDateDate (const xmlChar *dateTime) * * Implements the EXSLT - Dates and Times time() function: * string date:time (string?) - * + * * Returns the time specified in the date/time string given as the * argument. If no argument is given, then the current local * date/time, as returned by date:date-time is used as a default @@ -2630,7 +2630,7 @@ exsltDateMinuteInHour (const xmlChar *dateTime) * - xs:time (hh:mm:ss) * If the date/time string is not in one of these formats, then NaN is * returned. - * + * * Returns the second or NaN. */ static double @@ -2667,21 +2667,21 @@ exsltDateSecondInMinute (const xmlChar *dateTime) * @ystr: date/time string * * Implements the date:add (string,string) function which returns the - * date/time * resulting from adding a duration to a date/time. + * date/time * resulting from adding a duration to a date/time. * The first argument (@xstr) must be right-truncated date/time * strings in one of the formats defined in [XML Schema Part 2: - * Datatypes]. The permitted formats are as follows: - * - xs:dateTime (CCYY-MM-DDThh:mm:ss) - * - xs:date (CCYY-MM-DD) - * - xs:gYearMonth (CCYY-MM) - * - xs:gYear (CCYY) + * Datatypes]. The permitted formats are as follows: + * - xs:dateTime (CCYY-MM-DDThh:mm:ss) + * - xs:date (CCYY-MM-DD) + * - xs:gYearMonth (CCYY-MM) + * - xs:gYear (CCYY) * The second argument (@ystr) is a string in the format defined for - * xs:duration in [3.2.6 duration] of [XML Schema Part 2: Datatypes]. + * xs:duration in [3.2.6 duration] of [XML Schema Part 2: Datatypes]. * The return value is a right-truncated date/time strings in one of * the formats defined in [XML Schema Part 2: Datatypes] and listed * above. This value is calculated using the algorithm described in * [Appendix E Adding durations to dateTimes] of [XML Schema Part 2: - * Datatypes]. + * Datatypes]. * Returns date/time string or NULL. */ @@ -2689,7 +2689,7 @@ static xmlChar * exsltDateAdd (const xmlChar *xstr, const xmlChar *ystr) { exsltDateValPtr dt, dur, res; - xmlChar *ret; + xmlChar *ret; if ((xstr == NULL) || (ystr == NULL)) return NULL; @@ -2728,18 +2728,18 @@ exsltDateAdd (const xmlChar *xstr, const xmlChar *ystr) * @ystr: second duration string * * Implements the date:add-duration (string,string) function which returns - * the duration resulting from adding two durations together. + * the duration resulting from adding two durations together. * Both arguments are strings in the format defined for xs:duration * in [3.2.6 duration] of [XML Schema Part 2: Datatypes]. If either * argument is not in this format, the function returns an empty string - * (''). + * (''). * The return value is a string in the format defined for xs:duration - * in [3.2.6 duration] of [XML Schema Part 2: Datatypes]. + * in [3.2.6 duration] of [XML Schema Part 2: Datatypes]. * The durations can usually be added by summing the numbers given for * each of the components in the durations. However, if the durations * are differently signed, then this sometimes results in durations * that are impossible to express in this syntax (e.g. 'P1M' + '-P1D'). - * In these cases, the function returns an empty string (''). + * In these cases, the function returns an empty string (''). * * Returns duration string or NULL. */ @@ -2747,7 +2747,7 @@ static xmlChar * exsltDateAddDuration (const xmlChar *xstr, const xmlChar *ystr) { exsltDateValPtr x, y, res; - xmlChar *ret; + xmlChar *ret; if ((xstr == NULL) || (ystr == NULL)) return NULL; @@ -2780,18 +2780,18 @@ exsltDateAddDuration (const xmlChar *xstr, const xmlChar *ystr) * exsltDateSumFunction: * @ns: a node set of duration strings * - * The date:sum function adds a set of durations together. - * The string values of the nodes in the node set passed as an argument - * are interpreted as durations and added together as if using the + * The date:sum function adds a set of durations together. + * The string values of the nodes in the node set passed as an argument + * are interpreted as durations and added together as if using the * date:add-duration function. (from exslt.org) * * The return value is a string in the format defined for xs:duration - * in [3.2.6 duration] of [XML Schema Part 2: Datatypes]. + * in [3.2.6 duration] of [XML Schema Part 2: Datatypes]. * The durations can usually be added by summing the numbers given for * each of the components in the durations. However, if the durations * are differently signed, then this sometimes results in durations * that are impossible to express in this syntax (e.g. 'P1M' + '-P1D'). - * In these cases, the function returns an empty string (''). + * In these cases, the function returns an empty string (''). * * Returns duration string or NULL. */ @@ -2835,7 +2835,7 @@ exsltDateSumFunction (xmlXPathParserContextPtr ctxt, int nargs) } for (i = 0; i < ns->nodeNr; i++) { - int result; + int result; tmp = xmlXPathCastNodeToString (ns->nodeTab[i]); if (tmp == NULL) { xmlXPathFreeNodeSet (ns); @@ -2888,13 +2888,13 @@ exsltDateSumFunction (xmlXPathParserContextPtr ctxt, int nargs) * local date/time, as returned by exsltDateCurrent() is used as the * default argument. If the date/time string is a xs:duration, then the * years and months must be zero (or not present). Parsing a duration - * converts the fields to seconds. If the date/time string is not a + * converts the fields to seconds. If the date/time string is not a * duration (and not null), then the legal formats are: * - xs:dateTime (CCYY-MM-DDThh:mm:ss) * - xs:date (CCYY-MM-DD) * - xs:gYearMonth (CCYY-MM) * - xs:gYear (CCYY) - * In these cases the difference between the @dateTime and + * In these cases the difference between the @dateTime and * 1970-01-01T00:00:00Z is calculated and converted to seconds. * * Note that there was some confusion over whether "difference" meant @@ -2942,7 +2942,7 @@ exsltDateSeconds (const xmlChar *dateTime) dur = _exsltDateDifference(y, dt, 1); if (dur != NULL) { - ret = exsltDateCastDateToNumber(dur); + ret = exsltDateCastDateToNumber(dur); exsltDateFreeDate(dur); } exsltDateFreeDate(y); @@ -2970,26 +2970,26 @@ exsltDateSeconds (const xmlChar *dateTime) * 2: Datatypes]. The date/time with the most specific format (i.e. the * least truncation) is converted into the same format as the date with * the least specific format (i.e. the most truncation). The permitted - * formats are as follows, from most specific to least specific: - * - xs:dateTime (CCYY-MM-DDThh:mm:ss) - * - xs:date (CCYY-MM-DD) - * - xs:gYearMonth (CCYY-MM) - * - xs:gYear (CCYY) + * formats are as follows, from most specific to least specific: + * - xs:dateTime (CCYY-MM-DDThh:mm:ss) + * - xs:date (CCYY-MM-DD) + * - xs:gYearMonth (CCYY-MM) + * - xs:gYear (CCYY) * If either of the arguments is not in one of these formats, - * date:difference returns the empty string (''). + * date:difference returns the empty string (''). * The difference between the date/times is returned as a string in the * format defined for xs:duration in [3.2.6 duration] of [XML Schema - * Part 2: Datatypes]. + * Part 2: Datatypes]. * If the date/time string with the least specific format is in either * xs:gYearMonth or xs:gYear format, then the number of days, hours, * minutes and seconds in the duration string must be equal to zero. * (The format of the string will be PnYnM.) The number of months - * specified in the duration must be less than 12. + * specified in the duration must be less than 12. * Otherwise, the number of years and months in the duration string * must be equal to zero. (The format of the string will be * PnDTnHnMnS.) The number of seconds specified in the duration string * must be less than 60; the number of minutes must be less than 60; - * the number of hours must be less than 24. + * the number of hours must be less than 24. * * Returns duration string or NULL. */ @@ -2997,7 +2997,7 @@ static xmlChar * exsltDateDifference (const xmlChar *xstr, const xmlChar *ystr) { exsltDateValPtr x, y, dur; - xmlChar *ret = NULL; + xmlChar *ret = NULL; if ((xstr == NULL) || (ystr == NULL)) return NULL; @@ -3040,16 +3040,16 @@ exsltDateDifference (const xmlChar *xstr, const xmlChar *ystr) * Implements the The date:duration function returns a duration string * representing the number of seconds specified by the argument string. * If no argument is given, then the result of calling date:seconds - * without any arguments is used as a default argument. + * without any arguments is used as a default argument. * The duration is returned as a string in the format defined for - * xs:duration in [3.2.6 duration] of [XML Schema Part 2: Datatypes]. + * xs:duration in [3.2.6 duration] of [XML Schema Part 2: Datatypes]. * The number of years and months in the duration string must be equal * to zero. (The format of the string will be PnDTnHnMnS.) The number * of seconds specified in the duration string must be less than 60; * the number of minutes must be less than 60; the number of hours must - * be less than 24. + * be less than 24. * If the argument is Infinity, -Infinity or NaN, then date:duration - * returns an empty string (''). + * returns an empty string (''). * * Returns duration string or NULL. */ diff --git a/libexslt/dynamic.c b/libexslt/dynamic.c index 607860b1..e0bfe817 100644 --- a/libexslt/dynamic.c +++ b/libexslt/dynamic.c @@ -74,11 +74,11 @@ exsltDynEvaluateFunction(xmlXPathParserContextPtr ctxt, int nargs) { ret = xmlXPathEval(str,ctxt->context); if (ret) valuePush(ctxt,ret); - else { + else { xsltGenericError(xsltGenericErrorContext, "dyn:evaluate() : unable to evaluate expression '%s'\n",str); valuePush(ctxt,xmlXPathNewNodeSet(NULL)); - } + } xmlFree(str); return; } @@ -144,9 +144,9 @@ exsltDynMapFunction(xmlXPathParserContextPtr ctxt, int nargs) oldContextSize = ctxt->context->contextSize; oldProximityPosition = ctxt->context->proximityPosition; - /** - * since we really don't know we're going to be adding node(s) - * down the road we create the RVT regardless + /** + * since we really don't know we're going to be adding node(s) + * down the road we create the RVT regardless */ tctxt = xsltXPathGetTransformContext(ctxt); if (tctxt == NULL) { diff --git a/libexslt/exslt.c b/libexslt/exslt.c index 2dadce03..0bccf178 100644 --- a/libexslt/exslt.c +++ b/libexslt/exslt.c @@ -11,7 +11,7 @@ #include <libexslt/exsltconfig.h> #include "exslt.h" -const char *exsltLibraryVersion = LIBEXSLT_VERSION_STRING +const char *exsltLibraryVersion = LIBEXSLT_VERSION_STRING LIBEXSLT_VERSION_EXTRA; const int exsltLibexsltVersion = LIBEXSLT_VERSION; const int exsltLibxsltVersion = LIBXSLT_VERSION; diff --git a/libexslt/functions.c b/libexslt/functions.c index 159e93da..e6e245fd 100644 --- a/libexslt/functions.c +++ b/libexslt/functions.c @@ -106,16 +106,16 @@ exsltFuncRegisterImportFunc (exsltFuncFunctionData *data, return; if (ch->ctxt == NULL || ch->hash == NULL) - return; + return; /* Check if already present */ func = (exsltFuncFunctionData*)xmlHashLookup2(ch->hash, URI, name); if (func == NULL) { /* Not yet present - copy it in */ - func = exsltFuncNewFunctionData(); + func = exsltFuncNewFunctionData(); memcpy(func, data, sizeof(exsltFuncFunctionData)); if (xmlHashAddEntry2(ch->hash, URI, name, func) < 0) { xsltGenericError(xsltGenericErrorContext, - "Failed to register function {%s}%s\n", + "Failed to register function {%s}%s\n", URI, name); } else { /* Do the registration */ xsltGenericDebug(xsltGenericDebugContext, @@ -146,7 +146,7 @@ exsltFuncInit (xsltTransformContextPtr ctxt, const xmlChar *URI) { xsltStylesheetPtr tmp; exsltFuncImportRegData ch; xmlHashTablePtr hash; - + ret = (exsltFuncData *) xmlMalloc (sizeof(exsltFuncData)); if (ret == NULL) { xsltGenericError(xsltGenericErrorContext, @@ -166,7 +166,7 @@ exsltFuncInit (xsltTransformContextPtr ctxt, const xmlChar *URI) { while ((tmp=xsltNextImport(tmp))!=NULL) { hash = xsltGetExtInfo(tmp, URI); if (hash != NULL) { - xmlHashScanFull(hash, + xmlHashScanFull(hash, (xmlHashScannerFull) exsltFuncRegisterImportFunc, &ch); } } @@ -179,7 +179,7 @@ exsltFuncInit (xsltTransformContextPtr ctxt, const xmlChar *URI) { * @ctxt: an XSLT transformation context * @URI: the namespace URI for the extension * @data: the module data to free up - * + * * Shutdown the EXSLT - Functions module * Called at transformation-time. */ @@ -212,7 +212,7 @@ exsltFuncStyleInit (xsltStylesheetPtr style ATTRIBUTE_UNUSED, * exsltFuncStyleShutdown: * @style: an XSLT stylesheet * @URI: the namespace URI for the extension - * @data: the stylesheet data to free up + * @data: the stylesheet data to free up * * Shutdown the EXSLT - Function module * Called at compile-time. @@ -350,7 +350,7 @@ exsltFuncFunctionFunction (xmlXPathParserContextPtr ctxt, int nargs) { * which is not very nice. There is probably a much better solution * (like change other code to delay the evaluation). */ - /* + /* * In order to give the function params and variables a new 'scope' * we change varsBase in the context. */ @@ -411,7 +411,7 @@ exsltFuncFunctionFunction (xmlXPathParserContextPtr ctxt, int nargs) { tctxt->insert = oldInsert; tctxt->varsBase = oldBase; /* restore original scope */ if (params != NULL) - xsltFreeStackElemList(params); + xsltFreeStackElemList(params); if (data->error != 0) goto error; @@ -570,7 +570,7 @@ exsltFuncResultComp (xsltStylesheetPtr style, xmlNodePtr inst, * it is an error if a func:result occurs within a func:result * element. * it is an error if instanciating the content of a variable - * binding element (i.e. xsl:variable, xsl:param) results in the + * binding element (i.e. xsl:variable, xsl:param) results in the * instanciation of a func:result element. */ for (test = inst->parent; test != NULL; test = test->parent) { @@ -651,7 +651,7 @@ exsltFuncResultElem (xsltTransformContextPtr ctxt, exsltFuncResultPreComp *comp) { exsltFuncData *data; xmlXPathObjectPtr ret; - + /* It is an error if instantiating the content of the * func:function element results in the instantiation of more than @@ -727,7 +727,7 @@ exsltFuncResultElem (xsltTransformContextPtr ctxt, data->error = 1; return; } - xsltRegisterLocalRVT(ctxt, container); + xsltRegisterLocalRVT(ctxt, container); oldInsert = ctxt->insert; ctxt->insert = (xmlNodePtr) container; diff --git a/libexslt/libexslt.h b/libexslt/libexslt.h index 1f10f387..2dd9b37b 100644 --- a/libexslt/libexslt.h +++ b/libexslt/libexslt.h @@ -22,7 +22,7 @@ #if (defined (__CYGWIN__) || defined _MSC_VER) && !defined IN_LIBEXSLT && !defined LIBEXSLT_STATIC #define LIBEXSLT_PUBLIC __declspec(dllimport) #else -#define LIBEXSLT_PUBLIC +#define LIBEXSLT_PUBLIC #endif #endif diff --git a/libexslt/math.c b/libexslt/math.c index a1971e05..6b24dbe0 100644 --- a/libexslt/math.c +++ b/libexslt/math.c @@ -298,7 +298,7 @@ static void exsltMathLowestFunction (xmlXPathParserContextPtr ctxt, int nargs) { xmlNodeSetPtr ns, ret; void *user = NULL; - + if (nargs != 1) { xmlXPathSetArityError(ctxt); @@ -368,7 +368,7 @@ exsltMathConstant (xmlChar *name, double precision) { if (precision <= len) len = (int)precision; - + str = xmlStrsub(EXSLT_PI, 0, len); } else if (xmlStrEqual(name, BAD_CAST "E")) { @@ -376,7 +376,7 @@ exsltMathConstant (xmlChar *name, double precision) { if (precision <= len) len = (int)precision; - + str = xmlStrsub(EXSLT_E, 0, len); } else if (xmlStrEqual(name, BAD_CAST "SQRRT2")) { @@ -384,7 +384,7 @@ exsltMathConstant (xmlChar *name, double precision) { if (precision <= len) len = (int)precision; - + str = xmlStrsub(EXSLT_SQRRT2, 0, len); } else if (xmlStrEqual(name, BAD_CAST "LN2")) { @@ -392,7 +392,7 @@ exsltMathConstant (xmlChar *name, double precision) { if (precision <= len) len = (int)precision; - + str = xmlStrsub(EXSLT_LN2, 0, len); } else if (xmlStrEqual(name, BAD_CAST "LN10")) { @@ -400,7 +400,7 @@ exsltMathConstant (xmlChar *name, double precision) { if (precision <= len) len = (int)precision; - + str = xmlStrsub(EXSLT_LN10, 0, len); } else if (xmlStrEqual(name, BAD_CAST "LOG2E")) { @@ -408,7 +408,7 @@ exsltMathConstant (xmlChar *name, double precision) { if (precision <= len) len = (int)precision; - + str = xmlStrsub(EXSLT_LOG2E, 0, len); } else if (xmlStrEqual(name, BAD_CAST "SQRT1_2")) { @@ -416,7 +416,7 @@ exsltMathConstant (xmlChar *name, double precision) { if (precision <= len) len = (int)precision; - + str = xmlStrsub(EXSLT_SQRT1_2, 0, len); } else { diff --git a/libexslt/saxon.c b/libexslt/saxon.c index 60880c80..e92ba8d0 100644 --- a/libexslt/saxon.c +++ b/libexslt/saxon.c @@ -209,7 +209,7 @@ exsltSaxonSystemIdFunction(xmlXPathParserContextPtr ctxt, int nargs) * exsltSaxonLineNumberFunction: * @ctxt: an XPath parser context * @nargs: number of arguments - * + * * Implements the SAXON line-number() function * integer saxon:line-number() * diff --git a/libexslt/strings.c b/libexslt/strings.c index 5167a414..045cc14b 100644 --- a/libexslt/strings.c +++ b/libexslt/strings.c @@ -27,7 +27,7 @@ * @nargs: the number of arguments * * Splits up a string on the characters of the delimiter string and returns a - * node set of token elements, each containing one token from the string. + * node set of token elements, each containing one token from the string. */ static void exsltStrTokenizeFunction(xmlXPathParserContextPtr ctxt, int nargs) @@ -106,7 +106,7 @@ exsltStrTokenizeFunction(xmlXPathParserContextPtr ctxt, int nargs) } } if (token != cur) { - node = xmlNewDocRawNode(container, NULL, + node = xmlNewDocRawNode(container, NULL, (const xmlChar *) "token", token); xmlAddChild((xmlNodePtr) container, node); xmlXPathNodeSetAddUnique(ret->nodesetval, node); @@ -136,7 +136,7 @@ fail: * @nargs: the number of arguments * * Splits up a string on a delimiting string and returns a node set of token - * elements, each containing one token from the string. + * elements, each containing one token from the string. */ static void exsltStrSplitFunction(xmlXPathParserContextPtr ctxt, int nargs) { @@ -335,7 +335,7 @@ exsltStrDecodeUriFunction (xmlXPathParserContextPtr ctxt, int nargs) { xmlFree(ret); return; } - + xmlXPathReturnString(ctxt, ret); if (str != NULL) @@ -552,7 +552,7 @@ exsltStrReturnString(xmlXPathParserContextPtr ctxt, const xmlChar *str, * @ctxt: an XPath parser context * @nargs: the number of arguments * - * Takes a string, and two node sets and returns the string with all strings in + * Takes a string, and two node sets and returns the string with all strings in * the first node set replaced by all strings in the second node set. */ static void |