Updated DUMB to move some macros for internal use only.
parent
0d904b16ae
commit
d3ef15de82
|
@ -77,18 +77,6 @@
|
||||||
#define DUMB_DATE_STR DUMB_DAY_STR1 "." DUMB_MONTH_STR1 "." DUMB_YEAR_STR4
|
#define DUMB_DATE_STR DUMB_DAY_STR1 "." DUMB_MONTH_STR1 "." DUMB_YEAR_STR4
|
||||||
|
|
||||||
|
|
||||||
#undef MIN
|
|
||||||
#undef MAX
|
|
||||||
#undef MID
|
|
||||||
|
|
||||||
#define MIN(x,y) (((x) < (y)) ? (x) : (y))
|
|
||||||
#define MAX(x,y) (((x) > (y)) ? (x) : (y))
|
|
||||||
#define MID(x,y,z) MAX((x), MIN((y), (z)))
|
|
||||||
|
|
||||||
#undef ABS
|
|
||||||
#define ABS(x) (((x) >= 0) ? (x) : (-(x)))
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef DEBUGMODE
|
#ifdef DEBUGMODE
|
||||||
|
|
||||||
#ifndef ASSERT
|
#ifndef ASSERT
|
||||||
|
|
|
@ -27,6 +27,17 @@
|
||||||
#define INTERNAL_DUMB_H
|
#define INTERNAL_DUMB_H
|
||||||
|
|
||||||
|
|
||||||
|
#undef MIN
|
||||||
|
#undef MAX
|
||||||
|
#undef MID
|
||||||
|
|
||||||
|
#define MIN(x,y) (((x) < (y)) ? (x) : (y))
|
||||||
|
#define MAX(x,y) (((x) > (y)) ? (x) : (y))
|
||||||
|
#define MID(x,y,z) MAX((x), MIN((y), (z)))
|
||||||
|
|
||||||
|
#undef ABS
|
||||||
|
#define ABS(x) (((x) >= 0) ? (x) : (-(x)))
|
||||||
|
|
||||||
typedef struct DUH_SIGTYPE_DESC_LINK
|
typedef struct DUH_SIGTYPE_DESC_LINK
|
||||||
{
|
{
|
||||||
struct DUH_SIGTYPE_DESC_LINK *next;
|
struct DUH_SIGTYPE_DESC_LINK *next;
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "dumb.h"
|
#include "dumb.h"
|
||||||
|
#include "internal/dumb.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "dumb.h"
|
#include "dumb.h"
|
||||||
|
#include "internal/dumb.h"
|
||||||
#include "internal/it.h"
|
#include "internal/it.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue