mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 03:51:14 -03:00
Minor edits, additional comments, etc.
darcs-hash:20060219015438-ac50b-b6346876460912f3c27d1bb4287aeab962260ab6.gz
This commit is contained in:
11
parse_util.c
11
parse_util.c
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user