Defines

compat-c.h File Reference

#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <strings.h>
#include <stdlib.h>
Include dependency graph for compat-c.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define HT_EXTERN_C   extern
 Copyright (C) 2007 Luke Lu (Zvents, Inc.)
#define HT_CDECL
#define HT_PUBLIC(ret_type)   ret_type HT_CDECL
#define HT_EXTERN(ret_type)   HT_EXTERN_C HT_PUBLIC(ret_type)
#define HT_NORETURN
#define HT_FORMAT(x)
#define __attribute__(x)
#define HT_FUNC   __func__
#define HT_COND(x, _prob_)   (x)
#define HT_LIKELY(x)   HT_COND(x, 1)
#define HT_UNLIKELY(x)   HT_COND(x, 0)
#define __STDC_LIMIT_MACROS

Define Documentation

#define __attribute__ (   x )

Definition at line 51 of file compat-c.h.

#define __STDC_LIMIT_MACROS

Definition at line 62 of file compat-c.h.

#define HT_CDECL

Definition at line 36 of file compat-c.h.

#define HT_COND (   x,
  _prob_ 
)    (x)

Definition at line 54 of file compat-c.h.

#define HT_EXTERN (   ret_type )    HT_EXTERN_C HT_PUBLIC(ret_type)

Definition at line 40 of file compat-c.h.

#define HT_EXTERN_C   extern

Copyright (C) 2007 Luke Lu (Zvents, Inc.)

This file is part of Hypertable.

Hypertable is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.

Hypertable is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Hypertable. If not, see <http://www.gnu.org/licenses/> Portability macros for C code.

Definition at line 29 of file compat-c.h.

#define HT_FORMAT (   x )

Definition at line 49 of file compat-c.h.

#define HT_FUNC   __func__

Definition at line 53 of file compat-c.h.

#define HT_LIKELY (   x )    HT_COND(x, 1)

Definition at line 57 of file compat-c.h.

#define HT_NORETURN

Definition at line 48 of file compat-c.h.

#define HT_PUBLIC (   ret_type )    ret_type HT_CDECL

Definition at line 39 of file compat-c.h.

#define HT_UNLIKELY (   x )    HT_COND(x, 0)

Definition at line 58 of file compat-c.h.