minor code cleanup

This commit is contained in:
Maxime Coste 2014-01-12 21:25:21 +00:00
parent 737837216b
commit 219f4c9c19

View File

@ -57,8 +57,10 @@ String runtime_directory()
void register_env_vars()
{
struct EnvVarDesc { const char* name; String (*func)(const String&, const Context&); };
static const EnvVarDesc env_vars[] = { {
static const struct {
const char* name;
String (*func)(const String&, const Context&);
} env_vars[] = { {
"bufname",
[](const String& name, const Context& context)
{ return context.buffer().display_name(); }