From 3fe4b7011281af9bd458434057199f252c798224 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Wed, 21 Sep 2016 14:58:49 -0500 Subject: [PATCH] error work --- H/Yap.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/H/Yap.h b/H/Yap.h index f603243c3..b612399ac 100755 --- a/H/Yap.h +++ b/H/Yap.h @@ -236,7 +236,8 @@ INLINE_ONLY inline EXTERN size_t strnlen(const char *s, size_t maxlen) { #if !defined(IN_SECOND_QUADRANT) #if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || \ - defined(mips) || defined(__mips64) || defined(__aarch64__) || (__DragonFly__) + defined(mips) || defined(__mips64) || defined(__aarch64__) || \ + (__DragonFly__) #if defined(YAPOR) && defined(__alpha) #define MMAP_ADDR 0x40000000 @@ -253,17 +254,15 @@ INLINE_ONLY inline EXTERN size_t strnlen(const char *s, size_t maxlen) { #endif /* YAPOR && __alpha */ #elif __svr4__ || defined(__SVR4) #define MMAP_ADDR 0x02000000 -#endif /* __linux__ || __FreeBSD__ || __NetBSD__ || mips || __mips64 || __APPLE__ || \ +#endif /* __linux__ || __FreeBSD__ || __NetBSD__ || mips || __mips64 || \ + __APPLE__ || \ __DragonFly__ */ #endif /* !IN_SECOND_QUADRANT */ /* #define RANDOMIZE_START_ADDRESS 1 */ - - extern size_t Yap_page_size; - #ifdef USE_SYSTEM_MALLOC #define HEAP_INIT_BASE 0L #define AtomBase NULL @@ -463,8 +462,6 @@ extern ADDR Yap_HeapBase; /* This is ok for Linux, should be ok for everyone */ #define YAP_FILENAME_MAX 1024 -#define MAX_ERROR_MSG_SIZE YAP_FILENAME_MAX - /************************************************************************************************* Debugging Support *************************************************************************************************/ @@ -504,7 +501,7 @@ extern int64_t Yap_AssetSize(const char *name); typedef enum e_restore_t { FAIL_RESTORE = 0, - DO_EVERYTHING = 1, + DO_EVERYTHING = 1, DO_ONLY_CODE = 2, YAP_BOOT_FROM_PROLOG = 4 } restore_t;