summaryrefslogtreecommitdiff
path: root/legacy/eet/src/lib/eet_utils.c
diff options
context:
space:
mode:
authordoursse <doursse>2008-03-08 07:28:12 +0000
committerdoursse <doursse@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2008-03-08 07:28:12 +0000
commitbb32035399e1d1d88f1e03b5adb133ba55357e11 (patch)
treedbc35b719f3f8be76a05c32dc5c448da1e3b3b05 /legacy/eet/src/lib/eet_utils.c
parent87a6db77035f64c27d08b702bab692232695588f (diff)
* define EAPI on Windows according to the following scheme:
- if Eet is built: . if the shared lib is built, EAPI must be __declspec(dllexport) . if the static lib is built, EAPI must be empty - otherwise EAPI must be __declspec(dllimport) * move config.h from Eet_private.h to source files so that EAPI is correctly defined in Eet.h * add notes for compilation with cegcc and mingw32ce in INSTALL * add support for compilation with cegcc * add indentation information for vi * remove trailing spaces SVN revision: 33959
Diffstat (limited to 'legacy/eet/src/lib/eet_utils.c')
-rw-r--r--legacy/eet/src/lib/eet_utils.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/legacy/eet/src/lib/eet_utils.c b/legacy/eet/src/lib/eet_utils.c
index 7edc31d582..f2bce7667c 100644
--- a/legacy/eet/src/lib/eet_utils.c
+++ b/legacy/eet/src/lib/eet_utils.c
@@ -1,3 +1,7 @@
1/*
2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
3 */
4
1#include <stdio.h> 5#include <stdio.h>
2#include <math.h> 6#include <math.h>
3 7
@@ -7,7 +11,7 @@ _eet_hash_gen(const char *key, int hash_size)
7 int hash_num = 0; 11 int hash_num = 0;
8 int value, i; 12 int value, i;
9 unsigned char *ptr; 13 unsigned char *ptr;
10 14
11 const int masks[9] = 15 const int masks[9] =
12 { 16 {
13 0x00, 17 0x00,
@@ -20,10 +24,10 @@ _eet_hash_gen(const char *key, int hash_size)
20 0x7f, 24 0x7f,
21 0xff 25 0xff
22 }; 26 };
23 27
24 /* no string - index 0 */ 28 /* no string - index 0 */
25 if (!key) return 0; 29 if (!key) return 0;
26 30
27 /* calc hash num */ 31 /* calc hash num */
28 for (i = 0, ptr = (unsigned char *)key, value = (int)(*ptr); 32 for (i = 0, ptr = (unsigned char *)key, value = (int)(*ptr);
29 value; 33 value;