1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

tsearch2 module

This commit is contained in:
Teodor Sigaev
2003-07-21 10:27:44 +00:00
parent a605382670
commit b88605337e
63 changed files with 16908 additions and 0 deletions

23
contrib/tsearch2/snmap.h Normal file
View File

@ -0,0 +1,23 @@
#ifndef __SNMAP_H__
#define __SNMAP_H__
#include "postgres.h"
typedef struct {
char *key;
Oid value;
} SNMapEntry;
typedef struct {
int len;
int reallen;
SNMapEntry *list;
} SNMap;
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 );
#endif