source: trunk/Cosy/incl/hash.h@ 18221

Last change on this file since 18221 was 731, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 890 bytes
Line 
1/*-----------------------------------------------------------------------------
2hash.h -- Hashing
3
4Copyright (c) 1994 JANZ Computer AG
5All Rights Reserved
6
7Created 94/10/11 by Soenke Hansen
8Version 1.3 of 98/03/24
9
10-----------------------------------------------------------------------------*/
11
12#ifndef hash_DEFINED
13#define hash_DEFINED
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19#include "defs.h"
20
21/* Hashing */
22#define HASH_LEN 211 /* prime number used in hashing */
23extern int hashfcn(BYTE_t *bytestr, int len);
24
25/* Check encoding range of character */
26#define IS_NUM(c) ((c) >= 0x30 && (c) <= 0x39)
27#define IS_ALPHA_NUM(c) (((c) >= 0x30 && (c) <= 0x39) || \
28 ((c) == '_') || \
29 ((c) >= 0x41 && (c) <= 0x5a) || \
30 ((c) >= 0x61 && (c) <= 0x7a))
31
32#ifdef __cplusplus
33}
34#endif
35
36#endif /* !hash_DEFINED */
Note: See TracBrowser for help on using the repository browser.