You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
postgres/contrib/tsearch2/snmap.h

26 lines
425 B

23 years ago
#ifndef __SNMAP_H__
#define __SNMAP_H__
#include "postgres.h"
23 years ago
typedef struct
{
char *key;
Oid value;
} SNMapEntry;
23 years ago
23 years ago
typedef struct
{
int len;
int reallen;
SNMapEntry *list;
} SNMap;
23 years ago
23 years ago
void addSNMap(SNMap * map, char *key, Oid value);
void addSNMap_t(SNMap * map, text *key, Oid value);
Oid findSNMap(SNMap * map, char *key);
Oid findSNMap_t(SNMap * map, text *key);
void freeSNMap(SNMap * map);
23 years ago
#endif