• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* PackTab - Pack a static table
2  * Copyright (C) 2001 Behdad Esfahbod.
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this library; if not, see <http://www.gnu.org/licenses/>.
16  *
17  * For licensing issues, contact <fwpg@sharif.edu>.
18  */
19 
20 #ifndef PACKTAB_H
21 #define PACKTAB_H
22 
23 #ifdef __cplusplus
24 extern "C"
25 {
26 #endif
27 
28 #define packtab_version 3
29 
30   int pack_table (
31   const signed int *base,
32   long key_num,
33   int key_size,
34   signed int default_key,
35   int max_depth,
36   int tab_width,
37   const char *const *name,
38   const char *key_type_name,
39   const char *table_name,
40   const char *macro_name,
41   FILE *out
42   );
43 
44 #ifdef	__cplusplus
45 }
46 #endif
47 
48 #endif				/* PACKTAB_H */
49