OSSP CVS Repository

ossp - ossp-pkg/act/act_p.h.in 1.2
Not logged in
[Honeypot]  [Browse]  [Directory]  [Home]  [Login
[Reports]  [Search]  [Ticket]  [Timeline
  [Raw

ossp-pkg/act/act_p.h.in 1.2
#ifndef _ACT_P_H_
#define _ACT_P_H_

#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <errno.h>

/* library version */
#define _ACT_VERS_C_AS_HEADER_
#include "act_vers.c"
#undef  _ACT_VERS_C_AS_HEADER_

/* temporarily preserve and restore errno */
#define errno_preserve \
        do { pth_errno_storage = errno; } while (0)
#define errno_restore \
        do { errno = pth_errno_storage; } while (0)
#define errno_safe(cmd) \
        do { int __local_errno = errno; cmd; errno = __local_errno; } while (0)
#define return_errno(return_val,errno_val) \
        do { errno = (errno_val); return (return_val); } while (0) 

#include "act_cfg.h"
#include "act_lib.h"
#include "act_ctx.h"
#include "act_mem.h"
#include "act_hash.h"

#define insist(expr,false) if (!(expr)) return false

/* compiler happyness: avoid ``empty compilation unit'' problem */
#define COMPILER_HAPPYNESS(name) \
    int __##name##_unit = 0;

/* generated contents */
BEGIN_DECLARATION
==#==
END_DECLARATION

#endif /* _ACT_P_H_ */

CVSTrac 2.0.1