Make some internal functions static
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 12 Aug 2010 11:38:06 +0000 (13:38 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 12 Aug 2010 11:38:06 +0000 (13:38 +0200)
These functions were defined non-static by mistake (they were
never defined in a header): emit_term, emit_terms, emit-wordlist.

src/cqltransform.c
src/solrtransform.c

index de777d0..55c3366 100644 (file)
@@ -607,11 +607,11 @@ static int has_modifier(struct cql_node *cn, const char *name) {
 }
 
 
-void emit_term(cql_transform_t ct,
-               struct cql_node *cn,
-               const char *term, int length,
-               void (*pr)(const char *buf, void *client_data),
-               void *client_data)
+static void emit_term(cql_transform_t ct,
+                      struct cql_node *cn,
+                      const char *term, int length,
+                      void (*pr)(const char *buf, void *client_data),
+                      void *client_data)
 {
     int i;
     const char *ns = cn->u.st.index_uri;
@@ -748,11 +748,11 @@ void emit_term(cql_transform_t ct,
     xfree(z3958_mem);
 }
 
-void emit_terms(cql_transform_t ct,
-                struct cql_node *cn,
-                void (*pr)(const char *buf, void *client_data),
-                void *client_data,
-                const char *op)
+static void emit_terms(cql_transform_t ct,
+                       struct cql_node *cn,
+                       void (*pr)(const char *buf, void *client_data),
+                       void *client_data,
+                       const char *op)
 {
     struct cql_node *ne = cn->u.st.extra_terms;
     if (ne)
@@ -776,11 +776,11 @@ void emit_terms(cql_transform_t ct,
     }
 }
 
-void emit_wordlist(cql_transform_t ct,
-                   struct cql_node *cn,
-                   void (*pr)(const char *buf, void *client_data),
-                   void *client_data,
-                   const char *op)
+static void emit_wordlist(cql_transform_t ct,
+                          struct cql_node *cn,
+                          void (*pr)(const char *buf, void *client_data),
+                          void *client_data,
+                          const char *op)
 {
     const char *cp0 = cn->u.st.term;
     const char *cp1;
index b800ca9..2d41044 100644 (file)
@@ -639,11 +639,11 @@ static int has_modifier(struct solr_node *cn, const char *name) {
 }
 
 
-void emit_term(solr_transform_t ct,
-               struct solr_node *cn,
-               const char *term, int length,
-               void (*pr)(const char *buf, void *client_data),
-               void *client_data)
+static void emit_term(solr_transform_t ct,
+                      struct solr_node *cn,
+                      const char *term, int length,
+                      void (*pr)(const char *buf, void *client_data),
+                      void *client_data)
 {
     int i;
     const char *ns = cn->u.st.index_uri;
@@ -780,11 +780,11 @@ void emit_term(solr_transform_t ct,
     xfree(z3958_mem);
 }
 
-void emit_terms(solr_transform_t ct,
-                struct solr_node *cn,
-                void (*pr)(const char *buf, void *client_data),
-                void *client_data,
-                const char *op)
+static void emit_terms(solr_transform_t ct,
+                       struct solr_node *cn,
+                       void (*pr)(const char *buf, void *client_data),
+                       void *client_data,
+                       const char *op)
 {
     struct solr_node *ne = cn->u.st.extra_terms;
     if (ne)
@@ -808,11 +808,11 @@ void emit_terms(solr_transform_t ct,
     }
 }
 
-void emit_wordlist(solr_transform_t ct,
-                   struct solr_node *cn,
-                   void (*pr)(const char *buf, void *client_data),
-                   void *client_data,
-                   const char *op)
+static void emit_wordlist(solr_transform_t ct,
+                          struct solr_node *cn,
+                          void (*pr)(const char *buf, void *client_data),
+                          void *client_data,
+                          const char *op)
 {
     const char *cp0 = cn->u.st.term;
     const char *cp1;