/***********************************************************************1* *2* This software is part of the ast package *3* Copyright (c) 1985-2012 AT&T Intellectual Property *4* and is licensed under the *5* Eclipse Public License, Version 1.0 *6* by AT&T Intellectual Property *7* *8* A copy of the License is available at *9* http://www.eclipse.org/org/documents/epl-v10.html *10* (with md5 checksum b35adb5213ca9657e911e9befb180842) *11* *12* Information and Software Systems Research *13* AT&T Research *14* Florham Park NJ *15* *16* Glenn Fowler <[email protected]> *17* David Korn <[email protected]> *18* Phong Vo <[email protected]> *19* *20***********************************************************************/21#ifndef _ASOHDR_H22#define _ASOHDR_H 12324#if _PACKAGE_ast2526#include <ast.h>27#include <error.h>28#include <fnv.h>2930#else3132#include <errno.h>3334#ifndef elementsof35#define elementsof(x) (sizeof(x)/sizeof(x[0]))36#endif37#ifndef integralof38#define integralof(x) (((char*)(x))-((char*)0))39#endif40#ifndef FNV_MULT41#define FNV_MULT 0x01000193L42#endif43#ifndef NiL44#define NiL ((void*)0)45#endif46#ifndef NoN47#if defined(__STDC__) || defined(__STDPP__)48#define NoN(x) void _STUB_ ## x () {}49#else50#define NoN(x) void _STUB_/**/x () {}51#endif52#if !defined(_STUB_)53#define _STUB_54#endif55#endif5657#endif5859#include "FEATURE/asometh"6061#if _UWIN62#undef _aso_fcntl63#undef _aso_semaphore64#endif6566#include "aso.h"6768#define HASH(p,z) ((integralof(p)*FNV_MULT)%(z))6970#endif717273