2 * Copyright (c) 2014 - 2017 Steffen (Daode) Nurpmeso <steffen@sdaoden.eu>.
4 * Copyright (C) 1989 - 1992, 2000 - 2002, 2004, 2008
5 * Free Software Foundation, Inc.
6 * Written by James Clark (jjc@jclark.com)
8 * This is free software; you can redistribute it and/or modify it under
9 * the terms of the GNU General Public License as published by the Free
10 * Software Foundation; either version 2, or (at your option) any later
13 * This is distributed in the hope that it will be useful, but WITHOUT ANY
14 * WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
18 * You should have received a copy of the GNU General Public License along
19 * with groff; see the file COPYING. If not, write to the Free Software
20 * Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA.
26 #include "troff-config.h"
28 typedef void (*REQUEST_FUNCP
)();
32 class request_or_macro
37 virtual void invoke(symbol
, int) = 0;
38 virtual macro
*to_macro();
42 : public request_or_macro
47 void invoke(symbol
, int);
48 request(REQUEST_FUNCP
);
51 void delete_request_or_macro(request_or_macro
*);
53 extern object_dictionary request_dictionary
;
59 : public request_or_macro
61 friend class string_iterator
;
62 friend void chop_macro();
63 friend void substring_request();
64 friend int operator==(const macro
&, const macro
&);
66 const char *filename
; // where was it defined?
71 int is_a_string
; // if it contains no newline
80 macro
&operator=(const macro
&);
81 void append(unsigned char);
83 void append_unsigned(unsigned int);
85 void append_str(const char *);
86 void set(unsigned char, int);
87 unsigned char get(int);
89 void invoke(symbol
, int);
95 void clear_string_flag();
98 extern void init_input_requests();
99 extern void init_markup_requests();
100 extern void init_div_requests();
101 extern void init_node_requests();
102 extern void init_reg_requests();
103 extern void init_env_requests();
104 extern void init_hyphen_requests();
105 extern void init_request(const char *, REQUEST_FUNCP
);
110 node
*charinfo_to_node_list(charinfo
*, const environment
*);