| Line |  | 
|---|
| 1 | /*----------------------------------------------------------------------------- | 
|---|
| 2 | hash.h -- Hashing | 
|---|
| 3 |  | 
|---|
| 4 | Copyright (c) 1994 JANZ Computer AG | 
|---|
| 5 | All Rights Reserved | 
|---|
| 6 |  | 
|---|
| 7 | Created 94/10/11 by Soenke Hansen | 
|---|
| 8 | Version 1.3 of 98/03/24 | 
|---|
| 9 |  | 
|---|
| 10 | -----------------------------------------------------------------------------*/ | 
|---|
| 11 |  | 
|---|
| 12 | #ifndef hash_DEFINED | 
|---|
| 13 | #define hash_DEFINED | 
|---|
| 14 |  | 
|---|
| 15 | #ifdef __cplusplus | 
|---|
| 16 | extern "C" { | 
|---|
| 17 | #endif | 
|---|
| 18 |  | 
|---|
| 19 | #include "defs.h" | 
|---|
| 20 |  | 
|---|
| 21 | /* Hashing */ | 
|---|
| 22 | #define HASH_LEN    211       /* prime number used in hashing */ | 
|---|
| 23 | extern 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.