OLD | NEW |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1997--2015 Han-Wen Nienhuys <hanwen@xs4all.nl> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 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 | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
11 LilyPond is distributed in the hope that it will be useful, | 11 LilyPond is distributed in the hope that it will be useful, |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 GNU General Public License for more details. | 14 GNU General Public License for more details. |
15 | 15 |
16 You should have received a copy of the GNU General Public License | 16 You should have received a copy of the GNU General Public License |
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>. | 17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>. |
18 */ | 18 */ |
19 | 19 |
20 #ifndef TRANSLATOR_HH | 20 #ifndef TRANSLATOR_HH |
21 #define TRANSLATOR_HH | 21 #define TRANSLATOR_HH |
22 | 22 |
23 #include "global-ctor.hh" | 23 #include "global-ctor.hh" |
24 #include "lily-proto.hh" | 24 #include "lily-proto.hh" |
25 #include "virtual-methods.hh" | 25 #include "virtual-methods.hh" |
26 #include "callback.hh" | 26 #include "callback.hh" |
27 #include "input.hh" // for error reporting | 27 #include "input.hh" // for error reporting |
28 #include "smobs.hh" | 28 #include "smobs.hh" |
| 29 #include "stream-event.hh" |
29 #include "std-vector.hh" | 30 #include "std-vector.hh" |
30 #include "protected-scm.hh" | 31 #include "protected-scm.hh" |
31 | 32 |
32 #define TRANSLATOR_FAMILY_DECLARATIONS(NAME) \ | 33 #define TRANSLATOR_FAMILY_DECLARATIONS(NAME) \ |
33 public: \ | 34 public: \ |
34 VIRTUAL_COPY_CONSTRUCTOR (Translator, NAME); \ | 35 VIRTUAL_COPY_CONSTRUCTOR (Translator, NAME); \ |
35 virtual void fetch_precomputable_methods (SCM methods[]); \ | 36 virtual void fetch_precomputable_methods (SCM methods[]); \ |
36 DECLARE_TRANSLATOR_CALLBACKS (NAME); \ | 37 DECLARE_TRANSLATOR_CALLBACKS (NAME); \ |
37 TRANSLATOR_INHERIT (Translator); \ | 38 TRANSLATOR_INHERIT (Translator); \ |
38 /* end #define */ | 39 /* end #define */ |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 Moment get_event_length (Stream_event *s, Moment now); | 195 Moment get_event_length (Stream_event *s, Moment now); |
195 Moment get_event_length (Stream_event *s); | 196 Moment get_event_length (Stream_event *s); |
196 | 197 |
197 /* | 198 /* |
198 This helper is only meaningful inside listen_* methods. | 199 This helper is only meaningful inside listen_* methods. |
199 */ | 200 */ |
200 extern bool internal_event_assignment (Stream_event **old_ev, Stream_event *new_
ev, const char *function); | 201 extern bool internal_event_assignment (Stream_event **old_ev, Stream_event *new_
ev, const char *function); |
201 #define ASSIGN_EVENT_ONCE(o,n) internal_event_assignment (&o, n, __FUNCTION__) | 202 #define ASSIGN_EVENT_ONCE(o,n) internal_event_assignment (&o, n, __FUNCTION__) |
202 | 203 |
203 #endif // TRANSLATOR_HH | 204 #endif // TRANSLATOR_HH |
OLD | NEW |