mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
Move the MAX macro to a util.h so it becomes usable in other modules.
Suggested by: Max Okumoto <okumoto@ucsd.edu>
This commit is contained in:
parent
9477d73e32
commit
ae6bff540a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144386
@ -55,10 +55,6 @@ __FBSDID("$FreeBSD$");
|
||||
#include "sprite.h"
|
||||
#include "util.h"
|
||||
|
||||
#ifndef MAX
|
||||
#define MAX(a,b) ((a) > (b) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Returns the number of bytes in the buffer. Doesn't include the
|
||||
* null-terminating byte.
|
||||
|
@ -85,6 +85,10 @@ do { \
|
||||
#define ISDOT(c) ((c)[0] == '.' && (((c)[1] == '\0') || ((c)[1] == '/')))
|
||||
#define ISDOTDOT(c) ((c)[0] == '.' && ISDOT(&((c)[1])))
|
||||
|
||||
#ifndef MAX
|
||||
#define MAX(a, b) ((a) > (b) ? (a) : (b))
|
||||
#endif
|
||||
|
||||
void Debug(const char *, ...);
|
||||
void DebugM(const char *, ...);
|
||||
void Error(const char *, ...);
|
||||
|
Loading…
Reference in New Issue
Block a user