#include "spanner.hh"
#include "warn.hh"
-
+/*
+ like execute_general_pushpop_property(), but typecheck
+ grob_property_path and context_property.
+*/
void
general_pushpop_property (Context *context,
SCM context_property,
SCM grob_property_path,
- SCM new_value
- )
+ SCM new_value)
{
if (!scm_is_symbol (context_property)
|| !scm_is_symbol (scm_car (grob_property_path)))
indicates nested alists, eg. '(beamed-stem-lengths details)
*/
-
-
void
execute_override_property (Context *context,
SCM context_property,
new_value);
}
- // it's tempting to replace the head of the list if it's the same
- // property. However, we have to keep this info around, in case we have to
- // \revert back to it.
-
+ /* it's tempting to replace the head of the list if it's the same
+ property. However, we have to keep this info around, in case we have to
+ \revert back to it.
+ */
target_alist = scm_acons (symbol, new_value, target_alist);
bool ok = true;
}
}
-void
-execute_revert_property (Context *context,
- SCM context_property,
- SCM grob_property_path);
-
void
execute_general_pushpop_property (Context *context,
SCM context_property,
SCM grob_property_path,
- SCM new_value
- )
+ SCM new_value)
{
if (new_value != SCM_UNDEFINED)
execute_override_property (context, context_property,
if (scm_is_pair (scm_cdr (grob_property_path)))
{
SCM current_sub_alist = ly_assoc_get (symbol, current_alist, SCM_EOL);
- SCM new_val = nested_property_revert_alist (current_sub_alist, scm_cdr (grob_property_path));
+ SCM new_val
+ = nested_property_revert_alist (current_sub_alist,
+ scm_cdr (grob_property_path));
if (scm_is_pair (current_alist)
&& scm_caar (current_alist) == symbol
if (new_alist == daddy)
context->unset_property (context_property);
else
- context->set_property (context_property, scm_cons (new_alist, daddy));
+ context->set_property (context_property,
+ scm_cons (new_alist, daddy));
}
}
}
*/
void apply_property_operations (Context *tg, SCM pre_init_ops);
+void execute_revert_property (Context *context,
+ SCM context_property,
+ SCM grob_property_path);
void execute_pushpop_property (Context *trg, SCM prop, SCM eltprop, SCM val);
void execute_general_pushpop_property (Context *context,
SCM context_property, SCM grob_property_path, SCM val);