]> git.donarmstrong.com Git - lilypond.git/blob - scm/safe-lily.scm
* scm/define-music-types.scm (music-descriptions): don't use
[lilypond.git] / scm / safe-lily.scm
1 ;;;; safe-lily.scm -- 
2 ;;;;
3 ;;;; source file of the GNU LilyPond music typesetter
4 ;;;; 
5 ;;;; (c) 2004--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
6
7 (map
8  (lambda (sym)
9    (set! safe-objects (cons (cons sym (primitive-eval sym))
10                             safe-objects)))
11  '(ly:add-interface
12    ly:add-moment
13    ly:all-grob-interfaces
14    ly:all-output-backend-commands
15    ly:all-stencil-expressions
16    ly:bracket
17    ly:context-find
18    ly:context-id
19    ly:context-name
20    ly:context-parent
21    ly:context-property
22    ly:context-property-where-defined
23    ly:context-pushpop-property
24    ly:context-set-property!
25    ly:context-unset-property
26    ly:context?
27    ly:dimension?
28    ly:dir?
29    ly:div-moment
30    ly:duration-dot-count
31    ly:duration-factor
32    ly:duration-log
33    ly:duration<?
34    ly:duration?
35    ly:error
36    ly:export
37    ly:font-get-glyph
38    ly:font-design-size
39    ly:font-file-name
40    ly:font-magnification
41    ly:font-metric?
42    ly:font-name
43    ly:format-output
44    ly:get-all-function-documentation
45    ly:get-all-translators
46    ly:get-glyph
47    ly:get-option
48    ly:grob-alist-chain
49    ly:grob-default-font
50    ly:grob-extent
51    ly:grob-original
52    ly:grob-layout
53    ly:grob-parent
54    ly:grob-pq-less?
55    ly:grob-property
56    ly:grob-script-priority-less
57    ly:grob-set-property!
58    ly:grob-staff-position
59    ly:grob-suicide
60    ly:grob-system
61    ly:grob-translate-axis!
62    ly:grob?
63    ly:input-file-line-char-column
64    ly:input-location?
65    ly:input-message
66    ly:intlog2
67    ly:item-break-dir
68    ly:item?
69    ly:iterator?
70    ly:make-bare-music
71    ly:make-duration
72    ly:make-moment
73    ly:make-music-function
74    ly:make-pitch
75    ly:make-stencil
76    ly:moment<?
77    ly:moment?
78    ly:mul-moment
79    ly:music-compress
80    ly:music-deep-copy
81    ly:music-duration-compress
82    ly:music-duration-length
83    ly:music-length
84    ly:music-list?
85    ly:music-mutable-properties
86    ly:music-name
87    ly:music-property
88    ly:make-score
89    ly:music-set-property!
90    ly:music-transpose
91    ly:music?
92    ly:lily-parser?
93    ly:message
94    ly:number->string
95    ly:option-usage
96    ly:output-def-clone
97    ly:output-def-scope
98    ly:output-description
99    ly:paper-book?
100    ly:layout-def?
101    ly:paper-get-font
102    ly:paper-get-number
103    ly:paper-system-break-before-penalty
104    ly:paper-system-extent
105    ly:paper-system-number
106    ly:paper-system-stencil
107    ly:paper-system?
108    ly:output-def-lookup
109    ly:parse-string
110    ly:parser-parse-string
111    ly:parser-print-book
112    ly:parser-print-score
113    ly:pitch-alteration
114    ly:pitch-diff
115    ly:pitch-notename
116    ly:pitch-octave
117    ly:pitch-quartertones
118    ly:pitch-semitones
119    ly:pitch-steps
120    ly:pitch-transpose
121    ly:pitch<?
122    ly:pitch?
123    ly:round-filled-box
124    ly:run-translator
125    ly:set-option
126    ly:set-point-and-click
127    ly:spanner-broken-into
128    ly:spanner-get-bound
129    ly:spanner?
130    ly:stencil-add
131    ly:stencil-aligned-to
132    ly:stencil-combine-at-edge
133    ly:stencil-expr
134    ly:stencil-extent
135    ly:stencil-moved-to-edge
136    ly:stencil-translate
137    ly:stencil-translate-axis
138    ly:stencil?
139    ly:text-dimension
140    ly:translator-description
141    ly:translator-name
142    ly:translator?
143    ly:transpose-key-alist
144    ly:unit
145    ly:usage
146    ly:version
147    ly:warning
148
149    ;; FIXME: cannot change staff size in --safe-mode
150    ;;$defaultpaper
151    ;;$defaultmidi
152    ;;$defaultlayout
153
154    Accidental_interface::after_line_breaking
155    Accidental_interface::print
156    Ambitus::print
157    Arpeggio::print
158    Arpeggio::brew_chord_bracket
159    Arpeggio::width_callback
160    Axis_group_interface::group_extent_callback
161    Bar_line::before_line_breaking
162    Bar_line::get_staff_bar_size
163    Bar_line::print
164    Beam::after_line_breaking
165    Beam::before_line_breaking
166    Beam::check_concave
167    Beam::least_squares
168    Beam::print
169    Beam::quanting
170    Beam::shift_region_to_valid
171    Beam::slope_damping
172    Beam::space_function
173    Break_align_interface::alignment_callback
174    Breathing_sign::offset_callback
175    Chord_name::after_line_breaking
176    Clef::before_line_breaking
177    Clef::print
178    Cluster::print
179    Cluster_beacon::height
180    Custos::print
181    Dot_column::side_position
182    Dots::print
183    Hairpin::print
184    Hara_kiri_group_spanner::force_hara_kiri_callback
185    Hara_kiri_group_spanner::y_extent
186    Horizontal_bracket::print
187    Hyphen_spanner::print
188    Hyphen_spanner::set_spacing_rods
189    Key_signature_interface::print
190    Line_spanner::after_line_breaking
191    Line_spanner::print
192    Lyric_extender::print
193    Measure_grouping::print
194    Mensural_ligature::brew_ligature_primitive
195    Mensural_ligature::print
196    Multi_measure_rest::percent
197    Multi_measure_rest::print
198    Multi_measure_rest::set_spacing_rods
199    Note_head::print
200    Note_head::brew_ez_stencil
201    Ottava_bracket::print
202    Paper_column::before_line_breaking
203    Paper_column::print
204    Percent_repeat_item_interface::beat_slash
205    Percent_repeat_item_interface::double_percent
206    Piano_pedal_bracket::print
207    Rest::after_line_breaking
208    Rest::extent_callback
209    Rest::polyphonic_offset_callback
210    Rest::print
211    Script_column::before_line_breaking
212    Script_interface::before_line_breaking
213    Script_interface::print
214    Self_alignment_interface::aligned_on_parent
215    Self_alignment_interface::aligned_on_self
216    Self_alignment_interface::centered_on_other_axis_parent
217    Self_alignment_interface::centered_on_parent
218    Separating_group_spanner::set_spacing_rods
219    Side_position_interface::aligned_on_support_refpoints
220    Side_position_interface::aligned_side
221    Slur::after_line_breaking
222    Slur::height
223    Slur::print
224    Spacing_spanner::set_springs
225    Span_bar::before_line_breaking
226    Span_bar::get_bar_size
227    Span_bar::print
228    Span_bar::width_callback
229    Spanner::set_spacing_rods
230    Staff_symbol::print
231    Staff_symbol_referencer::callback
232    Stem::before_line_breaking
233    Stem::width_callback
234    Stem::height
235    Stem::offset_callback
236    Stem::print
237    Stem_tremolo::height
238    Stem_tremolo::print
239    Sustain_pedal::print
240    System_start_delimiter::after_line_breaking
241    System_start_delimiter::print
242    Text_interface::print
243    Text_spanner::print
244    Tie::print
245    Tie_column::after_line_breaking
246    Time_signature::print
247    Tuplet_bracket::after_line_breaking
248    Tuplet_bracket::before_line_breaking
249    Tuplet_bracket::print
250    Vaticana_ligature::brew_ligature_primitive
251    Vaticana_ligature::print
252    Volta_bracket_interface::print
253    ))
254
255 (define-public (make-safe-lilypond-module)
256   (let* ((m (make-safe-module)))
257     (for-each (lambda (p) (module-define! m (car p) (cdr p))) safe-objects)
258     m))