[libxslt] Make some symbols static
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxslt] Make some symbols static
- Date: Tue, 3 Jan 2017 16:09:31 +0000 (UTC)
commit fbf246ca9bdd9f60de95d87eeda9d3092d64385b
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Fri Dec 2 15:35:31 2016 +0100
Make some symbols static
libxslt/transform.c | 9 +++++----
libxslt/variables.c | 2 +-
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/libxslt/transform.c b/libxslt/transform.c
index b3fce80..fca5554 100644
--- a/libxslt/transform.c
+++ b/libxslt/transform.c
@@ -468,7 +468,7 @@ xsltGetXIncludeDefault(void) {
return(xsltDoXIncludeDefault);
}
-unsigned long xsltDefaultTrace = (unsigned long) XSLT_TRACE_ALL;
+static unsigned long xsltDefaultTrace = (unsigned long) XSLT_TRACE_ALL;
/**
* xsltDebugSetDefaultTrace:
@@ -767,8 +767,9 @@ xsltFreeTransformContext(xsltTransformContextPtr ctxt) {
* *
************************************************************************/
-xmlNodePtr xsltCopyTree(xsltTransformContextPtr ctxt,
- xmlNodePtr node, xmlNodePtr insert, int literal);
+static xmlNodePtr
+xsltCopyTree(xsltTransformContextPtr ctxt, xmlNodePtr node, xmlNodePtr insert,
+ int literal);
/**
* xsltAddChild:
@@ -1812,7 +1813,7 @@ xsltCopyTreeInternal(xsltTransformContextPtr ctxt,
*
* Returns a pointer to the new tree, or NULL in case of error
*/
-xmlNodePtr
+static xmlNodePtr
xsltCopyTree(xsltTransformContextPtr ctxt, xmlNodePtr node,
xmlNodePtr insert, int literal)
{
diff --git a/libxslt/variables.c b/libxslt/variables.c
index e1a80ee..60b46ea 100644
--- a/libxslt/variables.c
+++ b/libxslt/variables.c
@@ -40,7 +40,7 @@
const xmlChar *xsltDocFragFake = (const xmlChar *) " fake node libxslt";
#endif
-const xmlChar *xsltComputingGlobalVarMarker =
+static const xmlChar *xsltComputingGlobalVarMarker =
(const xmlChar *) " var/param being computed";
#define XSLT_VAR_GLOBAL (1<<0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]