jovanbulck / jsh

A basic UNIX shell implementation in C
GNU General Public License v3.0
31 stars 10 forks source link

Implement aliases using a hashmap #43

Open jovanbulck opened 10 years ago

jovanbulck commented 10 years ago

For elegance and efficiency, we should probably change the datastructure for aliases from a linked list of structs to a hashmap<char key, char value>

As far as I know, there's no native support in libc for hashmaps. We should probably look to an optimized GPL licensed hashmap implementation and include it in the project...

jovanbulck commented 10 years ago

Some candidates: