mv xbm/ ..

This commit is contained in:
Johan Malm 2020-08-31 20:01:08 +01:00
parent a042aad9f6
commit fd8d9a395d
16 changed files with 22 additions and 13 deletions

View file

@ -7,10 +7,10 @@ PROGS = xbm-tokenize xbm-parse
DEP_TOKENIZE = \
../../src/common/buf.c \
../../src/theme/xbm/tokenize.c
../../src/xbm/tokenize.c
DEP_PARSE = $(DEP_TOKENIZE) \
../../src/theme/xbm/parse.c \
../../src/xbm/parse.c \
../../src/common/grab-file.c
all: $(PROGS)

View file

@ -3,9 +3,11 @@
#include <string.h>
#include <cairo.h>
#include "theme/xbm/parse.h"
#include "xbm/parse.h"
#include "common/grab-file.h"
static float red[] = { 1.0, 0.0, 0.0, 1.0 };
int main(int argc, char **argv)
{
struct token *tokens;
@ -20,6 +22,7 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE);
tokens = tokenize_xbm(buffer);
free(buffer);
parse_set_color(red);
struct pixmap pixmap = parse_xbm_tokens(tokens);
free(tokens);

View file

@ -4,7 +4,7 @@
#include <string.h>
#include "common/buf.h"
#include "theme/xbm/tokenize.h"
#include "xbm/tokenize.h"
/* Read file into buffer, because it's easier to tokenize that way */
char *read_file(const char *filename)