~ubuntu-branches/debian/sid/boost1.49/sid

« back to all changes in this revision

Viewing changes to tools/build/v2/engine/hash.h

  • Committer: Package Import Robot
  • Author(s): Steve M. Robbins
  • Date: 2012-02-26 00:31:44 UTC
  • Revision ID: package-import@ubuntu.com-20120226003144-eaytp12cbf6ubpms
Tags: upstream-1.49.0
ImportĀ upstreamĀ versionĀ 1.49.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 1993, 1995 Christopher Seiwald.
 
3
 *
 
4
 * This file is part of Jam - see jam.c for Copyright information.
 
5
 */
 
6
 
 
7
/*
 
8
 * hash.h - simple in-memory hashing routines
 
9
 */
 
10
 
 
11
#ifndef BOOST_JAM_HASH_H
 
12
#define BOOST_JAM_HASH_H
 
13
 
 
14
typedef struct hashdata HASHDATA;
 
15
 
 
16
struct hash * hashinit     ( int datalen, char * name );
 
17
int           hashitem     ( struct hash * hp, HASHDATA * * data, int enter );
 
18
void          hashdone     ( struct hash * hp );
 
19
void          hashenumerate( struct hash * hp, void (* f)( void *, void * ), void * data );
 
20
int           hash_free    ( struct hash * hp, HASHDATA * data);
 
21
 
 
22
#define hashenter( hp, data ) ( !hashitem( hp, data, !0 ) )
 
23
#define hashcheck( hp, data ) hashitem( hp, data, 0 )
 
24
 
 
25
#endif