Changeset View
Changeset View
Standalone View
Standalone View
head/cddl/contrib/opensolaris/tools/ctf/cvt/ctftools.h
Show All 32 Lines | |||||
#include <stdio.h> | #include <stdio.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <stdarg.h> | #include <stdarg.h> | ||||
#include <libelf.h> | #include <libelf.h> | ||||
#include <gelf.h> | #include <gelf.h> | ||||
#include <pthread.h> | #include <pthread.h> | ||||
#include <sys/ccompile.h> | #include <sys/ccompile.h> | ||||
#include <sys/endian.h> | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" { | extern "C" { | ||||
#endif | #endif | ||||
#include "list.h" | #include "list.h" | ||||
#include "hash.h" | #include "hash.h" | ||||
Show All 9 Lines | |||||
#endif | #endif | ||||
#ifndef MAX | #ifndef MAX | ||||
#define MAX(a, b) ((a) < (b) ? (b) : (a)) | #define MAX(a, b) ((a) < (b) ? (b) : (a)) | ||||
#endif | #endif | ||||
#ifndef MIN | #ifndef MIN | ||||
#define MIN(a, b) ((a) > (b) ? (b) : (a)) | #define MIN(a, b) ((a) > (b) ? (b) : (a)) | ||||
#endif | |||||
/* Sanity check for cross-build bootstrap tools */ | |||||
#if !defined(BYTE_ORDER) | |||||
#error "Missing BYTE_ORDER defines" | |||||
#elif !defined(_LITTLE_ENDIAN) | |||||
#error "Missing _LITTLE_ENDIAN defines" | |||||
#elif !defined(_BIG_ENDIAN) | |||||
#error "Missing _BIG_ENDIAN defines" | |||||
#endif | #endif | ||||
#define TRUE 1 | #define TRUE 1 | ||||
#define FALSE 0 | #define FALSE 0 | ||||
#define CTF_ELF_SCN_NAME ".SUNW_ctf" | #define CTF_ELF_SCN_NAME ".SUNW_ctf" | ||||
#define CTF_LABEL_LASTIDX -1 | #define CTF_LABEL_LASTIDX -1 | ||||
▲ Show 20 Lines • Show All 381 Lines • Show Last 20 Lines |