summaryrefslogtreecommitdiff
path: root/frontends
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2021-02-26 13:39:50 +0000
committerVincent Sanders <vince@kyllikki.org>2021-02-26 13:40:09 +0000
commit5e31f045a03753e2d65c3d65ef27d10919648eff (patch)
treec41f27f4898f618e78135cb8f0e073a4db04f9e7 /frontends
parente9f29a1002046992b347b9c1adfe07677d12e6fb (diff)
downloadnetsurf-5e31f045a03753e2d65c3d65ef27d10919648eff.tar.gz
netsurf-5e31f045a03753e2d65c3d65ef27d10919648eff.tar.bz2
Improve some documentation comments
Diffstat (limited to 'frontends')
-rw-r--r--frontends/monkey/main.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/frontends/monkey/main.c b/frontends/monkey/main.c
index bae815056..463f0bea6 100644
--- a/frontends/monkey/main.c
+++ b/frontends/monkey/main.c
@@ -73,7 +73,8 @@ static void die(const char * const error)
exit(EXIT_FAILURE);
}
-/** obtain language from environment
+/**
+ * obtain language from environment
*
* start with GNU extension LANGUAGE environment variable and then try
* POSIX variables LC_ALL, LC_MESSAGES and LANG
@@ -107,7 +108,8 @@ static const char *get_language(void)
}
-/** provide a string vector of languages in preference order
+/**
+ * provide a string vector of languages in preference order
*
* environment variables are processed to aquire a colon separated
* list of languages which are converted into a string vector. The
@@ -174,7 +176,16 @@ static const char * const *get_languagev(void)
return &langv[0];
}
-/* Stolen from gtk/gui.c */
+/**
+ * Create an array of valid paths to search for resources.
+ *
+ * The idea is that all the complex path computation to find resources
+ * is performed here, once, rather than every time a resource is
+ * searched for.
+ *
+ * \param resource_path A shell style colon separated path list
+ * \return A string vector of valid paths where resources can be found
+ */
static char **
nsmonkey_init_resource(const char *resource_path)
{