From bd82d030011cd8b9655e5ded6b6df9343b42a6bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 4 Feb 2015 14:09:54 +0100 Subject: Imported Upstream version 3.22 --- src/internal.h | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 src/internal.h (limited to 'src/internal.h') diff --git a/src/internal.h b/src/internal.h new file mode 100644 index 0000000..969c56f --- /dev/null +++ b/src/internal.h @@ -0,0 +1,64 @@ +/* + * Copyright Jan Engelhardt, 1999-2008 + * + * This file is part of libHX. libHX is free software; you can + * redistribute it and/or modify it under the terms of the GNU Lesser + * General Public License as published by the Free Software Foundation; + * either version 2.1 or (at your option) any later version. + */ +#ifndef LIBHX_INTERNAL_H +#define LIBHX_INTERNAL_H 1 + +#include "config.h" +#include +#include + +#ifdef __cplusplus + /* Only for our dual C/C++ testsuites */ +# define const_cast(type, expr) const_cast(expr) +# define const_cast1(type, expr) const_cast(expr) +# define const_cast2(type, expr) const_cast(expr) +# define const_cast3(type, expr) const_cast(expr) +# define dynamic_cast(type, expr) dynamic_cast(expr) +# define signed_cast(type, expr) signed_cast(expr) +# define static_cast(type, expr) static_cast(expr) +# define reinterpret_cast(type, expr) reinterpret_cast(expr) +#endif + +#ifdef __MINGW32__ +# include "uxcompat.h" +#endif +#ifdef _MSC_VER +# include "uxcompat.h" +# define snprintf _snprintf +#endif + +#ifdef HAVE_VISIBILITY_HIDDEN +# define EXPORT_SYMBOL __attribute__((visibility("default"))) +#else +# define EXPORT_SYMBOL +#endif + +#define MAXFNLEN 256 /* max length for filename buffer */ +#define MAXLNLEN 1024 /* max length for usual line */ + +#define HXMC_IDENT 0x200571AF + +struct memcont { + size_t alloc, length; + unsigned int id; + char data[]; +}; + +struct timespec; +struct timeval; + +extern hxmc_t *HXparse_dequote_fmt(const char *, const char *, const char **); + +/* time.c - these are obsolete, but kept for ABI */ +extern void HX_diff_timespec(struct timespec *, const struct timespec *, + const struct timespec *); +extern void HX_diff_timeval(struct timeval *, const struct timeval *, + const struct timeval *); + +#endif /* LIBHX_INTERNAL_H */ -- cgit v1.2.3