Skip to content

Commit dd5236b

Browse files
committed
Move jimp.c to examples
1 parent f9518dd commit dd5236b

File tree

12 files changed

+11
-88
lines changed

12 files changed

+11
-88
lines changed

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
CFLAGS=-Wall -Wextra -Wswitch-enum -ggdb
22

33
.PHONY: all
4-
all: examples test jimp
4+
all: examples test
55

66
test: test.c jim.h
77
$(CC) $(CFLAGS) -o test test.c
88

9-
jimp: jimp.c nob.h
10-
$(CC) $(CFLAGS) -o jimp jimp.c
11-
129
.PHONY: examples
1310
examples:
1411
$(MAKE) -C examples/

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,3 +114,5 @@ $ ./test record
114114

115115
1. Does not depends on libc. Could be theoretically used in embedded, but I know nothing about embedded, so maybe not.
116116
2. `jim_float()` is quite likely very stupid and imprecise
117+
118+
<!-- TODO: document jimp.h here -->

empty.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
01_from_readme
22
02_binary_tree
3+
03_parsing_database

jimp.c renamed to examples/03_parsing_database.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#include <stdbool.h>
33
#define NOB_IMPLEMENTATION
44
#define NOB_STRIP_PREFIX
5-
#include "nob.h"
5+
#include "../thirdparty/nob.h"
66
#define JIMP_IMPLEMENTATION
7-
#include "jimp.h"
7+
#include "../jimp.h"
88

99
typedef struct {
1010
const char *name;

examples/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
CFLAGS=-Wall -Wextra -Wswitch-enum -std=c99 -pedantic -ggdb
1+
CFLAGS=-Wall -Wextra -Wswitch-enum -ggdb
22

33
.PHONY: all
4-
all: 01_from_readme 02_binary_tree
4+
all: 01_from_readme 02_binary_tree 03_parsing_database
55

66
01_from_readme: 01_from_readme.c ../jim.h
77
$(CC) $(CFLAGS) -o 01_from_readme 01_from_readme.c
88

99
02_binary_tree: 02_binary_tree.c fruits.h ../jim.h
1010
$(CC) $(CFLAGS) -o 02_binary_tree 02_binary_tree.c
11+
12+
03_parsing_database: 03_parsing_database.c ../jimp.h ../thirdparty/nob.h
13+
$(CC) $(CFLAGS) -o 03_parsing_database 03_parsing_database.c
File renamed without changes.

numbers.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

one.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

profile.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)