This commit is contained in:
2025-10-23 20:48:44 -04:00
parent 122ce49d23
commit 8da521f782
8 changed files with 29 additions and 25 deletions

View File

@@ -6,7 +6,7 @@ OBJS := $(patsubst src/%.c,build/obj/%.o,$(SRCS))
BIN := bin/$(PACKAGE) BIN := bin/$(PACKAGE)
COMMIT := $(shell git rev-list --count --all) COMMIT := $(shell git rev-list --count --all)
FLAGS := -I. -DCOMMIT=$(COMMIT) FLAGS := -I. -DCOMMIT=$(COMMIT) -DSHOW_TRACE --std=c23
VERSION := $(shell git describe --tags --always --dirty) VERSION := $(shell git describe --tags --always --dirty)
TARBALL := $(PACKAGE)-$(VERSION).tar.gz TARBALL := $(PACKAGE)-$(VERSION).tar.gz

View File

@@ -1,8 +0,0 @@
GCK yait - TODO
Todo:
* Use the /*: something()@does something :*/ syntax for detecting entries
* Output html
end of file TODO

View File

@@ -1,5 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title>DOCUMENT</title>
</head>

17
build-aux/test.c Normal file
View File

@@ -0,0 +1,17 @@
#include <stdio.h>
/*-
int foo(int x)
Addes 34 to the provided integer x.
-*/
int foo(int x)
{
return x + 34;
}
int main()
{
printf("foo: %d\n", foo(35));
return 0;
}

2
gcklib

Submodule gcklib updated: c47af845bd...8cc003030c

View File

@@ -44,8 +44,6 @@
#include "err.h" #include "err.h"
#include "proginfo.h"
#define RESET "\x1B[0m" #define RESET "\x1B[0m"
#define ERROR "\x1B[1;91m" #define ERROR "\x1B[1;91m"
#define WARN "\x1B[1;95m" #define WARN "\x1B[1;95m"

View File

@@ -55,11 +55,15 @@ void hintfa(int code);
#if defined(SHOW_TRACE) #if defined(SHOW_TRACE)
#define errorf(fmt, ...) \ #define errorf(fmt, ...) \
do { \
errorf("%s:%s:%d: " fmt, __FILE__, __func__, \ errorf("%s:%s:%d: " fmt, __FILE__, __func__, \
__LINE__ __VA_OPT__(, ) __VA_ARGS__) __LINE__ __VA_OPT__(, ) __VA_ARGS__); \
} while (0)
#define fatalf(fmt, ...) \ #define fatalf(fmt, ...) \
do { \
fatalf("%s:%s:%d: " fmt, __FILE__, __func__, \ fatalf("%s:%s:%d: " fmt, __FILE__, __func__, \
__LINE__ __VA_OPT__(, ) __VA_ARGS__) __LINE__ __VA_OPT__(, ) __VA_ARGS__); \
} while (0)
#endif #endif
#endif #endif

View File

@@ -56,8 +56,6 @@
#include <stdbool.h> #include <stdbool.h>
#include <time.h> #include <time.h>
#define SHOW_TRACE
#include "licence.h" #include "licence.h"
#include "../lib/err.h" #include "../lib/err.h"
#include "../lib/fs.h" #include "../lib/fs.h"