46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
#ifndef __MYDDAS_H__
|
|
#define __MYDDAS_H__
|
|
|
|
#include "config.h"
|
|
#include <stdio.h>
|
|
|
|
#include "myddas_types.h"
|
|
|
|
/* Passar para o myddas_statictics.h ???????? */
|
|
#ifdef MYDDAS_STATS
|
|
#include <time.h>
|
|
#include <sys/time.h>
|
|
#endif
|
|
|
|
typedef struct myddas_global *MYDDAS_GLOBAL;
|
|
#include "myddas_util.h"
|
|
|
|
|
|
//extern void Yap_InitMYDDAS_SQLITE3Preds(void);
|
|
//extern void Yap_InitBackMYDDAS_SQLITE3Preds(void);
|
|
|
|
#ifdef MYDDAS_STATS
|
|
typedef struct myddas_stats_time_struct *MYDDAS_STATS_TIME;
|
|
typedef struct myddas_global_stats *MYDDAS_GLOBAL_STATS;
|
|
typedef struct myddas_stats_struct *MYDDAS_STATS_STRUCT;
|
|
#else
|
|
typedef void *MYDDAS_STATS_TIME;
|
|
#endif
|
|
|
|
#ifdef DEBUG
|
|
#define MYDDAS_MEMORY_MALLOC_NR(NUMBER) \
|
|
NUMBER = Yap_REGS.MYDDAS_GLOBAL_POINTER->malloc_called;
|
|
#define MYDDAS_MEMORY_MALLOC_SIZE(NUMBER) \
|
|
NUMBER = Yap_REGS.MYDDAS_GLOBAL_POINTER->memory_allocated;
|
|
#define MYDDAS_MEMORY_FREE_NR(NUMBER) \
|
|
NUMBER = Yap_REGS.MYDDAS_GLOBAL_POINTER->free_called;
|
|
#define MYDDAS_MEMORY_FREE_SIZE(NUMBER) \
|
|
NUMBER = Yap_REGS.MYDDAS_GLOBAL_POINTER->memory_freed;
|
|
#endif
|
|
|
|
#include "myddas_structs.h"
|
|
#include "MyddasProto.h"
|
|
|
|
|
|
#endif /*__MYDDAS_H__*/
|