~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/compilergcc/depslib/src/hash.h

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* *** This file was borrowed from jam 2.5. The copyright statement from
 
2
 * *** jam.c appears below.
 
3
 */
 
4
/*
 
5
 * /+\
 
6
 * +\   Copyright 1993-2002 Christopher Seiwald and Perforce Software, Inc.
 
7
 * \+/
 
8
 *
 
9
 * This file is part of jam.
 
10
 *
 
11
 * License is hereby granted to use this software and distribute it
 
12
 * freely, as long as this copyright notice is retained and modifications 
 
13
 * are clearly marked.
 
14
 *
 
15
 * ALL WARRANTIES ARE HEREBY DISCLAIMED.
 
16
 */
 
17
 
 
18
/*
 
19
 * Copyright 1993, 1995 Christopher Seiwald.
 
20
 *
 
21
 * This file is part of Jam - see jam.c for Copyright information.
 
22
 */
 
23
 
 
24
/*
 
25
 * hash.h - simple in-memory hashing routines 
 
26
 *
 
27
 * 11/04/02 (seiwald) - const-ing for string literals
 
28
 */
 
29
 
 
30
typedef struct hashdata HASHDATA;
 
31
 
 
32
struct hash *   hashinit( int datalen, const char *name );
 
33
int             hashitem( struct hash *hp, HASHDATA **data, int enter );
 
34
void            hashdone( struct hash *hp );
 
35
 
 
36
# define        hashenter( hp, data ) !hashitem( hp, data, !0 )
 
37
# define        hashcheck( hp, data ) hashitem( hp, data, 0 )