use stdbool for true/false
This commit is contained in:
@@ -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