summaryrefslogtreecommitdiffstats
path: root/contrib/texinfo/makeinfo/insertion.h
blob: 6f4a24b792671bc73b0559c394ca777478a6f64f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* insertion.h -- declarations for insertion.c.
   $Id: insertion.h,v 1.6 1999/07/06 23:12:58 karl Exp $

   Copyright (C) 1998, 99 Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software Foundation,
   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */

#ifndef INSERTION_H
#define INSERTION_H

/* Must match list in insertion.c.  */
enum insertion_type
{
  cartouche, defcv, deffn, defivar, defmac, defmethod, defop, defopt,
  defspec, deftp, deftypefn, deftypefun, deftypeivar, deftypemethod,
  deftypeop, deftypevar, deftypevr, defun, defvar, defvr, detailmenu,
  direntry, display, enumerate, example, flushleft, flushright, format,
  ftable, group, ifclear, ifhtml, ifinfo, ifnothtml, ifnotinfo,
  ifnottex, ifset, iftex, itemize, lisp, menu, multitable, quotation,
  rawhtml, rawtex, smalldisplay, smallexample, smallformat, smalllisp,
  table, tex, vtable, bad_type
};

typedef struct istack_elt
{
  struct istack_elt *next;
  char *item_function;
  char *filename;
  int line_number;
  int filling_enabled;
  int indented_fill;
  enum insertion_type insertion;
  int inhibited;
  int in_fixed_width_font;
} INSERTION_ELT;


extern int insertion_level;
extern INSERTION_ELT *insertion_stack;
extern int in_menu;
extern int in_detailmenu;
extern int had_menu_commentary;
extern int in_paragraph;

extern void command_name_condition ();
extern void cm_ifnothtml (), cm_ifhtml(), cm_html ();
extern void cm_ifinfo (), cm_ifnotinfo ();
extern void cm_ifnottex (), cm_iftex (), cm_tex ();
#endif /* !INSERTION_H */
OpenPOWER on IntegriCloud