Cleanup common.h

Remove a bunch of headers, simplify lots of code, migrate it into .cpp files.

Debug build time improves by ~3 seconds on my Mac.
This commit is contained in:
ridiculousfish
2019-02-03 16:06:10 -08:00
parent 6f682c8405
commit d3fa58d621
16 changed files with 121 additions and 191 deletions

View File

@@ -442,7 +442,7 @@ int main(int argc, char **argv) {
proc_fire_event(L"PROCESS_EXIT", EVENT_EXIT, getpid(), exit_status);
// Trigger any exit handlers.
wcstring_list_t event_args = {to_string<int>(exit_status)};
wcstring_list_t event_args = {to_string(exit_status)};
event_fire_generic(L"fish_exit", &event_args);
restore_term_mode();