diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2020-06-18 19:45:40 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2020-06-18 19:45:40 -0700 |
commit | 425ef692da7e74112f88f0b368f3286dba84f846 (patch) | |
tree | d45729e90010e8d8c539031c3b72165f6884575d /sys/cmd/dvtm/dvtm-editor.c | |
parent | 0522b4bf4e125b7ceb67f7177db692aed3a0ebf9 (diff) |
feat: working parser for rc shell language
Diffstat (limited to 'sys/cmd/dvtm/dvtm-editor.c')
-rw-r--r-- | sys/cmd/dvtm/dvtm-editor.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/cmd/dvtm/dvtm-editor.c b/sys/cmd/dvtm/dvtm-editor.c index 45a61b2..e8685e9 100644 --- a/sys/cmd/dvtm/dvtm-editor.c +++ b/sys/cmd/dvtm/dvtm-editor.c @@ -26,7 +26,9 @@ #include <string.h> #include <unistd.h> -static void error(const char *msg, ...) { +static +void +error(const char *msg, ...) { va_list ap; va_start(ap, msg); vfprintf(stderr, msg, ap); @@ -36,7 +38,8 @@ static void error(const char *msg, ...) { fprintf(stderr, "\n"); } -int main(int argc, char *argv[]) +int +main(int argc, char *argv[]) { int exit_status = EXIT_FAILURE, tmp_write = -1; |