#include <string.h>
#include <unistd.h>
#include <glob.h>
+#include <libgen.h>
#include "lkc.h"
static int text_size, text_asize;
struct buffer {
- struct buffer *parent;
- YY_BUFFER_STATE state;
+ struct buffer *parent;
+ YY_BUFFER_STATE state;
};
struct buffer *current_buf;
p = strdup(current_file->name);
if (p) {
snprintf(path, sizeof(path), "%s/%s", dirname(p), name);
- fprintf(stderr, "TRY:%s\n", path);
err = glob(path, GLOB_ERR | GLOB_MARK, NULL, &gl);
free(p);
}