Compare commits
2 Commits
557a4affa6
...
6862af407e
| Author | SHA1 | Date | |
|---|---|---|---|
|
6862af407e
|
|||
|
6a8bb3f5d4
|
4
Makefile
4
Makefile
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user