Mega change to the LCDd's header files:
1. Use <stdbool.h> if it is available but keep a compatibility shim in
shared/defines.h in case it is not.
2. Unbreak the circular header dependencies (mostly):
2a. client.c and client.h may NOT depend on 'struct Menu'. Use a void pointer
and casts instead.
2b. Separate the data type definitions in client.h and screen.h from
function prototypes which may require other data structures. This makes
header dependencies much more easy to maintain. Usually the data types
should have been moved to their own files but I (mmdolze) chose to
separate them using different header guards.
2c. Remove many now unused header includes.
Apply (old BSD-) style on menuscreens.c.
This commit is contained in:
+1
-3
@@ -12,8 +12,6 @@
|
||||
#ifndef RENDER_H
|
||||
#define RENDER_H
|
||||
|
||||
#include "screen.h"
|
||||
|
||||
#define HEARTBEAT_OFF 0
|
||||
#define HEARTBEAT_ON 1
|
||||
#define HEARTBEAT_OPEN 2
|
||||
@@ -31,7 +29,7 @@
|
||||
#define CURSOR_UNDER 5
|
||||
|
||||
#define TITLESPEED_NO 0 /* needs to be (TITLESPEED_MIN - 1) */
|
||||
#define TITLESPEED_MIN 1
|
||||
#define TITLESPEED_MIN 1
|
||||
#define TITLESPEED_MAX 10
|
||||
|
||||
extern int heartbeat;
|
||||
|
||||
Reference in New Issue
Block a user