cmake & text support

This commit is contained in:
Vítor Santos Costa
2015-06-19 01:30:13 +01:00
parent 59de30d606
commit 1c06bfdc05
75 changed files with 1462 additions and 7041 deletions

View File

@@ -15,7 +15,7 @@
** Memory management **
************************************************************************/
extern int Yap_page_size;
extern size_t Yap_page_size;
#ifdef USE_PAGES_MALLOC
#include <sys/shm.h>
@@ -513,8 +513,8 @@ extern int Yap_page_size;
** Debug macros **
************************************************************************/
#define INFORMATION_MESSAGE(MESSAGE,ARGS...) \
Sfprintf(Serror, "[ " MESSAGE " ]\n", ##ARGS)
#define INFORMATION_MESSAGE(MESSAGE, ...) \
fprintf( stderr, "[ " MESSAGE " ]\n", __VA_ARGS__)
#ifdef YAPOR
#define ERROR_MESSAGE(MESSAGE) \
@@ -551,6 +551,6 @@ extern int Yap_page_size;
#define INFO_THREADS_MAIN_THREAD(MESSAGE, ARGS...) \
Sfprintf(Serror, "[ " MESSAGE " ]\n", ##ARGS)
#else
#define INFO_THREADS(MESG, ARGS...)
#define INFO_THREADS_MAIN_THREAD(MESSAGE, ARGS...)
#define INFO_THREADS(MESG, ...)
#define INFO_THREADS_MAIN_THREAD(MESSAGE, ...)
#endif /* OUTPUT_THREADS_TABLING */