aboutsummaryrefslogtreecommitdiffstats
path: root/hash.h
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-08 04:32:45 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2005-05-08 04:32:45 +0000
commitdbf5d92605a9db10e3e3cb154d03a515c5d5c5af (patch)
tree501d5dda3ce90fe924b893e487d9ef9f0683382b /hash.h
parenta1c471e9fb7cadb68bb182ab2e9715a0aa092386 (diff)
downloadlcd4linux-dbf5d92605a9db10e3e3cb154d03a515c5d5c5af.tar.gz
[lcd4linux @ 2005-05-08 04:32:43 by reinelt]
CodingStyle added and applied git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@547 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'hash.h')
-rw-r--r--hash.h57
1 files changed, 30 insertions, 27 deletions
diff --git a/hash.h b/hash.h
index 625ba1e..92c4731 100644
--- a/hash.h
+++ b/hash.h
@@ -1,4 +1,4 @@
-/* $Id: hash.h,v 1.18 2005/01/18 06:30:23 reinelt Exp $
+/* $Id: hash.h,v 1.19 2005/05/08 04:32:44 reinelt Exp $
*
* hashes (associative arrays)
*
@@ -23,6 +23,9 @@
*
*
* $Log: hash.h,v $
+ * Revision 1.19 2005/05/08 04:32:44 reinelt
+ * CodingStyle added and applied
+ *
* Revision 1.18 2005/01/18 06:30:23 reinelt
* added (C) to all copyright statements
*
@@ -113,52 +116,52 @@
typedef struct {
- int size;
- char *value;
- struct timeval timestamp;
+ int size;
+ char *value;
+ struct timeval timestamp;
} HASH_SLOT;
typedef struct {
- char *key;
- int val;
+ char *key;
+ int val;
} HASH_COLUMN;
typedef struct {
- char *key;
- int index;
- int nSlot;
- HASH_SLOT *Slot;
+ char *key;
+ int index;
+ int nSlot;
+ HASH_SLOT *Slot;
} HASH_ITEM;
typedef struct {
- int sorted;
- struct timeval timestamp;
- int nItems;
- HASH_ITEM *Items;
- int nColumns;
- HASH_COLUMN *Columns;
- char *delimiter;
+ int sorted;
+ struct timeval timestamp;
+ int nItems;
+ HASH_ITEM *Items;
+ int nColumns;
+ HASH_COLUMN *Columns;
+ char *delimiter;
} HASH;
-void hash_create (HASH *Hash);
+void hash_create(HASH * Hash);
-int hash_age (HASH *Hash, const char *key);
+int hash_age(HASH * Hash, const char *key);
-void hash_set_column (HASH *Hash, const int number, const char *column);
-void hash_set_delimiter (HASH *Hash, const char *delimiter);
+void hash_set_column(HASH * Hash, const int number, const char *column);
+void hash_set_delimiter(HASH * Hash, const char *delimiter);
-char *hash_get (HASH *Hash, const char *key, const char *column);
-double hash_get_delta (HASH *Hash, const char *key, const char *column, const int delay);
-double hash_get_regex (HASH *Hash, const char *key, const char *column, const int delay);
+char *hash_get(HASH * Hash, const char *key, const char *column);
+double hash_get_delta(HASH * Hash, const char *key, const char *column, const int delay);
+double hash_get_regex(HASH * Hash, const char *key, const char *column, const int delay);
-void hash_put (HASH *Hash, const char *key, const char *value);
-void hash_put_delta (HASH *Hash, const char *key, const char *value);
+void hash_put(HASH * Hash, const char *key, const char *value);
+void hash_put_delta(HASH * Hash, const char *key, const char *value);
-void hash_destroy (HASH *Hash);
+void hash_destroy(HASH * Hash);
#endif