Updated DUMB to move some macros for internal use only.

CQTexperiment
Christopher Snowhill 2017-09-18 18:05:38 -07:00
parent 0d904b16ae
commit d3ef15de82
4 changed files with 13 additions and 12 deletions

View File

@ -77,18 +77,6 @@
#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
#ifndef ASSERT

View File

@ -27,6 +27,17 @@
#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
{
struct DUH_SIGTYPE_DESC_LINK *next;

View File

@ -20,6 +20,7 @@
#include <stdlib.h>
#include "dumb.h"
#include "internal/dumb.h"

View File

@ -22,6 +22,7 @@
#include <math.h>
#include "dumb.h"
#include "internal/dumb.h"
#include "internal/it.h"