summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2010-07-30 19:53:56 +0100
committerReuben Thomas <rrt@sc3d.org>2010-07-30 19:53:56 +0100
commit6139778cc0579f2f64dc0a1e67dc6868a5040364 (patch)
tree8410714f565e3421aed47e2fbcef76c1e81d76c4
parentf1a6c351486840b4b4a886be51d1b4eb03888f71 (diff)
downloadlrexlib-6139778cc0579f2f64dc0a1e67dc6868a5040364.tar.gz
Update Lua function prototypes in comments.
-rwxr-xr-xsrc/algo.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/algo.h b/src/algo.h
index 69806b3..38ff714 100755
--- a/src/algo.h
+++ b/src/algo.h
@@ -127,7 +127,7 @@ static void checkarg_new (lua_State *L, TArgComp *argC) {
}
-/* function gsub (s, patt, f, [n], [cf], [ef], [lo]) */
+/* function gsub (s, patt, f, [n], [cf], [ef], [larg...]) */
static void checkarg_gsub (lua_State *L, TArgComp *argC, TArgExec *argE) {
argE->text = luaL_checklstring (L, 1, &argE->textlen);
check_pattern (L, 2, argC);
@@ -148,8 +148,8 @@ static void checkarg_gsub (lua_State *L, TArgComp *argC, TArgExec *argE) {
}
-/* function find (s, patt, [st], [cf], [ef], [lo]) */
-/* function match (s, patt, [st], [cf], [ef], [lo]) */
+/* function find (s, patt, [st], [cf], [ef], [larg...]) */
+/* function match (s, patt, [st], [cf], [ef], [larg...]) */
static void checkarg_find_func (lua_State *L, TArgComp *argC, TArgExec *argE) {
argE->text = luaL_checklstring (L, 1, &argE->textlen);
check_pattern (L, 2, argC);
@@ -162,8 +162,8 @@ static void checkarg_find_func (lua_State *L, TArgComp *argC, TArgExec *argE) {
}
-/* function gmatch (s, patt, [cf], [ef], [lo]) */
-/* function split (s, patt, [cf], [ef], [lo]) */
+/* function gmatch (s, patt, [cf], [ef], [larg...]) */
+/* function split (s, patt, [cf], [ef], [larg...]) */
static void checkarg_gmatch_split (lua_State *L, TArgComp *argC, TArgExec *argE) {
argE->text = luaL_checklstring (L, 1, &argE->textlen);
check_pattern (L, 2, argC);