aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_util.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-10-11 08:45:46 +1000
committerGravatar axel <axel@liljencrantz.se>2006-10-11 08:45:46 +1000
commitc4f3b5e9efcd9661ec0b5e156f5a74ef7bacbb17 (patch)
treece76abf3f170dd25c6047722e560c1f534367e91 /parse_util.h
parentf5916358e5ddf17dbed979edc824afaebe3091cc (diff)
Unload older autoloaded functions
darcs-hash:20061010224546-ac50b-7c3f38d32d4a413a9c0d8436bb13a5d65235f3a7.gz
Diffstat (limited to 'parse_util.h')
-rw-r--r--parse_util.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/parse_util.h b/parse_util.h
index c9115107..e2a5c1e6 100644
--- a/parse_util.h
+++ b/parse_util.h
@@ -98,14 +98,16 @@ int parse_util_lineno( const wchar_t *str, int len );
not load it multiple times unless it's timestamp changes or
parse_util_unload is called.
+ Autoloading one file may unload another.
+
\param cmd the filename to search for. The suffix '.fish' is always added to this name
\param path_var_name the environment variable giving the search path
- \param on_load a callback function to run if a suitable file is found, which has not already been run
+ \param unload a callback function to run if a suitable file is found, which has not already been run. unload will also be called for old files which are unloaded.
\param reload wheter to recheck file timestamps on already loaded files
*/
int parse_util_load( const wchar_t *cmd,
const wchar_t *path_var_name,
- void (*on_load)(const wchar_t *cmd),
+ void (*unload)(const wchar_t *cmd),
int reload );
/**