aboutsummaryrefslogtreecommitdiff
path: root/src/unalf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unalf.c')
-rw-r--r--src/unalf.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/unalf.c b/src/unalf.c
index 7b29240..ee235b1 100644
--- a/src/unalf.c
+++ b/src/unalf.c
@@ -1,29 +1,13 @@
-#include <stdio.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <errno.h>
-#include <sys/stat.h>
-#include <f65.h>
#include "unalf.h"
FILE *in_file, *out_file;
-char *in_filename, *self;
+char *in_filename;
opts_t opts;
const char *exclude_globs[MAX_EXCLUDES];
int exclude_count;
char * const *include_globs;
static void create_outdir(void);
-static void set_self(char *argv0) {
- char *p;
-
- self = argv0;
- p = strrchr(self, '/');
- if(!p) p = strrchr(self, '\\'); // windows exe needs this
- if(p) self = p + 1;
-}
-
/* like "mkdir -p" (no error if dir already exists),
followed by "cd" (which will error if the existing
"directory" turns out to be a file or broken symlink */