This makes it easier to move includes around in .c files.
Signed-off-by: NeilBrown <neil@brown.name>
* Declaration shared among core code, but not exported to
* modules.
*/
+#include "safe.h"
struct mark *doc_new_mark(struct pane *p safe, int view, struct pane *owner);
struct mark *safe point_dup(struct mark *p safe);
#ifndef __LIST_H__
#define __LIST_H__
+#include "safe.h"
+
#define ASSERT(x) do { if (!(x)) abort();} while (0)
/*Taken from various places in linux kernel */
#include <memory.h>
#include <endian.h>
-#ifndef safe
-#define safe
-#define safe_cast
-#endif
+#include "safe.h"
#define MD5_DIGEST_SIZE 16
#define MD5_HMAC_BLOCK_SIZE 64
#ifndef EDLIB_MISC
#define EDLIB_MISC
+#include <wchar.h>
#include "list.h"
#undef bool
* Copyright Neil Brown ©2015-2023 <neil@brown.name>
* May be distributed under terms of GPLv2 - see file:COPYING
*/
+
+#include <wchar.h>
+#include "safe.h"
+
struct match_state;
enum rxl_found {
RXL_NOMATCH, /* No match has been found at all */