Compare commits

...

3 Commits

Author SHA1 Message Date
Aryadev Chavali
fda4a63732 main: Fix comments referencing main.cpp 2026-01-24 03:06:37 +00:00
Aryadev Chavali
64fe3fc112 lib|parser: Fix references to headers 2026-01-24 03:06:19 +00:00
Aryadev Chavali
76872179f9 *: Split off headers into their own folder
Main reason is so we don't have that stupid arl prefix directory in
our source code.  Now our source code is flat, and we can still
reference headers by linking from root.
2026-01-24 03:02:54 +00:00
11 changed files with 6 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ UNITS=main lib/vec lib/sv parser/ast parser/parser
OBJECTS:=$(patsubst %,$(DIST)/%.o, $(UNITS)) OBJECTS:=$(patsubst %,$(DIST)/%.o, $(UNITS))
LDFLAGS= LDFLAGS=
GFLAGS=-Wall -Wextra -Wpedantic -std=c23 -I./src/ GFLAGS=-Wall -Wextra -Wpedantic -std=c23 -I./include/
DFLAGS=-ggdb -fsanitize=address -fsanitize=undefined DFLAGS=-ggdb -fsanitize=address -fsanitize=undefined
RFLAGS=-O3 RFLAGS=-O3
@@ -26,7 +26,7 @@ DEPDIR=$(DIST)/deps
$(OUT): $(OBJECTS) | $(DIST) $(OUT): $(OBJECTS) | $(DIST)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
$(DIST)/%.o: src/arl/%.c | $(DIST) $(DEPDIR) $(DIST)/%.o: src/%.c | $(DIST) $(DEPDIR)
$(CC) $(CFLAGS) $(DEPFLAGS) $(DEPDIR)/$*.d -c -o $@ $< $(CC) $(CFLAGS) $(DEPFLAGS) $(DEPDIR)/$*.d -c -o $@ $<
$(DIST): $(DIST):

View File

@@ -2,7 +2,7 @@
* Created: 2026-01-22 * Created: 2026-01-22
* Author: Aryadev Chavali * Author: Aryadev Chavali
* License: See end of file * License: See end of file
* Commentary: See /include/sv.h * Commentary: See /include/arl/lib/sv.h
*/ */
#include <string.h> #include <string.h>

View File

@@ -1,4 +1,4 @@
/* main.cpp: /* main.c:
* Created: 2026-01-22 * Created: 2026-01-22
* Author: Aryadev Chavali * Author: Aryadev Chavali
* License: See end of file * License: See end of file

View File

@@ -2,7 +2,7 @@
* Created: 2026-01-22 * Created: 2026-01-22
* Author: Aryadev Chavali * Author: Aryadev Chavali
* License: See end of file * License: See end of file
* Commentary: See ast.h. * Commentary: See /include/arl/parser/ast.h.
*/ */
#include <arl/lib/base.h> #include <arl/lib/base.h>

View File

@@ -2,7 +2,7 @@
* Created: 2026-01-22 * Created: 2026-01-22
* Author: Aryadev Chavali * Author: Aryadev Chavali
* License: See end of file * License: See end of file
* Commentary: See parser.h * Commentary: See /include/arl/parser/parser.h
*/ */
#include <ctype.h> #include <ctype.h>