Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf.git/shortlog/5e31f045a03753e2d65c3d65ef27d10919648eff
...commit 
http://git.netsurf-browser.org/netsurf.git/commit/5e31f045a03753e2d65c3d65ef27d10919648eff
...tree 
http://git.netsurf-browser.org/netsurf.git/tree/5e31f045a03753e2d65c3d65ef27d10919648eff

The branch, master has been updated
       via  5e31f045a03753e2d65c3d65ef27d10919648eff (commit)
      from  e9f29a1002046992b347b9c1adfe07677d12e6fb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf.git/commit/?id=5e31f045a03753e2d65c3d65ef27d10919648eff
commit 5e31f045a03753e2d65c3d65ef27d10919648eff
Author: Vincent Sanders <[email protected]>
Commit: Vincent Sanders <[email protected]>

    Improve some documentation comments

diff --git a/frontends/monkey/main.c b/frontends/monkey/main.c
index bae8150..463f0be 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)
 {
diff --git a/include/netsurf/fetch.h b/include/netsurf/fetch.h
index 6e6d653..30b2048 100644
--- a/include/netsurf/fetch.h
+++ b/include/netsurf/fetch.h
@@ -49,15 +49,15 @@ struct gui_fetch_table {
        /**
         * Translate resource to full url.
         *
-        * @note Only used in resource fetcher
+        * @note Only used in resource protocol fetcher
         *
-        * Transforms a resource: path into a full URL. The returned URL
+        * Transforms a resource protocol path into a full URL. The returned URL
         * is used as the target for a redirect. The caller takes ownership of
         * the returned nsurl including unrefing it when finished with it.
         *
         * \param path The path of the resource to locate.
-        * \return A string containing the full URL of the target object or
-        *         NULL if no suitable resource can be found.
+        * \return A netsurf url object containing the full URL of the resource
+        *         path or NULL if a suitable resource URL can not be generated.
         */
        struct nsurl* (*get_resource_url)(const char *path);
 


-----------------------------------------------------------------------

Summary of changes:
 frontends/monkey/main.c |   17 ++++++++++++++---
 include/netsurf/fetch.h |    8 ++++----
 2 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/frontends/monkey/main.c b/frontends/monkey/main.c
index bae8150..463f0be 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)
 {
diff --git a/include/netsurf/fetch.h b/include/netsurf/fetch.h
index 6e6d653..30b2048 100644
--- a/include/netsurf/fetch.h
+++ b/include/netsurf/fetch.h
@@ -49,15 +49,15 @@ struct gui_fetch_table {
        /**
         * Translate resource to full url.
         *
-        * @note Only used in resource fetcher
+        * @note Only used in resource protocol fetcher
         *
-        * Transforms a resource: path into a full URL. The returned URL
+        * Transforms a resource protocol path into a full URL. The returned URL
         * is used as the target for a redirect. The caller takes ownership of
         * the returned nsurl including unrefing it when finished with it.
         *
         * \param path The path of the resource to locate.
-        * \return A string containing the full URL of the target object or
-        *         NULL if no suitable resource can be found.
+        * \return A netsurf url object containing the full URL of the resource
+        *         path or NULL if a suitable resource URL can not be generated.
         */
        struct nsurl* (*get_resource_url)(const char *path);
 


-- 
NetSurf Browser
_______________________________________________
netsurf-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to