diff options
author | Jari Aalto <jari.aalto@cante.net> | 1997-06-05 14:59:13 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:50 +0000 |
commit | d166f048818e10cf3799aa24a174fb22835f1acc (patch) | |
tree | 1ca27f9243900f8b236d0cde6a3862002aea9e19 /alias.c | |
parent | ccc6cda312fea9f0468ee65b8f368e9653e1380b (diff) | |
download | android_external_bash-d166f048818e10cf3799aa24a174fb22835f1acc.tar.gz android_external_bash-d166f048818e10cf3799aa24a174fb22835f1acc.tar.bz2 android_external_bash-d166f048818e10cf3799aa24a174fb22835f1acc.zip |
Imported from ../bash-2.01.tar.gz.
Diffstat (limited to 'alias.c')
-rw-r--r-- | alias.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -151,6 +151,7 @@ remove_alias (name) { free_alias_data (elt->data); free (elt->key); /* alias name */ + free (elt); /* XXX */ return (aliases->nentries); } return (-1); @@ -164,7 +165,7 @@ delete_all_aliases () return; flush_hash_table (aliases, free_alias_data); - free (aliases); + dispose_hash_table (aliases); aliases = (HASH_TABLE *)NULL; } @@ -247,6 +248,10 @@ alias_expand_word (s) return (r ? savestring (r->value) : (char *)NULL); } +/* Readline support functions -- expand all aliases in a line. */ + +#if defined (READLINE) + /* Return non-zero if CHARACTER is a member of the class of characters that are self-delimiting in the shell (this really means that these characters delimit tokens). */ @@ -529,4 +534,5 @@ alias_expand (string) command_word = 0; } } +#endif /* READLINE */ #endif /* ALIAS */ |