File: hmload.c

package info (click to toggle)
critnib 1.1-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 208 kB
  • sloc: ansic: 1,414; sh: 100; makefile: 3
file content (24 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdint.h>
#include <stdio.h>
#include "hmproto.h"

struct hm hms[] =
{
//  HM_ARR(critbit, 2),
//  HM_ARR(tcradix, 2),
    HM_ARR(critnib, 0),
//  HM_ARR(critnib_tag, 0),
};

void hm_select(int i)
{
    hm_new	= hms[i].hm_new;
    hm_delete	= hms[i].hm_delete;
    hm_insert	= hms[i].hm_insert;
    hm_remove	= hms[i].hm_remove;
    hm_get	= hms[i].hm_get;
    hm_find_le	= hms[i].hm_find_le;
    hm_find	= hms[i].hm_find;
    hm_name	= hms[i].hm_name;
    hm_immutable= hms[i].hm_immutable;
}