Minor edits, additional comments, etc.

darcs-hash:20060219015438-ac50b-b6346876460912f3c27d1bb4287aeab962260ab6.gz
This commit is contained in:
axel
2006-02-19 11:54:38 +10:00
parent c4e7a7992f
commit 845e15876c
8 changed files with 111 additions and 47 deletions

View File

@@ -1,6 +1,7 @@
/** \file parse_util.c
Various utility functions for parsing a command
Various mostly unrelated utility functions related to parsing,
loading and evaluating fish code.
*/
#include "config.h"
@@ -438,6 +439,9 @@ static void clear_hash_value( const void *key, const void *data )
free( (void *)data );
}
/**
Part of the autoloader cleanup
*/
static void clear_loaded_entry( const void *key, const void *data )
{
hash_table_t *loaded = (hash_table_t *)data;
@@ -448,6 +452,11 @@ static void clear_loaded_entry( const void *key, const void *data )
free( (void *)key );
}
/**
The autoloader cleanup function. It is run on shutdown and frees
any memory used by the autoloader code to keep track of loaded
files.
*/
static void parse_util_destroy()
{
if( all_loaded )