Compare commits

..

2 Commits

Author SHA1 Message Date
6862af407e add uninstall task 2025-09-18 01:59:12 +02:00
6a8bb3f5d4 use stdbool for true/false 2025-09-18 01:59:04 +02:00
3 changed files with 4 additions and 3 deletions

View File

@@ -12,7 +12,6 @@ main.o:
clean: clean:
rm -f *.o rm -f *.o
rm -f todd rm -f todd
rm /usr/local/bin/todd || true
todd: todo.o main.o todd: todo.o main.o
$(CC) $(CFLAGS) todo.o main.o -lncurses -o todd $(CC) $(CFLAGS) todo.o main.o -lncurses -o todd
@@ -21,3 +20,6 @@ all: todd
install: todd install: todd
cp todd /usr/local/bin/todd cp todd /usr/local/bin/todd
uninstall:
rm /usr/local/bin/todd || true

View File

@@ -1,6 +1,7 @@
#include "todo.h" #include "todo.h"
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdbool.h>
#include <string.h> #include <string.h>
// Memory management // Memory management

View File

@@ -2,8 +2,6 @@
#define TODO_H #define TODO_H
#define TODO_MAX_TITLE_LENGTH 255 #define TODO_MAX_TITLE_LENGTH 255
#define true 1
#define false 0
typedef unsigned char bool_t; typedef unsigned char bool_t;
typedef struct { typedef struct {