Browse Source

Updated DUMB to move some macros for internal use only.

master
Christopher Snowhill 2 years ago
parent
commit
d3ef15de82
4 changed files with 13 additions and 12 deletions
  1. +0
    -12
      Frameworks/Dumb/dumb/include/dumb.h
  2. +11
    -0
      Frameworks/Dumb/dumb/include/internal/dumb.h
  3. +1
    -0
      Frameworks/Dumb/dumb/src/core/dumbfile.c
  4. +1
    -0
      Frameworks/Dumb/dumb/src/it/readmod.c

+ 0
- 12
Frameworks/Dumb/dumb/include/dumb.h 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


+ 11
- 0
Frameworks/Dumb/dumb/include/internal/dumb.h 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;


+ 1
- 0
Frameworks/Dumb/dumb/src/core/dumbfile.c View File

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


+ 1
- 0
Frameworks/Dumb/dumb/src/it/readmod.c View File

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


Loading…
Cancel
Save