#include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
Go to the source code of this file.
◆ __FILE__
◆ __LINE__
◆ __P
◆ ALLOC
Value: do { \
if (((
X) = (T *)malloc(
sizeof(T))) ==
NULL) \
CODA_ASSERT(0); \
} while (0)
#define X(a)
Definition: rvm_logrecovr.c:1879
#define NULL
Definition: voltypes.h:44
◆ CODA_ASSERT
Value: do { \
if (!(cond)) { \
int *j = 0; \
*j = 1; \
} \
} while (0)
stderr
Definition: gensrvstats.py:48
#define __FILE__
Definition: odytypes.h:64
#define __LINE__
Definition: odytypes.h:68
◆ FREE
◆ NALLOC
Value: do { \
if (((
X) = (T *)malloc(
sizeof(T) * (S))) ==
NULL) { \
CODA_ASSERT(0); \
} \
} while (0)
◆ TIME
◆ TIMEDIFF
#define TIMEDIFF |
( |
|
tvb, |
|
|
|
tve, |
|
|
|
tvr |
|
) |
| |
Value: do { \
CODA_ASSERT(((tve).sec > (tvb).sec) || \
(((tve).sec == (tvb).sec) && ((tve).usec > (tvb).usec))); \
if ((tve).usec < (tvb).usec) { \
(tvr).usec = 1000000 + (tve).usec - (tvb).usec; \
(tvr).sec = (tve).sec - (tvb).sec - 1; \
} else { \
(tvr).usec = (tve).usec - (tvb).usec; \
(tvr).sec = (tve).sec - (tvb).sec; \
} \
} while (0)
◆ magic_t
◆ TIMEVAL
◆ bool
Enumerator |
---|
mfalse | |
mtrue | |
TRUE | |
FALSE | |
◆ COMPFN
typdef int(* COMPFN) () |
( |
| ) |
|