Skip to content

Commit

Permalink
style: organize repo to merge in to the main
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoDornelles committed Oct 10, 2024
1 parent 373ae96 commit d1219d1
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
-
uses: actions/checkout@v2
-
run: clang-format --dry-run --Werror --verbose src/gly_type_render.h
run: clang-format --dry-run --Werror --verbose gly_type_render.h
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
*.out
*.exe
ascii
segments
html/
latex/
build/*
!build/.gitkeep
DS_Store
Thumbs.db
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
ascii:
${CC} tools/ascii.c -Isrc -o build/ascii
all: segments ascii
@

segments:
${CC} tools/segments.c -Isrc -o build/segments
ascii: tools/ascii.c gly_type_render.h
$(CC) -I. -o $@ tools/ascii.c

segments: tools/segments.c gly_type_render.h
$(CC) -I. -o $@ tools/segments.c

clear:
rm ascii segments
Empty file removed build/.gitkeep
Empty file.
8 changes: 4 additions & 4 deletions src/gly_type_render.h → gly_type_render.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ gly_type_render(unsigned char x,

sp2 = s + 2;
sm1 = s - 1;
x1 = 0;
y1 = 0;
y2 = sm1 / 2;
y3 = sm1;
x1 = x;
y1 = y;
y2 = y1 + (sm1 / 2);
y3 = y1 + sm1;

while (*t) {
c = (*t | 0x20) - 'a';
Expand Down

0 comments on commit d1219d1

Please sign in to comment.