This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/myddas/myddas.h

43 lines
1.2 KiB
C
Raw Normal View History

2019-01-09 09:32:09 +00:00
#ifndef __MYDDAS_H__
#define __MYDDAS_H__
2018-11-04 10:55:58 +00:00
#include "YapConfig.h"
#include <stdio.h>
#include "myddas_types.h"
/* Passar para o myddas_statictics.h ???????? */
#ifdef MYDDAS_STATS
#include <sys/time.h>
2018-11-04 10:55:58 +00:00
#include <time.h>
#endif
typedef struct myddas_global *MYDDAS_GLOBAL;
#include "myddas_util.h"
#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;
2015-02-04 10:53:04 +00:00
#else
typedef void *MYDDAS_STATS_TIME;
#endif
#ifdef DEBUG
2018-11-04 10:55:58 +00:00
#define MYDDAS_MEMORY_MALLOC_NR(NUMBER) \
NUMBER = Yap_REGS.MYDDAS_GLOBAL_POINTER->malloc_called;
2018-11-04 10:55:58 +00:00
#define MYDDAS_MEMORY_MALLOC_SIZE(NUMBER) \
NUMBER = Yap_REGS.MYDDAS_GLOBAL_POINTER->memory_allocated;
2018-11-04 10:55:58 +00:00
#define MYDDAS_MEMORY_FREE_NR(NUMBER) \
NUMBER = Yap_REGS.MYDDAS_GLOBAL_POINTER->free_called;
2018-11-04 10:55:58 +00:00
#define MYDDAS_MEMORY_FREE_SIZE(NUMBER) \
NUMBER = Yap_REGS.MYDDAS_GLOBAL_POINTER->memory_freed;
#endif
2014-01-24 19:59:42 +00:00
#include "MyddasProto.h"
2018-11-04 10:55:58 +00:00
#include "myddas_structs.h"
#endif /*__MYDDAS_H__*/