commit 4cb56b610a7258812a2f9c1b6026ee339a09fc12
parent 95a17112532e9fa9ac215fed3fc33a8c7abd3d37
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 25 Jun 2013 12:26:14 +0000
-use static where possible
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/main/extract.c b/src/main/extract.c
@@ -597,7 +597,7 @@ finish_bibtex (const char *fn)
#ifdef WINDOWS
-int
+static int
_wchar_to_str (const wchar_t *wstr, char **retstr, UINT cp)
{
char *str;
@@ -628,6 +628,7 @@ _wchar_to_str (const wchar_t *wstr, char **retstr, UINT cp)
}
#endif
+
/**
* Makes a copy of argv that consists of a single memory chunk that can be
* freed with a single call to free ();
@@ -653,6 +654,7 @@ _make_continuous_arg_copy (int argc, char *const *argv)
return (char **) new_argv;
}
+
/**
* Returns utf-8 encoded arguments.
* Returned argv has u8argv[u8argc] == NULL.
@@ -665,7 +667,7 @@ _make_continuous_arg_copy (int argc, char *const *argv)
* @param u8argv a location to store new argv in
* @return 0 on success, -1 on failure
*/
-int
+static int
_get_utf8_args (int argc, char *const *argv, int *u8argc, char ***u8argv)
{
#ifdef WINDOWS
@@ -712,6 +714,7 @@ _get_utf8_args (int argc, char *const *argv, int *u8argc, char ***u8argv)
return 0;
}
+
/**
* Main function for the 'extract' tool. Invoke with a list of
* filenames to extract keywords from.