slackline: do not include slackline.h in slackline_internals.h - lchat - A line oriented chat front end for ii.
(HTM) git clone git://git.suckless.org/lchat
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) commit f730489e0a632bd738ade1e91c85c6ffdad21ba8
(DIR) parent 6d306ad60a3ed0d9e721a43fb121804974a41b6c
(HTM) Author: Tom Schwindl <schwindl@posteo.de>
Date: Wed, 11 Jan 2023 09:17:47 +0100
slackline: do not include slackline.h in slackline_internals.h
Although it's likely that slackline.h will be included alongside
slackline_internals.h, including headers in headers often results in confusion.
Diffstat:
M slackline_emacs.c | 1 +
M slackline_internals.h | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/slackline_emacs.c b/slackline_emacs.c
@@ -3,6 +3,7 @@
#include <stddef.h>
#include <stdlib.h>
+#include "slackline.h"
#include "slackline_internals.h"
void
(DIR) diff --git a/slackline_internals.h b/slackline_internals.h
@@ -1,7 +1,7 @@
#ifndef SLACKLINE_INTERNALS_H
#define SLACKLINE_INTERNALS_H
-#include "slackline.h"
+struct slackline;
enum direction {LEFT, RIGHT, HOME, END};