File: hash.h

package info (click to toggle)
lp-solve 3.0-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 576 kB
  • ctags: 354
  • sloc: ansic: 4,805; yacc: 170; makefile: 136; sh: 59
file content (21 lines) | stat: -rw-r--r-- 552 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
typedef struct _hashelem
{
  char             *name;
  struct _hashelem *next;
  struct _column   *col;
  struct _bound    *bnd;
  int               must_be_int;
  int               index; /* for row and column name hash tables */
} hashelem;

typedef struct _hashtable
{
  hashelem **table;
  int        size;  
} hashtable;

hashtable *create_hash_table(int size);
void free_hash_table(hashtable *ht);
hashelem *findhash(const char *name, hashtable *ht);
hashelem *puthash(const char *name, hashtable *ht);
hashtable *copy_hash_table(hashtable *ht);