save
This commit is contained in:
2
Makefile
2
Makefile
@@ -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
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
GCK yait - TODO
|
|
||||||
|
|
||||||
Todo:
|
|
||||||
|
|
||||||
* Use the /*: something()@does something :*/ syntax for detecting entries
|
|
||||||
* Output html
|
|
||||||
|
|
||||||
end of file TODO
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>DOCUMENT</title>
|
|
||||||
</head>
|
|
||||||
17
build-aux/test.c
Normal file
17
build-aux/test.c
Normal 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
2
gcklib
Submodule gcklib updated: c47af845bd...8cc003030c
@@ -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"
|
||||||
|
|||||||
16
lib/err.h
16
lib/err.h
@@ -54,12 +54,16 @@ void warnfa(int code);
|
|||||||
void hintfa(int code);
|
void hintfa(int code);
|
||||||
|
|
||||||
#if defined(SHOW_TRACE)
|
#if defined(SHOW_TRACE)
|
||||||
#define errorf(fmt, ...) \
|
#define errorf(fmt, ...) \
|
||||||
errorf("%s:%s:%d: " fmt, __FILE__, __func__, \
|
do { \
|
||||||
__LINE__ __VA_OPT__(, ) __VA_ARGS__)
|
errorf("%s:%s:%d: " fmt, __FILE__, __func__, \
|
||||||
#define fatalf(fmt, ...) \
|
__LINE__ __VA_OPT__(, ) __VA_ARGS__); \
|
||||||
fatalf("%s:%s:%d: " fmt, __FILE__, __func__, \
|
} while (0)
|
||||||
__LINE__ __VA_OPT__(, ) __VA_ARGS__)
|
#define fatalf(fmt, ...) \
|
||||||
|
do { \
|
||||||
|
fatalf("%s:%s:%d: " fmt, __FILE__, __func__, \
|
||||||
|
__LINE__ __VA_OPT__(, ) __VA_ARGS__); \
|
||||||
|
} while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user