Initial import of binutils 2.22 on the new vendor branch
[dragonfly.git] / contrib / texinfo / makeinfo / float.h
1 /* float.h -- declarations for the float environment.
2    $Id: float.h,v 1.8 2007/07/01 21:20:32 karl Exp $
3
4    Copyright (C) 2003, 2004, 2007 Free Software Foundation, Inc.
5
6    This program is free software: you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation, either version 3 of the License, or
9    (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    You should have received a copy of the GNU General Public License
17    along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
19    Written by Alper Ersoy <dirt@gtk.org>.  */
20
21 #ifndef FLOAT_H
22 #define FLOAT_H
23
24 typedef struct float_elt
25 {
26   struct float_elt *next;
27   char *id;
28   char *type;
29   char *title;
30   char *shorttitle;
31   char *position;
32   char *number;
33   char *section;
34   char *section_name;
35   short title_used;
36   int defining_line;
37 } FLOAT_ELT;
38
39 extern void add_new_float (char *id, char *title, char *shorttitle,
40     char *type, char *position);
41 extern void current_float_set_title_used (void);
42
43 /* Information retrieval about the current float env.  */
44 extern char *current_float_id (void);
45 extern char *current_float_title (void);
46 extern char *current_float_shorttitle (void);
47 extern char *current_float_type (void);
48 extern char *current_float_position (void);
49 extern char *current_float_number (void);
50 extern char *get_float_ref (char *id);
51
52 extern int count_floats_of_type_in_chapter (char *type, char *chapter);
53 extern int current_float_used_title (void);
54
55 #endif /* not FLOAT_H */