| 1 | /* ternary.h - Ternary Search Trees
|
|---|
| 2 | Copyright 2001 Free Software Foundation, Inc.
|
|---|
| 3 |
|
|---|
| 4 | Contributed by Daniel Berlin ([email protected])
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 | This program is free software; you can redistribute it and/or modify it
|
|---|
| 8 | under the terms of the GNU General Public License as published by the
|
|---|
| 9 | Free Software Foundation; either version 2, or (at your option) any
|
|---|
| 10 | later version.
|
|---|
| 11 |
|
|---|
| 12 | This program is distributed in the hope that it will be useful,
|
|---|
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|---|
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|---|
| 15 | GNU General Public License for more details.
|
|---|
| 16 |
|
|---|
| 17 | You should have received a copy of the GNU General Public License
|
|---|
| 18 | along with this program; if not, write to the Free Software
|
|---|
| 19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|---|
| 20 | USA. */
|
|---|
| 21 | #ifndef TERNARY_H_
|
|---|
| 22 | #define TERNARY_H_
|
|---|
| 23 | /* Ternary search trees */
|
|---|
| 24 |
|
|---|
| 25 | typedef struct ternary_node_def *ternary_tree;
|
|---|
| 26 |
|
|---|
| 27 | typedef struct ternary_node_def
|
|---|
| 28 | {
|
|---|
| 29 | char splitchar;
|
|---|
| 30 | ternary_tree lokid;
|
|---|
|
|---|