[gjs] jsapi-util: Move strip_unix_shebang doc comment to .cpp file



commit f6a6c40513c589de7a3bd9656d7fd8c47829176d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Jan 15 10:45:43 2014 -0500

    jsapi-util: Move strip_unix_shebang doc comment to .cpp file

 gjs/jsapi-util.cpp |   16 ++++++++++++++++
 gjs/jsapi-util.h   |   16 ----------------
 2 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/gjs/jsapi-util.cpp b/gjs/jsapi-util.cpp
index 7e1dbda..3087937 100644
--- a/gjs/jsapi-util.cpp
+++ b/gjs/jsapi-util.cpp
@@ -1167,6 +1167,22 @@ gjs_unblock_gc(void)
     g_mutex_unlock(&gc_lock);
 }
 
+/**
+ * gjs_strip_unix_shebang:
+ *
+ * @script: (in): A pointer to a JS script
+ * @script_len: (inout): A pointer to the script length. The
+ * pointer will be modified if a shebang is stripped.
+ * @new_start_line_number: (out) (allow-none): A pointer to
+ * write the start-line number to account for the offset
+ * as a result of stripping the shebang.
+ *
+ * Returns a pointer to the beginning of a script with unix
+ * shebangs removed. The outparams are useful to know the
+ * new length of the script and on what line of the
+ * original script we're executing from, so that any relevant
+ * offsets can be applied to the results of an execution pass.
+ */
 const char *
 gjs_strip_unix_shebang(const char  *script,
                        gssize      *script_len,
diff --git a/gjs/jsapi-util.h b/gjs/jsapi-util.h
index 15fdd2d..053bb0d 100644
--- a/gjs/jsapi-util.h
+++ b/gjs/jsapi-util.h
@@ -393,22 +393,6 @@ JSBool            gjs_eval_with_scope        (JSContext    *context,
 jsid              gjs_context_get_const_string (JSContext       *context,
                                                 GjsConstString   string);
 
-/**
- * gjs_strip_unix_shebang:
- *
- * @script: (in): A pointer to a JS script
- * @script_len: (inout): A pointer to the script length. The
- * pointer will be modified if a shebang is stripped.
- * @new_start_line_number: (out) (allow-none): A pointer to
- * write the start-line number to account for the offset
- * as a result of stripping the shebang.
- *
- * Returns a pointer to the beginning of a script with unix
- * shebangs removed. The outparams are useful to know the
- * new length of the script and on what line of the
- * original script we're executing from, so that any relevant
- * offsets can be applied to the results of an execution pass.
- */
 const char * gjs_strip_unix_shebang(const char *script,
                                     gssize     *script_len,
                                     int        *new_start_line_number);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]