summaryrefslogtreecommitdiff
path: root/usr.bin/mg
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2007-02-08 21:40:04 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2007-02-08 21:40:04 +0000
commitaf0bd3a8e6d1a87d11f2362db834b3a43422dca1 (patch)
treec175fe3521e6064e4d10824f575120d8973d2923 /usr.bin/mg
parentaec6820f764bce0a08e7fbaae18c355397be975d (diff)
comment a function
Diffstat (limited to 'usr.bin/mg')
-rw-r--r--usr.bin/mg/autoexec.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.bin/mg/autoexec.c b/usr.bin/mg/autoexec.c
index e481021989e..ad3b08d8560 100644
--- a/usr.bin/mg/autoexec.c
+++ b/usr.bin/mg/autoexec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: autoexec.c,v 1.13 2006/12/20 21:31:45 deraadt Exp $ */
+/* $OpenBSD: autoexec.c,v 1.14 2007/02/08 21:40:03 kjell Exp $ */
/* this file is in the public domain */
/* Author: Vincent Labrecque <vincent@openbsd.org> April 2002 */
@@ -82,6 +82,12 @@ add_autoexec(const char *pattern, const char *func)
return (TRUE);
}
+/*
+ * Register an auto-execute hook; that is, specify a filename pattern
+ * (conforming to the shell's filename globbing rules) and an associated
+ * function to execute when a file matching the specified pattern
+ * is read into a buffer.
+*/
/* ARGSUSED */
int
auto_execute(int f, int n)