prompt: refactor enum name utilities
commit74e4f6f8d9fc7a1eeeb9e180cc4a0e355998979c
authorJonas Fonseca <jonas.fonseca@gmail.com>
Fri, 14 Mar 2014 01:33:45 +0000 (13 21:33 -0400)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Fri, 14 Mar 2014 01:36:10 +0000 (13 21:36 -0400)
tree5a7f18d343dbb21b6ae84652d70fcc73c852b5a6
parent662493fb4b55759d0a30f8fe9b8cc9e0d2b671f4
prompt: refactor enum name utilities

This refactors enum_map_name() into enum_name_ncopy() which takes a
buffer to copy to. The old behavior is still available via
enum_name_static().
include/tig/types.h
src/types.c