ADD_SCM_INIT_FUNC (init_smob_protection, init_smob_protection);
LY_DEFINE (ly_smob_protects, "ly:smob-protects",
- 0, 0, 0, (),
- "Return LilyPond's internal smob protection list.")
+ 0, 0, 0, (),
+ "Return LilyPond's internal smob protection list.")
{
return scm_is_pair (smob_protection_list)
- ? scm_cdr (smob_protection_list)
- : SCM_EOL;
+ ? scm_cdr (smob_protection_list)
+ : SCM_EOL;
}
void
}
SCM prot = scm_cons (smob, s);
scm_set_cdr_x (smob_protection_list,
- prot);
+ prot);
*prot_cons = prot;
#else
- (void) prot_cons;
+ (void) prot_cons;
scm_gc_protect_object (smob);
#endif
}
unprotect_smob (SCM smob, SCM *prot_cons)
{
#if 1
- (void) prot_cons;
+ (void) prot_cons;
scm_gc_unprotect_object (smob);
#else
SCM next = scm_cdr (*prot_cons);
{
scm_set_car_x (*prot_cons, SCM_BOOL_F);
while (scm_is_pair (next)
- && scm_car (next) == SCM_BOOL_F)
+ && scm_car (next) == SCM_BOOL_F)
- next = scm_cdr (next);
+ next = scm_cdr (next);
scm_set_cdr_x (*prot_cons, next);
}