]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/include/lily-guile.hh: is_x -> ly_c_X_p naming.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 12 Apr 2004 14:28:49 +0000 (14:28 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 12 Apr 2004 14:28:49 +0000 (14:28 +0000)
* lily/lexer.ll: change is_string -> ly_c_string_p

71 files changed:
ChangeLog
lily/accidental-engraver.cc
lily/accidental.cc
lily/ambitus.cc
lily/balloon.cc
lily/bar-line.cc
lily/bar-number-engraver.cc
lily/beam.cc
lily/break-align-engraver.cc
lily/break-align-interface.cc
lily/break-substitution.cc
lily/chord-name-engraver.cc
lily/cluster.cc
lily/context-def.cc
lily/context-scheme.cc
lily/context.cc
lily/custos.cc
lily/drum-note-engraver.cc
lily/drum-note-performer.cc
lily/dynamic-engraver.cc
lily/dynamic-performer.cc
lily/event.cc
lily/figured-bass-engraver.cc
lily/function-documentation.cc
lily/grob-interface.cc
lily/grob-scheme.cc
lily/grob.cc
lily/include/lily-guile.hh
lily/item.cc
lily/key-engraver.cc
lily/key-signature-interface.cc
lily/lexer.ll
lily/lily-guile.cc
lily/line-spanner.cc
lily/mark-engraver.cc
lily/music-iterator.cc
lily/music-output-def.cc
lily/music.cc
lily/my-lily-parser.cc
lily/note-collision.cc
lily/note-head.cc
lily/output-property-engraver.cc
lily/paper-def.cc
lily/parser.yy
lily/part-combine-iterator.cc
lily/piano-pedal-engraver.cc
lily/piano-pedal-performer.cc
lily/property-iterator.cc
lily/quote-iterator.cc
lily/recording-group-engraver.cc
lily/repeat-acknowledge-engraver.cc
lily/rest.cc
lily/scaled-font-metric.cc
lily/scm-hash.cc
lily/script-engraver.cc
lily/separation-item.cc
lily/slur.cc
lily/span-bar-engraver.cc
lily/stem.cc
lily/system-start-delimiter-engraver.cc
lily/system-start-delimiter.cc
lily/system.cc
lily/text-item.cc
lily/tfm.cc
lily/tie-engraver.cc
lily/tie-performer.cc
lily/time-signature-performer.cc
lily/time-signature.cc
lily/translator-property.cc
lily/tuplet-bracket.cc
lily/tuplet-engraver.cc

index fa650d9890c06459b6622bc8b61ddf5ae3b01131..dca84c09bcaa7f2c89874b9ec1b982fef673181f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2004-04-12  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * lily/include/lily-guile.hh: is_x -> ly_c_X_p naming.
+
        * lily/lexer.ll: change is_string -> ly_c_string_p 
 
        * input/mutopia/J.S.Bach/wtk1-fugue2.ly (bassdux): use \book.
index 0258e9d889b6d5b95aab51e7c8b2315cbb5d5556..ef374b50140e6740d185e8876cc40bc4a1955525 100644 (file)
@@ -163,7 +163,7 @@ number_accidentals (bool *different,
   int number = 0;
 
   *different = false;
-  if (ly_c_pair_p (accidentals) && !is_symbol (ly_car (accidentals)))
+  if (ly_c_pair_p (accidentals) && !ly_c_symbol_p (ly_car (accidentals)))
     warning (_f ("Accidental typesetting list must begin with context-name: %s", 
                 ly_scm2string (ly_car (accidentals)).to_str0 ()));
   
@@ -178,9 +178,9 @@ number_accidentals (bool *different,
          SCM localsig = origin->get_property ("localKeySignature");
          
          bool same_octave_b = 
-           is_eq (ly_symbol2scm ("same-octave"), type);
+           ly_c_eq_p (ly_symbol2scm ("same-octave"), type);
          bool any_octave_b = 
-           is_eq (ly_symbol2scm ("any-octave"), type);
+           ly_c_eq_p (ly_symbol2scm ("any-octave"), type);
 
          if (same_octave_b || any_octave_b)
            {
@@ -199,7 +199,7 @@ number_accidentals (bool *different,
       /*
        if symbol then it is a context name. Scan parent contexts to find it.
       */
-      else if (is_symbol (rule))
+      else if (ly_c_symbol_p (rule))
        {
          Context * dad = origin;
          while (dad && !dad->is_alias (rule))
@@ -441,7 +441,7 @@ Accidental_engraver::acknowledge_grob (Grob_info info)
       && Rhythmic_head::has_interface (info.grob_))
     {
       if (to_boolean ( get_property ("harmonicAccidentals"))
-         || !is_equal (info.grob_->get_property ("style"),
+         || !ly_c_equal_p (info.grob_->get_property ("style"),
                          ly_symbol2scm ("harmonic")))
        {
          
index 1464f922c0db11a3761b233f9cd952346fd95b0a..755ce60e1054cd3063cd9d67b4e6c05103d908b2 100644 (file)
@@ -60,13 +60,13 @@ Accidental_interface::accurate_boxes (Grob *a,Grob**common)
   if (to_boolean (a->get_property ("cautionary")))
     {
       SCM cstyle = a->get_property ("cautionary-style");
-      parens = is_equal (cstyle, ly_symbol2scm ("parentheses"));
+      parens = ly_c_equal_p (cstyle, ly_symbol2scm ("parentheses"));
 
     }
 
   SCM accs = a->get_property ("accidentals");
   SCM scm_style = a->get_property ("style");
-  if (!is_symbol (scm_style)
+  if (!ly_c_symbol_p (scm_style)
       && !parens
       && scm_ilength (accs) == 1)
     {
@@ -175,13 +175,13 @@ Accidental_interface::print (SCM smob)
   if (caut)
     {
       SCM cstyle = me->get_property ("cautionary-style");
-      parens = is_equal (cstyle, ly_symbol2scm ("parentheses"));
-      smaller = is_equal (cstyle, ly_symbol2scm ("smaller"));
+      parens = ly_c_equal_p (cstyle, ly_symbol2scm ("parentheses"));
+      smaller = ly_c_equal_p (cstyle, ly_symbol2scm ("smaller"));
     }
 
   SCM scm_style = me->get_property ("style");
   String style;
-  if (is_symbol (scm_style))
+  if (ly_c_symbol_p (scm_style))
     {
       style = ly_symbol2string (scm_style);
     }
index b68b0721a3dc2ad90a04cd8a86e5e5c6d51953d9..30c1a9f281f1a69705b6771d1596daed6833e302 100644 (file)
@@ -149,7 +149,7 @@ Ambitus::print (SCM smob)
 
   SCM scm_note_head_style = me->get_property ("note-head-style");
   String note_head_style;
-  if (is_symbol (scm_note_head_style))
+  if (ly_c_symbol_p (scm_note_head_style))
     {
       String note_head_style =
        ly_symbol2string (scm_note_head_style);
@@ -244,7 +244,7 @@ Ambitus::print (SCM smob)
   SCM key_signature = me->get_property ("key-signature");
   SCM scm_accidentals_style = me->get_property ("accidentals-style");
   String accidentals_style;
-  if (is_symbol (scm_accidentals_style))
+  if (ly_c_symbol_p (scm_accidentals_style))
     {
       accidentals_style =
        ly_symbol2string (scm_accidentals_style);
index 6d1b0b07783d0a3fd1f26177ec70f07a15264666..2530038c99891fd182e7a4c169849543f7f6d200 100644 (file)
@@ -29,7 +29,7 @@ Balloon_interface::print (SCM smob)
   SCM cb = me->get_property ("balloon-original-callback");
   SCM scm_mol  =  SCM_EOL;
 
-  if (is_procedure (cb))
+  if (ly_c_procedure_p (cb))
     {
       scm_mol = scm_call_1 (cb, smob);
     }
index 58d26c29afc06816361935709658b0bf80618f18..6f51478f337f57c6210b839d9d5ac7ec550c1d50 100644 (file)
@@ -30,7 +30,7 @@ Bar_line::print (SCM smob)
 
   SCM s = me->get_property ("glyph");
   SCM barsiz_proc = me->get_property ("bar-size-procedure");
-  if (ly_c_string_p (s) && is_procedure (barsiz_proc))
+  if (ly_c_string_p (s) && ly_c_procedure_p (barsiz_proc))
     {
       String str  =ly_scm2string (s);
       SCM siz = scm_call_1 (barsiz_proc, me->self_scm ());
@@ -170,7 +170,7 @@ Bar_line::before_line_breaking (SCM smob)
       // leave y_extent for spanbar? 
     }
 
-  if (! is_equal (g, orig))
+  if (! ly_c_equal_p (g, orig))
     me->set_property ("glyph", g);
 
   return SCM_UNSPECIFIED;
index a2be6ba670eea98807723ae583bdbd13276f28d5..931ca71890b72588642e867bd2ad9a28c7a53682 100644 (file)
@@ -54,7 +54,7 @@ Bar_number_engraver::process_music ()
        {
          SCM bn = get_property ("currentBarNumber");
          SCM proc = get_property ("barNumberVisibility");
-         if (is_number (bn) && is_procedure (proc)
+         if (is_number (bn) && ly_c_procedure_p (proc)
              && to_boolean (scm_call_1(proc, bn)))
            {
              create_items ();
index 53accaaf161b414937e9e412ccbcf33b38af7551..6909c464fb0fc135e76be860950e5cbbed7e302d 100644 (file)
@@ -79,7 +79,7 @@ Beam::get_beam_translation (Grob *me)
 {
   SCM func = me->get_property ("space-function");
 
-  if (is_procedure (func))
+  if (ly_c_procedure_p (func))
     {
       SCM s = scm_call_2 (func, me->self_scm (), scm_int2num (get_beam_count (me)));
       return ly_scm2double (s);
@@ -1525,7 +1525,7 @@ bool
 Beam::is_knee (Grob* me)
 {
   SCM k = me->get_property ("knee");
-  if (is_boolean (k))
+  if (ly_c_boolean_p (k))
     return ly_scm2bool (k);
 
   bool knee = false;
index 8af78e608113109aa29d5920ca6e234b0872e0d5..e462297fc8bdf057ec0ec53ee53d8608d9c34f7e 100644 (file)
@@ -92,7 +92,7 @@ Break_align_engraver::acknowledge_grob (Grob_info inf)
        return ;
 
       SCM align_name = item->get_property ("break-align-symbol");
-      if (!is_symbol (align_name))
+      if (!ly_c_symbol_p (align_name))
        return ;
 
       if (!align_)
index a7b0e718c1c1e0927a7e5cc6fb53031b1b819bf4..b8c5c739ababb620b7eb2e20967c3f5524800d96 100644 (file)
@@ -76,7 +76,7 @@ Break_align_interface::ordered_elements (Grob *grob)
   Item *me  = dynamic_cast<Item*> (grob);
   SCM elts = me->get_property ("elements");
   SCM order_vec = me->get_property ("break-align-orders");
-  if (!is_vector (order_vec)
+  if (!ly_c_vector_p (order_vec)
       || ly_vector_length (order_vec) < 3)
     return  Pointer_group_interface__extract_grobs (me, (Grob*)0,
                                                    "elements");
@@ -186,7 +186,7 @@ Break_align_interface::do_alignment (Grob *grob)
        reason.
       */
       for (SCM s = r ? r->get_property ("elements") : SCM_EOL;
-          !is_symbol (rsym) && ly_c_pair_p (s); s = ly_cdr (s))
+          !ly_c_symbol_p (rsym) && ly_c_pair_p (s); s = ly_cdr (s))
        {
          Grob * elt =unsmob_grob (ly_car (s));
 
@@ -197,14 +197,14 @@ Break_align_interface::do_alignment (Grob *grob)
        edge_idx = next_idx;
 
       SCM entry = SCM_EOL;
-      if (is_symbol (rsym))
+      if (ly_c_symbol_p (rsym))
        entry = scm_assq (rsym, alist);
 
       bool entry_found = ly_c_pair_p (entry);
       if (!entry_found)
        {
          String sym_string;
-         if (is_symbol (rsym))
+         if (ly_c_symbol_p (rsym))
            sym_string = ly_symbol2string (rsym);
 
          String orig_string ;
index 1c749d1bef219e7ed17f9680c5f543becff112c4..f7dee18a75b9e204699bb7440c1eb96a08b58f1a 100644 (file)
@@ -91,7 +91,7 @@ do_break_substitution (SCM src)
  
   if (unsmob_grob (src))
     return substitute_grob (unsmob_grob (src));
-  else if (is_vector (src))
+  else if (ly_c_vector_p (src))
     {
       int len = SCM_VECTOR_LENGTH (src);
       SCM nv = scm_c_make_vector (len, SCM_UNDEFINED);
index 05f0dd75b50fa6bcf2d9f9c6bd413607aa57b5d5..c8ba1d2bebb98a22c8db25a4b9b6632563ece822 100644 (file)
@@ -114,7 +114,7 @@ Chord_name_engraver::process_music ()
   announce_grob (chord_name_, notes_[0]->self_scm ());
   SCM s = get_property ("chordChanges");
   if (to_boolean (s) && ly_c_pair_p (last_chord_) 
-      && is_equal (chord_as_scm, last_chord_))
+      && ly_c_equal_p (chord_as_scm, last_chord_))
     chord_name_->set_property ("begin-of-line-visible", SCM_BOOL_T);
 
   last_chord_ = chord_as_scm;
index 6dfea67e99d0c7a980a61df8611d6ea1811dc02a..86b062b8098f37bb36502bb5fa4d2163260b4b2f 100644 (file)
@@ -41,7 +41,7 @@ brew_cluster_piece (Grob *me, Array<Offset> bottom_points, Array<Offset> top_poi
   SCM shape_scm = me->get_property ("style");
   String shape;
 
-  if (is_symbol (shape_scm))
+  if (ly_c_symbol_p (shape_scm))
     {
       shape = ly_symbol2string (shape_scm);
     }
index e782acbfda959eb786b888f7ca3564805ea40848..e4719129ccc705e8ea97b0f16cb6e829be21769f 100644 (file)
@@ -177,7 +177,7 @@ Context_def::get_accepted (SCM user_mod) const
 Link_array<Context_def>
 Context_def::path_to_acceptable_context (SCM type_sym, Music_output_def* odef) const
 {
-  assert (is_symbol (type_sym));
+  assert (ly_c_symbol_p (type_sym));
   
   SCM accepted = get_accepted (SCM_EOL);
 
@@ -196,7 +196,7 @@ Context_def::path_to_acceptable_context (SCM type_sym, Music_output_def* odef) c
       /*
        don't check aliases, because \context Staff should not create RhythmicStaff.
       */
-      if (is_equal (accepteds[i]->get_context_name (), type_sym))
+      if (ly_c_equal_p (accepteds[i]->get_context_name (), type_sym))
        {
          best_result.push (accepteds[i]);
          return best_result;
@@ -382,7 +382,7 @@ Context_def::to_alist () const
   l = scm_cons (scm_cons (ly_symbol2scm ("property-ops"),  property_ops_), l);
   l = scm_cons (scm_cons (ly_symbol2scm ("context-name"),  context_name_), l);
 
-  if (is_symbol (translator_group_type_))
+  if (ly_c_symbol_p (translator_group_type_))
     l = scm_cons (scm_cons (ly_symbol2scm ("group-type"),  translator_group_type_), l);    
 
   return l;  
index 5cbce02ddd3a57c444842b21a55d11bb36b938ed..6457482b209a1b2d1d06264fdb616f99c16c482c 100644 (file)
@@ -42,8 +42,8 @@ LY_DEFINE (ly_context_pushpop_property, "ly:context-pushpop-property",
 {
   Context *tg = unsmob_context (context);
   SCM_ASSERT_TYPE (tg, context, SCM_ARG1, __FUNCTION__, "context");
-  SCM_ASSERT_TYPE (is_symbol (grob), grob, SCM_ARG2, __FUNCTION__, "symbol");
-  SCM_ASSERT_TYPE (is_symbol (eltprop), eltprop, SCM_ARG3, __FUNCTION__, "symbol");
+  SCM_ASSERT_TYPE (ly_c_symbol_p (grob), grob, SCM_ARG2, __FUNCTION__, "symbol");
+  SCM_ASSERT_TYPE (ly_c_symbol_p (eltprop), eltprop, SCM_ARG3, __FUNCTION__, "symbol");
 
   execute_pushpop_property (tg, grob, eltprop, val);
 
@@ -57,7 +57,7 @@ LY_DEFINE (ly_context_property, "ly:context-property",
   Context *t = unsmob_context (c);
   Context * tr= (t);
   SCM_ASSERT_TYPE (tr, c, SCM_ARG1, __FUNCTION__, "Translator group");
-  SCM_ASSERT_TYPE (is_symbol (name), name, SCM_ARG2, __FUNCTION__, "symbol");
+  SCM_ASSERT_TYPE (ly_c_symbol_p (name), name, SCM_ARG2, __FUNCTION__, "symbol");
 
   return tr->internal_get_property (name);
 }
@@ -69,7 +69,7 @@ LY_DEFINE (ly_context_set_property, "ly:context-set-property!",
 {
   Context *tr = unsmob_context (context);
   SCM_ASSERT_TYPE (tr, context, SCM_ARG1, __FUNCTION__, "Context");
-  SCM_ASSERT_TYPE (is_symbol (name), name, SCM_ARG2, __FUNCTION__, "symbol");
+  SCM_ASSERT_TYPE (ly_c_symbol_p (name), name, SCM_ARG2, __FUNCTION__, "symbol");
 
   tr->internal_set_property (name, val);
 
@@ -83,7 +83,7 @@ LY_DEFINE (ly_context_property_where_defined, "ly:context-property-where-defined
 {
   Context *tr = unsmob_context (context);
   SCM_ASSERT_TYPE (tr, context, SCM_ARG1, __FUNCTION__, "Context");
-  SCM_ASSERT_TYPE (is_symbol (name), name, SCM_ARG2, __FUNCTION__, "symbol");
+  SCM_ASSERT_TYPE (ly_c_symbol_p (name), name, SCM_ARG2, __FUNCTION__, "symbol");
 
   tr = tr->where_defined (name);
   if (tr)
@@ -98,7 +98,7 @@ LY_DEFINE (ly_unset_context_property, "ly:context-unset-property", 2, 0, 0,
 {
   Context *tr = unsmob_context (context);
   SCM_ASSERT_TYPE (tr, context, SCM_ARG1, __FUNCTION__, "Context");
-  SCM_ASSERT_TYPE (is_symbol (name), name, SCM_ARG2, __FUNCTION__, "symbol");
+  SCM_ASSERT_TYPE (ly_c_symbol_p (name), name, SCM_ARG2, __FUNCTION__, "symbol");
 
   tr->unset_property (name);
   return SCM_UNSPECIFIED;
@@ -126,7 +126,7 @@ LY_DEFINE (ly_context_find, "ly:context-find",
 {
   Context *tr = unsmob_context (context);
   SCM_ASSERT_TYPE (tr, context, SCM_ARG1, __FUNCTION__, "context");
-  SCM_ASSERT_TYPE (is_symbol (name), name, SCM_ARG2, __FUNCTION__, "symbol");
+  SCM_ASSERT_TYPE (ly_c_symbol_p (name), name, SCM_ARG2, __FUNCTION__, "symbol");
   
   while (tr)
     {
index c50193cc2d2cf7e18788bba40e6d832204190c90..fc7a17ff1f4636c3a30178d69e8a8e8ea3c9cc92 100644 (file)
@@ -184,7 +184,7 @@ Context::default_child_context_name () const
 bool
 Context::is_bottom_context () const
 {
-  return !is_symbol (default_child_context_name ());
+  return !ly_c_symbol_p (default_child_context_name ());
 }
 
 Context*
index 1a4dcbb2d63643dda51146280c61a018a483f7ea..45f83c64dc90266ff8cd64d0c39d27f9d744972a 100644 (file)
@@ -34,7 +34,7 @@ Custos::print (SCM smob)
 
   SCM scm_style = me->get_property ("style");
   String style;
-  if (is_symbol (scm_style))
+  if (ly_c_symbol_p (scm_style))
     {
       style = ly_symbol2string (scm_style);
     }
index fd415cea7e8cebfee1d8cd36cb2866697d356dde..eb48fb48a23e0eb136dbecd7fea9e5b9191e5f97 100644 (file)
@@ -98,7 +98,7 @@ Drum_notes_engraver::process_music ()
          
          if (scm_integer_p (pos) == SCM_BOOL_T)
            note->set_property ("staff-position", pos);
-         if (is_symbol (style))
+         if (ly_c_symbol_p (style))
            note->set_property ("style", style);
 
          if (ly_c_string_p (script))
index 5e5b01d4f4d67d69476e9fd64ad4058f1f0ee11d..03ff0bf48d2faf9524d77383de4657ebd5cec835 100644 (file)
@@ -39,7 +39,7 @@ Drum_note_performer::create_audio_elements ()
       SCM sym = n->get_property ("drum-type");
       SCM defn = SCM_EOL;
 
-      if (is_symbol (sym)
+      if (ly_c_symbol_p (sym)
          &&  (scm_hash_table_p (tab) == SCM_BOOL_T))
        defn = scm_hashq_ref (tab, sym, SCM_EOL);
       
index f84551d88780454be1f5571f9165c453ffe02752..c58de021c1b5a964c638d9c5bc25fd8d41960429 100644 (file)
@@ -220,7 +220,7 @@ Dynamic_engraver::process_music ()
            start_type = "crescendo";
          
          SCM s = get_property ((start_type + "Spanner").to_str0 ());
-         if (!is_symbol (s) || s == ly_symbol2scm ("hairpin"))
+         if (!ly_c_symbol_p (s) || s == ly_symbol2scm ("hairpin"))
            {
              cresc_  = make_spanner ("Hairpin");
              cresc_->set_property ("grow-direction",
index 1b3aa246ee4ecb48591ff987c7cb19eb1a1853de..53e8a5e0d4392475d8a26eb9c49b0a4dbe4da1d7 100644 (file)
@@ -46,7 +46,7 @@ Dynamic_performer::create_audio_elements ()
       SCM proc = get_property ("dynamicAbsoluteVolumeFunction");
 
       SCM svolume  = SCM_EOL;
-      if (is_procedure (proc))
+      if (ly_c_procedure_p (proc))
        {
          // urg
          svolume = scm_call_1 (proc, script_req_->get_property ("text"));
@@ -83,7 +83,7 @@ Dynamic_performer::create_audio_elements ()
          
          
          SCM eq = get_property ("instrumentEqualizer");
-         if (is_procedure (eq))
+         if (ly_c_procedure_p (eq))
            {
              s = scm_call_1 (eq, s);
            }
index 7a1b9c6a7b2b4f257b74a3931b145d1f92f3bc99..c52a0701afe747daed22b6a9620759b9c50656e8 100644 (file)
@@ -195,7 +195,7 @@ alist_equal_p (SCM a, SCM b)
       SCM l = scm_assoc (key, b);
 
       if (l == SCM_BOOL_F
-         || !is_equal ( ly_cdr (l), val))
+         || !ly_c_equal_p ( ly_cdr (l), val))
 
        return false;
     }
index 23eeac32204a7b5106a332796cfec25d583b8fb8..bed934002ac18d5cb235b4b4f747bf53ea8f41af 100644 (file)
@@ -75,7 +75,7 @@ Figured_bass_engraver::process_music ()
   else if (figures_.size ())
     {
       SCM proc = get_property ("bassFigureFormatFunction");
-      if (is_procedure (proc)) 
+      if (ly_c_procedure_p (proc)) 
        {
          SCM l = SCM_EOL;
          SCM * t = &l;
index 6454c3998916e15bcbc26a03561e85f3254f562d..dc05bb308883b975d382f0879d1fab790a26e15c 100644 (file)
@@ -23,7 +23,7 @@ void ly_add_function_documentation (SCM func,
   if (!strlen (doc))
     return ; 
     
-  if (!is_vector (doc_hash_table ))
+  if (!ly_c_vector_p (doc_hash_table ))
     doc_hash_table = scm_make_vector (scm_int2num (59), SCM_EOL);
 
   String s = String (" - ") + "LilyPond procedure: " + fname + " " + varlist
index 6043ac40e92fb38462bc2150b8d84f50f7c48089..5a7e7d0f8d9abbd60c665b6f2fc8d5e8b2d90c78 100644 (file)
@@ -29,10 +29,10 @@ void add_interface (const char * symbol,
 LY_DEFINE (ly_add_interface, "ly:add-interface", 3,0,0, (SCM a, SCM b, SCM c),
          "Add an interface description.")
 {
-  SCM_ASSERT_TYPE (is_symbol (a), a, SCM_ARG1, __FUNCTION__, "symbol");
+  SCM_ASSERT_TYPE (ly_c_symbol_p (a), a, SCM_ARG1, __FUNCTION__, "symbol");
   SCM_ASSERT_TYPE (ly_c_string_p (b), b, SCM_ARG2, __FUNCTION__, "string");  
-  SCM_ASSERT_TYPE (is_list (c), c, SCM_ARG3, __FUNCTION__, "list of syms");    
-  if (!is_vector (all_ifaces))
+  SCM_ASSERT_TYPE (ly_c_list_p (c), c, SCM_ARG3, __FUNCTION__, "list of syms");    
+  if (!ly_c_vector_p (all_ifaces))
     all_ifaces = scm_make_vector (scm_int2num (40), SCM_EOL);
 
   SCM entry = scm_list_n (a, b, c, SCM_UNDEFINED);
index 39590e6f65afb33b74a078c9cbdb1948c251f22e..80d468abe68a37d16923d722bc9fce8e56353f60 100644 (file)
@@ -21,7 +21,7 @@ LY_DEFINE (ly_grob_set_property,"ly:grob-set-property!", 3, 0, 0,
 {
   Grob * sc = unsmob_grob (grob);
   SCM_ASSERT_TYPE (sc, grob, SCM_ARG1, __FUNCTION__, "grob");
-  SCM_ASSERT_TYPE (is_symbol (sym), sym, SCM_ARG2, __FUNCTION__, "symbol");
+  SCM_ASSERT_TYPE (ly_c_symbol_p (sym), sym, SCM_ARG2, __FUNCTION__, "symbol");
 
   if (!type_check_assignment (sym, val, ly_symbol2scm ("backend-type?")))
     error ("typecheck failed");
@@ -40,7 +40,7 @@ LY_DEFINE (ly_get_property, "ly:grob-property",
 {
   Grob *sc = unsmob_grob (grob);
   SCM_ASSERT_TYPE (sc, grob, SCM_ARG1, __FUNCTION__, "grob");
-  SCM_ASSERT_TYPE (is_symbol (sym), sym, SCM_ARG2, __FUNCTION__, "symbol");
+  SCM_ASSERT_TYPE (ly_c_symbol_p (sym), sym, SCM_ARG2, __FUNCTION__, "symbol");
 
   return sc->internal_get_property (sym);
 }
index 072f77a00a648ca16cc8b6b005240800b7934ba6..6e3833f5fd9362388b1c9b3cc8ff870512307060 100644 (file)
@@ -112,8 +112,8 @@ Grob::Grob (SCM basicprops)
       if (is_number_pair (xt))
        cb = xt;
       else if (cb != SCM_BOOL_F
-         && !is_procedure (cb) && !ly_c_pair_p (cb)
-         && is_procedure (get_property ("print-function")))
+         && !ly_c_procedure_p (cb) && !ly_c_pair_p (cb)
+         && ly_c_procedure_p (get_property ("print-function")))
        cb = stencil_extent_proc;
     
       dim_cache_[a].dimension_ = cb;
@@ -195,7 +195,7 @@ Grob::calculate_dependencies (int final, int busy, SCM funcname)
 
   
   SCM proc = internal_get_property (funcname);
-  if (is_procedure (proc))
+  if (ly_c_procedure_p (proc))
     scm_call_1 (proc, this->self_scm ());
  
   status_= final;
@@ -230,7 +230,7 @@ Grob::get_uncached_stencil ()const
   SCM proc = get_property ("print-function");
 
   SCM  mol = SCM_EOL;
-  if (is_procedure (proc)) 
+  if (ly_c_procedure_p (proc)) 
     mol = scm_apply_0 (proc, scm_list_n (this->self_scm (), SCM_UNDEFINED));
   
   Stencil *m = unsmob_stencil (mol);
@@ -476,7 +476,7 @@ bool
 Grob::is_empty (Axis a)const
 {
   return ! (ly_c_pair_p (dim_cache_[a].dimension_) ||
-           is_procedure (dim_cache_[a].dimension_));
+           ly_c_procedure_p (dim_cache_[a].dimension_));
 }
 
 Interval
@@ -489,7 +489,7 @@ Grob::extent (Grob * refp, Axis a) const
   Interval ext ;   
   if (ly_c_pair_p (d->dimension_))
     ;
-  else if (is_procedure (d->dimension_))
+  else if (ly_c_procedure_p (d->dimension_))
     {
       /*
        FIXME: add doco on types, and should typecheck maybe? 
@@ -593,7 +593,7 @@ Grob::name () const
   SCM meta = get_property ("meta");
   SCM nm = scm_assoc (ly_symbol2scm ("name"), meta);
   nm = (ly_c_pair_p (nm)) ? ly_cdr (nm) : SCM_EOL;
-  return  is_symbol (nm) ? ly_symbol2string (nm) :  classname (this);  
+  return  ly_c_symbol_p (nm) ? ly_symbol2string (nm) :  classname (this);  
 }
 
 void
index c2fd7033c666bea314e7c3cdc6ca302545c7a951..f9b1b2072c371a7b4c9ff68ce1018f44111d7f0d 100644 (file)
@@ -191,16 +191,16 @@ inline SCM ly_assoc_front_x(SCM alist, SCM key, SCM val)
   return scm_acons(key, val, scm_assoc_remove_x (alist, key));
 }
 inline bool ly_c_pair_p (SCM x) { return SCM_NFALSEP (scm_pair_p (x)); }
-inline bool is_symbol (SCM x) { return SCM_SYMBOLP (x); }
-inline bool is_boolean (SCM x) { return SCM_BOOLP (x); }
-inline bool is_char (SCM x) { return SCM_CHARP (x); }
+inline bool ly_c_symbol_pi (SCM x) { return SCM_SYMBOLP (x); }
+inline bool ly_c_boolean_p (SCM x) { return SCM_BOOLP (x); }
+inline bool ly_c_char_p (SCM x) { return SCM_CHARP (x); }
 inline bool is_number (SCM x) { return SCM_NUMBERP (x); }
 inline bool ly_c_string_p (SCM x) { return SCM_STRINGP (x); }
-inline bool is_vector (SCM x) { return SCM_VECTORP (x); }
-inline bool is_list (SCM x) { return SCM_NFALSEP (scm_list_p (x)); }
-inline bool is_procedure (SCM x) { return SCM_NFALSEP (scm_procedure_p (x)); }
-inline bool is_eq (SCM x, SCM y) { return SCM_EQ_P (x, y); }
-inline bool is_equal (SCM x, SCM y) { 
+inline bool ly_c_vector_p (SCM x) { return SCM_VECTORP (x); }
+inline bool ly_c_list_p (SCM x) { return SCM_NFALSEP (scm_list_p (x)); }
+inline bool ly_c_procedure_p (SCM x) { return SCM_NFALSEP (scm_procedure_p (x)); }
+inline bool ly_c_eq_p (SCM x, SCM y) { return SCM_EQ_P (x, y); }
+inline bool ly_c_equal_p (SCM x, SCM y) { 
   return SCM_NFALSEP (scm_equal_p (x, y)); 
 }
 
index cfaef8ae790399a793c54653b990136f62003c3a..e9c0e6df46cedfed76eb7faa5eb33518e6fb7553 100644 (file)
@@ -153,7 +153,7 @@ Item::handle_prebroken_dependencies ()
     more complicated things.
   */
   SCM vis = get_property ("break-visibility");
-  if (is_procedure (vis))
+  if (ly_c_procedure_p (vis))
     {
       SCM args = scm_list_n (scm_int2num (break_status_dir ()), SCM_UNDEFINED);
       SCM result = scm_apply_0 (vis, args);
index 927cc6032f0f3b7022a6f627aae9a922e8605099..c4209caa2ec218c54721b88b3aface0e06144386 100644 (file)
@@ -79,7 +79,7 @@ Key_engraver::create_key (bool def)
   if (!def)
     {
       SCM vis = get_property ("explicitKeySignatureVisibility"); 
-      if (is_procedure (vis))
+      if (ly_c_procedure_p (vis))
        item_->set_property ("break-visibility",vis);
     }
 }      
index 1ba6e4ed5f055aaebfe227dffd14388d753b0909..0616dcffcb23529114bfb445353dedd168948499 100644 (file)
@@ -104,7 +104,7 @@ Key_signature_interface::print (SCM smob)
 
   SCM scm_style = me->get_property ("style");
   String style;
-  if (is_symbol (scm_style))
+  if (ly_c_symbol_p (scm_style))
     {
       style = ly_symbol2string (scm_style);
     }
index 2a2b403e42065e90a7361d2e8c8246d8acee71e0..cbed6fcc566eb1039d33fff58c08c60efba0653b 100644 (file)
@@ -468,7 +468,7 @@ HYPHEN              --
                String str (YYText () + 1);
                SCM s = lookup_markup_command (str);
 
-               if (ly_c_pair_p (s) && is_symbol (ly_cdr (s)) ) {
+               if (ly_c_pair_p (s) && ly_c_symbol_p (ly_cdr (s)) ) {
                        yylval.scm = ly_car(s);
                        SCM tag = ly_cdr(s);
                        if (tag == ly_symbol2scm("markup0"))
@@ -683,7 +683,7 @@ My_lily_lexer::scan_bare_word (String str)
                        yylval.scm = ly_cdr (handle);
                        if (unsmob_pitch (yylval.scm)) 
                            return (YYSTATE == notes) ? NOTENAME_PITCH : TONICNAME_PITCH;
-                       else if (is_symbol (yylval.scm))
+                       else if (ly_c_symbol_p (yylval.scm))
                            return DRUM_PITCH;
                }
                else if ((handle = scm_hashq_get_handle (chordmodifier_tab_, sym))!= SCM_BOOL_F)
index ac0e1176a3851aed0f78582277cdacf750f441ac..e821369ac2fe832903161feee7a0dee3855656c4 100644 (file)
@@ -73,7 +73,7 @@ ly_quote_scm (SCM s)
 String
 ly_symbol2string (SCM s)
 {
-  assert (is_symbol (s));
+  assert (ly_c_symbol_p (s));
   return String ((Byte*)SCM_STRING_CHARS (s), (int) SCM_STRING_LENGTH (s));
 }
 
@@ -292,7 +292,7 @@ ly_interval2scm (Drul_array<Real> i)
 bool
 to_boolean (SCM s)
 {
-  return is_boolean (s) && ly_scm2bool (s);
+  return ly_c_boolean_p (s) && ly_scm2bool (s);
 }
 
 /* Appendable list L: the cdr contains the list, the car the last cons
@@ -386,7 +386,7 @@ ly_deep_copy (SCM src)
 {
   if (ly_c_pair_p (src))
     return scm_cons (ly_deep_copy (ly_car (src)), ly_deep_copy (ly_cdr (src)));
-  else if (is_vector (src))
+  else if (ly_c_vector_p (src))
     {
       int len = SCM_VECTOR_LENGTH (src);
       SCM nv = scm_c_make_vector (len, SCM_UNDEFINED);
@@ -527,7 +527,7 @@ type_check_assignment (SCM sym, SCM val,  SCM type_symbol)
   if (val == SCM_EOL || val == SCM_BOOL_F)
     return ok;
 
-  if (!is_symbol (sym))
+  if (!ly_c_symbol_p (sym))
 #if 0
     return false;
 #else
@@ -544,7 +544,7 @@ type_check_assignment (SCM sym, SCM val,  SCM type_symbol)
   
   SCM type = scm_object_property (sym, type_symbol);
 
-  if (type != SCM_EOL && !is_procedure (type))
+  if (type != SCM_EOL && !ly_c_procedure_p (type))
       {
        warning (_f ("Can't find property type-check for `%s' (%s).",
                     ly_symbol2string (sym).to_str0 (),
@@ -560,7 +560,7 @@ type_check_assignment (SCM sym, SCM val,  SCM type_symbol)
   else
     {
       if (val != SCM_EOL
-         && is_procedure (type)
+         && ly_c_procedure_p (type)
          && scm_call_1 (type, val) == SCM_BOOL_F)
        {
          SCM errport = scm_current_error_port ();
@@ -595,7 +595,7 @@ ly_unique (SCM list)
   for (SCM i = list; ly_c_pair_p (i); i = ly_cdr (i))
     {
       if (!ly_c_pair_p (ly_cdr (i))
-         || !is_equal (ly_car (i), ly_cadr (i)))
+         || !ly_c_equal_p (ly_car (i), ly_cadr (i)))
        unique = scm_cons (ly_car (i), unique);
     }
   return scm_reverse_x (unique, SCM_EOL);
@@ -658,7 +658,7 @@ ly_split_list (SCM s, SCM list)
     {
       SCM i = ly_car (after);
       after = ly_cdr (after);
-      if (is_equal (i, s))
+      if (ly_c_equal_p (i, s))
        break;
       before = scm_cons (i, before);
     }
index 854a641f63c038113130c2caa25fa9e6c6793f9f..023c504f21602f2f07eaf49abad11dc5eb094335 100644 (file)
@@ -98,7 +98,7 @@ Line_spanner::line_stencil (Grob *me,
 {
   Offset dz = to -from ; 
   SCM type = me->get_property ("style");
-  if (is_symbol (type)
+  if (ly_c_symbol_p (type)
       && (type == ly_symbol2scm ("line")
          || type == ly_symbol2scm ("dashed-line")
          || type == ly_symbol2scm ("dotted-line")
@@ -109,7 +109,7 @@ Line_spanner::line_stencil (Grob *me,
        ? zigzag_stencil (me, from, to)
        : Line_interface::line (me, from, to);
     }
-  else if (is_symbol (type)
+  else if (ly_c_symbol_p (type)
           && type == ly_symbol2scm ("trill"))
     {
       SCM alist_chain = Font_interface::text_font_alist_chain (me);
index 7281e21f54deaf56135e81aa87a3e10d75a38536..18733b052704131d222173623231dcb8b94c48ed 100644 (file)
@@ -113,7 +113,7 @@ Mark_engraver::process_music ()
       SCM m = mark_ev_->get_property ("label");
       SCM proc = get_property ("markFormatter");
       if (!Text_item::markup_p (m) &&
-         is_procedure (proc))
+         ly_c_procedure_p (proc))
        {
          if (!is_number (m)) 
            m =  get_property ("rehearsalMark");
index d3bc1ec780efe82e0bbb70fe5decf0c09d825d51..c4cf900dca52d6ea51c5fc2f16bebbf7afae0fcd 100644 (file)
@@ -78,7 +78,7 @@ Music_iterator::get_static_get_iterator (Music *m)
 
   SCM ctor = m->get_property ("iterator-ctor") ;
   SCM iter = SCM_EOL;
-  if (is_procedure (ctor))
+  if (ly_c_procedure_p (ctor))
     {
       iter = scm_call_0 (ctor);
       p = unsmob_iterator (iter);
index 528608529213272d618545908ad9108d1a69acb2..608b640ecbcef189dd165c8f49ceb6d1d8a6c4c8 100644 (file)
@@ -133,7 +133,7 @@ LY_DEFINE (ly_paper_lookup, "ly:paper-lookup",
 {
   Music_output_def *op = unsmob_music_output_def (pap);
   SCM_ASSERT_TYPE (op, pap, SCM_ARG1, __FUNCTION__, "Paper");
-  SCM_ASSERT_TYPE (is_symbol (sym), sym, SCM_ARG2, __FUNCTION__, "symbol");
+  SCM_ASSERT_TYPE (ly_c_symbol_p (sym), sym, SCM_ARG2, __FUNCTION__, "symbol");
 
   SCM var = ly_module_lookup (op->scope_, sym);
   if (SCM_VARIABLEP (var))
index e63c20fabec7dd63c801962f3f420b6097e51772..4c58b9c757ccd51226b38a5f8c05ef73050f8cc0 100644 (file)
@@ -28,7 +28,7 @@ String
 Music::name () const
 {
   SCM nm = get_property ("name");
-  if (is_symbol (nm))
+  if (ly_c_symbol_p (nm))
     {
       return ly_symbol2string (nm);
     }
@@ -87,7 +87,7 @@ Music::get_length () const
   SCM lst = get_property ("length");
   if (unsmob_moment (lst))
     return *unsmob_moment (lst);
-  else if (is_procedure (lst))
+  else if (ly_c_procedure_p (lst))
     {
       SCM res = scm_call_1 (lst, self_scm ());
       return *unsmob_moment (res);
@@ -100,7 +100,7 @@ Moment
 Music::start_mom () const
 {
   SCM lst = get_property ("start-moment-function");
-  if (is_procedure (lst))
+  if (ly_c_procedure_p (lst))
     {
       SCM res = scm_call_1 (lst, self_scm ());
       return *unsmob_moment (res);
@@ -130,7 +130,7 @@ Music::print_smob (SCM s, SCM p, scm_print_state*)
   Music* m = unsmob_music (s);
 
   SCM nm = m->get_property ("name");
-  if (is_symbol (nm) || ly_c_string_p (nm))
+  if (ly_c_symbol_p (nm) || ly_c_string_p (nm))
     scm_display (nm, p);
   else
     scm_puts (classname (m),p);
@@ -231,7 +231,7 @@ LY_DEFINE (ly_music_property,
 {
   Music * sc = unsmob_music (mus);
   SCM_ASSERT_TYPE (sc, mus, SCM_ARG1, __FUNCTION__, "music");
-  SCM_ASSERT_TYPE (is_symbol (sym), sym, SCM_ARG2, __FUNCTION__, "symbol");
+  SCM_ASSERT_TYPE (ly_c_symbol_p (sym), sym, SCM_ARG2, __FUNCTION__, "symbol");
 
   return sc->internal_get_property (sym);
 }
@@ -242,7 +242,7 @@ LY_DEFINE (ly_music_set_property, "ly:music-set-property!",
 {
   Music * sc = unsmob_music (mus);
   SCM_ASSERT_TYPE (sc, mus, SCM_ARG1, __FUNCTION__, "music");
-  SCM_ASSERT_TYPE (is_symbol (sym), sym, SCM_ARG2, __FUNCTION__, "symbol");
+  SCM_ASSERT_TYPE (ly_c_symbol_p (sym), sym, SCM_ARG2, __FUNCTION__, "symbol");
 
   bool ok = type_check_assignment (sym, val, ly_symbol2scm ("music-type?"));
   if (ok)
index 5f823b2a35cfdf11df2bb30fb76eed18c4df8f99..df34f77a9edf3bafc518402528a82a74734e7c7e 100644 (file)
@@ -155,7 +155,7 @@ LY_DEFINE (ly_set_point_and_click, "ly:set-point-and-click", 1, 0, 0,
     val = scm_c_eval_string ("line-location");
 
   scm_module_define (global_lily_module, ly_symbol2scm ("point-and-click"), val);
-  store_locations_global_b = is_procedure (val);
+  store_locations_global_b = ly_c_procedure_p (val);
   return SCM_UNSPECIFIED;
 }
 
index 8d5083c28612e8611e5745a4c4152ef4da747712..a72e72cd90b1a3aaa6d0372aa445af4ba91a1a0b 100644 (file)
@@ -74,7 +74,7 @@ check_meshing_chords (Grob *me,
 
 
   /* Do not merge notes typeset in different style. */
-  if ( !is_equal (nu->get_property ("style"),
+  if ( !ly_c_equal_p (nu->get_property ("style"),
                     nd->get_property ("style") ) )
     merge_possible = false;
   
index 61603b23d46579890f7544646af699427e223343..a7accb9c75fb94b18cac7ac0a720bfe66e8f1bb1 100644 (file)
@@ -122,7 +122,7 @@ Stencil
 internal_print (Grob *me, bool with_ledgers)
 {
   SCM style  = me->get_property ("style");
-  if (!is_symbol (style))
+  if (!ly_c_symbol_p (style))
     {
       return Stencil ();
     }
@@ -251,7 +251,7 @@ Note_head::brew_ez_stencil (SCM smob)
   SCM idx = scm_int2num (pit->get_notename ());
   SCM names = me->get_property ("note-names");
   SCM charstr = SCM_EOL;
-  if (is_vector (names))
+  if (ly_c_vector_p (names))
     charstr = scm_vector_ref (names, idx);
   else
     {
@@ -291,7 +291,7 @@ Note_head::stem_attachment_coordinate (Grob *me, Axis a)
   if (brewer == Note_head::print_proc)
     {
       SCM style  = me->get_property ("style");
-      if (!is_symbol (style))
+      if (!ly_c_symbol_p (style))
        {
          return 0.0;
        }
@@ -317,7 +317,7 @@ Note_head::stem_attachment_coordinate (Grob *me, Axis a)
     Fallback
    */
   SCM v = me->get_property ("stem-attachment-function");
-  if (!is_procedure (v))
+  if (!ly_c_procedure_p (v))
     return 0.0;
   
   SCM result = scm_call_2 (v, me->self_scm (), scm_int2num (a));
index c7a6759220f2d97511853569461f10554dbc854f..a0b2fbda7ad2188cb3dff4bde1a16707a5e4f551 100644 (file)
@@ -45,7 +45,7 @@ Output_property_engraver::acknowledge_grob (Grob_info inf)
 
 
 
-      if (is_procedure (pred))
+      if (ly_c_procedure_p (pred))
        {
          /*
            should typecheck pred. 
index 8196e63f1e3b4b4ef248aa92ed78367f1ceace9d..d751a0eb87abc6901eaea3555a7e5eaed373a2bd 100644 (file)
@@ -129,7 +129,7 @@ Paper_def::find_scaled_font (Font_metric *f, Real m, SCM input_enc_name)
     {
       SCM scale_var = ly_module_lookup (scope_, ly_symbol2scm ("outputscale"));
 
-      if (!is_symbol (input_enc_name))
+      if (!ly_c_symbol_p (input_enc_name))
        {
          SCM var = ly_module_lookup (scope_, ly_symbol2scm ("inputencoding"));
          input_enc_name = scm_variable_ref (var);
index 3798e3fbc2096a1370c0a5bc4889003637fb71c4..f2089487d6899da42df38d95c2f75417e24a6298 100644 (file)
@@ -71,9 +71,9 @@ void
 tag_music (Music *m, SCM tag, Input ip)
 {
        SCM tags = m->get_property ("tags");
-       if (is_symbol (tag))
+       if (ly_c_symbol_p (tag))
                tags = scm_cons (tag, tags);
-       else if (is_list (tag))
+       else if (ly_c_list_p (tag))
                tags = ly_append2 (tag, tags);
        else
                ip.warning (_ ("Tag must be symbol or list of symbols."));
@@ -106,7 +106,7 @@ SCM
 make_simple_markup (SCM encoding, SCM a)
 {
        SCM simple = ly_scheme_function ("simple-markup");
-       if (is_symbol (encoding))
+       if (ly_c_symbol_p (encoding))
                return scm_list_3 (ly_scheme_function ("encoded-simple-markup"),
                           encoding, a);
        return scm_list_2 (simple, a);
@@ -151,8 +151,8 @@ make_chord (SCM pitch, SCM dur, SCM modification_list)
 bool
 ly_input_procedure_p (SCM x)
 {
-       return is_procedure (x)
-               || (ly_c_pair_p (x) && is_procedure (ly_car (x)));
+       return ly_c_procedure_p (x)
+               || (ly_c_pair_p (x) && ly_c_procedure_p (ly_car (x)));
 }
 
 Music*
@@ -821,7 +821,7 @@ Repeated_music:
                r->set_property ("repeat-count", scm_int2num (times >? 1));
 
                r-> set_property ("elements",alts);
-               if (is_equal ($2, scm_makfrom0str ("tremolo"))) {
+               if (ly_c_equal_p ($2, scm_makfrom0str ("tremolo"))) {
                        /*
                        TODO: move this code to Scheme.
                        */
@@ -1398,7 +1398,7 @@ command_element:
                        evs = scm_hash_ref (tab, key, SCM_BOOL_F);
                }
                Music *quote = 0;
-               if (is_vector (evs))
+               if (ly_c_vector_p (evs))
                {
                        quote = MY_MAKE_MUSIC ("QuoteMusic");
                        quote->set_property ("duration", $3);
@@ -2507,7 +2507,7 @@ property_op_to_music (SCM op)
                bool itc = internal_type_checking_global_b;
                /* UGH.
                */
-               bool autobeam = is_equal (symbol, ly_symbol2scm ("autoBeamSettings"));
+               bool autobeam = ly_c_equal_p (symbol, ly_symbol2scm ("autoBeamSettings"));
                if (autobeam)
                        internal_type_checking_global_b = false;
                m->set_property ("grob-property", grob_sym);
@@ -2531,7 +2531,7 @@ context_spec_music (SCM type, SCM id, Music *m, SCM ops)
        scm_gc_unprotect_object (m->self_scm ());
 
        csm->set_property ("context-type",
-               is_symbol (type) ? type : scm_string_to_symbol (type));
+               ly_c_symbol_p (type) ? type : scm_string_to_symbol (type));
        csm->set_property ("property-operations", ops);
 
        if (ly_c_string_p (id))
index ecc89ba0a60ae090930ff497cf5eecf69cf2cd62..0afb18d819d0b1f0f52b813754a760cba1d5b4b5 100644 (file)
@@ -392,10 +392,10 @@ Part_combine_iterator::process (Moment m)
        solo1 ();
       else if (tag == ly_symbol2scm ("solo2"))
        solo2 ();
-      else if (is_symbol (tag))
+      else if (ly_c_symbol_p (tag))
        {
          String s =  "Unknown split directive: "
-           + (is_symbol (tag) ? ly_symbol2string (tag) : String ("not a symbol")); 
+           + (ly_c_symbol_p (tag) ? ly_symbol2string (tag) : String ("not a symbol")); 
          programming_error (s);
        }
     }
index c6eef783c8568fe5789321802ba41dfe5598ee4e..df0d26e6a208aa9bb0e38cd24bf7be58af09d445 100644 (file)
@@ -163,7 +163,7 @@ Piano_pedal_engraver::try_music (Music *m)
       for (Pedal_info*p = info_list_; p->name_; p ++)
        {
          String nm = p->name_ + String ("Event");
-         if (is_equal (m->get_property ("name") ,
+         if (ly_c_equal_p (m->get_property ("name") ,
                          scm_str2symbol(nm.to_str0())))
            {
              Direction d = to_dir (m->get_property ("span-direction"));
index d18adc8d17b66bf1ccf0ee4e09937aa988e37887..1dbdf10dcd69b21299679a335ec469ddc05cde69 100644 (file)
@@ -130,7 +130,7 @@ Piano_pedal_performer::try_music (Music* r)
       for (Pedal_info*p = info_alist_; p->name_; p ++)
        {
          String nm = p->name_ + String ("Event");
-         if (is_equal (r->get_property ("name") ,
+         if (ly_c_equal_p (r->get_property ("name") ,
                          scm_str2symbol (nm.to_str0())))
            {
              Direction d = to_dir (r->get_property ("span-direction"));
index acbc5e0f751e1f602d7e3da12303e7752291d576..20f9dc68e8aba9b8e3ad24a82b56b288b0a5aaa1 100644 (file)
@@ -21,7 +21,7 @@ void
 Property_iterator::process (Moment m)
 {
   SCM sym = get_music ()->get_property ("symbol");
-  if (is_symbol (sym))
+  if (ly_c_symbol_p (sym))
     {
       SCM val = get_music ()->get_property ("value");
       bool ok= true;
index 582ba6bac95f0e2d708c4d03af99de802ef4f451..8e0affdf282c19bb2a6457f77c1656f43e0865b7 100644 (file)
@@ -100,7 +100,7 @@ Quote_iterator::construct_children ()
   start_moment_ = now;
   event_vector_ = get_music ()->get_property ("quoted-events");
 
-  if (is_vector (event_vector_))
+  if (ly_c_vector_p (event_vector_))
     {
       event_idx_ = binsearch_scm_vector (event_vector_, now.smobbed_copy (), &moment_less);
       end_idx_ = binsearch_scm_vector (event_vector_, stop.smobbed_copy (), &moment_less);
index 42be7b9eb5dc33d7a52e12446e5d96bc1b1774f3..95be8f56380eb37a87f44723726d5a7dfbf75a1e 100644 (file)
@@ -80,7 +80,7 @@ Recording_group_engraver::finalize ()
   Engraver_group_engraver::finalize ();
   SCM proc = get_property ("recordEventSequence");
 
-  if (is_procedure (proc))
+  if (ly_c_procedure_p (proc))
     scm_call_2  (proc, get_parent_context ()->self_scm (), ly_cdr (accumulator_));
 
   accumulator_ = SCM_EOL;
index d025fa47d2d5b0bb1ad2ccdd72b14700ea6bca92..33a7c275edbbc4baab6e1a720cc936b694eb4feb 100644 (file)
@@ -100,7 +100,7 @@ Repeat_acknowledge_engraver::process_music ()
    */
   SCM wb = get_property ("whichBar");
   SCM db  = get_property ("defaultBarType");
-  if (!ly_c_string_p (wb) || is_equal (db, wb))
+  if (!ly_c_string_p (wb) || ly_c_equal_p (db, wb))
     {
       if (s != "" || (volta_found && !ly_c_string_p (wb)))
        {
index 7e3ceab703f99f31e31a12e3eb5041b11012a205..18869230370a1e427e5531d60c2bcdf0c26de254 100644 (file)
@@ -127,7 +127,7 @@ Rest::brew_internal_stencil (SCM smob)
   
   String style; 
   SCM style_scm = me->get_property ("style");
-  if (is_symbol (style_scm))
+  if (ly_c_symbol_p (style_scm))
     style = ly_scm2string (scm_symbol_to_string (style_scm));
 
   Font_metric *fm = Font_interface::get_default_font (me);
index c3d9baa96e2e0d6894d51bb875cb6c83ae1ae6ec..0210c86c55200c8b0302e67c670655a527eb4836 100644 (file)
@@ -39,7 +39,7 @@ Modified_font_metric::Modified_font_metric (String coding, Font_metric* m, Real
       coding_vector_ = scm_call_1 (ly_scheme_function ("get-coding-vector"),
                                   scm_makfrom0str (coding_scheme_.to_str0 ()));
 
-      if (!is_vector (coding_vector_))
+      if (!ly_c_vector_p (coding_vector_))
        {
          programming_error ("get-coding-vector  should return vector");
          coding_vector_ = scm_c_make_vector (256, ly_symbol2scm (".notdef"));
@@ -96,7 +96,7 @@ Modified_font_metric::make_scaled_font_metric (SCM coding, Font_metric *m, Real
   /*
     UGOHR.
    */
-  if (is_symbol (coding))
+  if (ly_c_symbol_p (coding))
     coding = scm_symbol_to_string (coding);
   
   String scheme = ly_scm2string (coding);
@@ -268,7 +268,7 @@ Modified_font_metric::text_dimension (String text)
 
          Box char_box;
 
-         if (!is_symbol (sym))
+         if (!ly_c_symbol_p (sym))
            continue;
 
          char const * chars =  SCM_SYMBOL_CHARS(sym);
index 7542b121d1dd8a8a0b3c9411f8ed8c6cdb2868dd..13c6ba0d5c2ca86088f28c1bfe790ad9d68cceb0 100644 (file)
@@ -101,7 +101,7 @@ Scheme_hash_table::contains (SCM k) const
 void
 Scheme_hash_table::set (SCM k, SCM v)
 {
-  assert (is_symbol (k));
+  assert (ly_c_symbol_p (k));
   SCM handle = scm_hashq_create_handle_x (hash_tab_, k, SCM_UNDEFINED);
   if (ly_cdr (handle) == SCM_UNDEFINED)
     {
index 143bbd9560c36738c37349fd3c9e7e42677bb19b..d5804fbd0afb556a7dd6e365c3b6e8e350ad4dfb 100644 (file)
@@ -50,7 +50,7 @@ Script_engraver::try_music (Music *r)
        This is necessary for part-combining.
        */
       for (int j = 0; j < scripts_.size (); j++)
-       if (is_equal (scripts_[j]. event_->get_property ("articulation-type"),
+       if (ly_c_equal_p (scripts_[j]. event_->get_property ("articulation-type"),
                        r->get_property ("articulation-type")
                        ))
          return true;
index 81b8bee1fc49b3a7c720afa1a23cf41e0e55b238..4a308146e1c98ae6aff83b53283c847cab508475 100644 (file)
@@ -144,7 +144,7 @@ Separation_item::extremal_break_aligned_grob (Grob *separation_item, Direction d
     {
       Grob * break_item = unsmob_grob (ly_car (s));
       
-      if (!is_symbol (break_item->get_property ("break-align-symbol")))
+      if (!ly_c_symbol_p (break_item->get_property ("break-align-symbol")))
        continue;
 
       Interval ext = break_item->extent (col, X_AXIS);
index 9ff91ef379e03e7873bd07f87ff3053304b26deb..a9454eba90d386f1f5832552a72e7381b94a02f2 100644 (file)
@@ -193,15 +193,15 @@ Slur::set_extremities (Grob *me)
   do 
     {
     
-      if (!is_symbol (index_get_cell (att, dir)))
+      if (!ly_c_symbol_p (index_get_cell (att, dir)))
        {
          SCM p = me->get_property ("extremity-function");
          SCM res = ly_symbol2scm ("head");
          
-         if (is_procedure (p))
+         if (ly_c_procedure_p (p))
            res =  scm_call_2 (p, me->self_scm (), scm_int2num (dir));
 
-         if (is_symbol (res))
+         if (ly_c_symbol_p (res))
            index_set_cell (att, dir, res);
        }
     }
@@ -288,7 +288,7 @@ Slur::get_attachment (Grob *me, Direction dir,
                      Grob **common) 
 {
   SCM s = me->get_property ("attachment");
-  if (!ly_c_pair_p (s) || !is_symbol (index_get_cell (s, dir)))
+  if (!ly_c_pair_p (s) || !ly_c_symbol_p (index_get_cell (s, dir)))
     {
       s = set_extremities (me);
     }
@@ -655,8 +655,8 @@ Slur::get_curve (Grob*me)
 
   
   if (!get_grob_direction (me)
-      || ! is_symbol (index_get_cell (attach, LEFT))
-      || ! is_symbol (index_get_cell (attach, RIGHT)))
+      || ! ly_c_symbol_p (index_get_cell (attach, LEFT))
+      || ! ly_c_symbol_p (index_get_cell (attach, RIGHT)))
     set_extremities (me);
   
   if (!ly_c_pair_p (me->get_property ("control-points")))
index 5829cbcb2954e272ceeddd46b25f92ef12613814..b2ab37db86d0173977016644001cadc88245b575 100644 (file)
@@ -69,7 +69,7 @@ Span_bar_engraver::stop_translation_timestep ()
 
       SCM vissym =ly_symbol2scm ("break-visibility");
       SCM vis = bars_[0]->internal_get_property (vissym);        
-      if (is_equal (spanbar_->internal_get_property (vissym), vis))
+      if (ly_c_equal_p (spanbar_->internal_get_property (vissym), vis))
        spanbar_->internal_set_property (vissym, vis);
 
       typeset_grob (spanbar_);
index 27711414ddd86f31bf8efe964a87a0a5210513eb..b53fac3897f70406179bc7ccd6e1ec39f1d2cd45 100644 (file)
@@ -576,7 +576,7 @@ Stem::flag (Grob*me)
   String flag_style;
   
   SCM flag_style_scm = me->get_property ("flag-style");
-  if (is_symbol (flag_style_scm))
+  if (ly_c_symbol_p (flag_style_scm))
     {
       flag_style = ly_symbol2string (flag_style_scm);
     }
index b5988eac2ab31cff528bcc6ac8c0383b248ed19a..5d4c4342b0b752fc2658ef016b905241d476b62c 100644 (file)
@@ -48,11 +48,11 @@ System_start_delimiter_engraver::acknowledge_grob (Grob_info inf)
       /*
        UGH UGH
        */
-      if (ly_c_string_p (gl) && is_equal (gl, scm_makfrom0str  ("brace"))
-         && ly_c_string_p (my_gl) && is_equal (my_gl, scm_makfrom0str  ("bracket")))
+      if (ly_c_string_p (gl) && ly_c_equal_p (gl, scm_makfrom0str  ("brace"))
+         && ly_c_string_p (my_gl) && ly_c_equal_p (my_gl, scm_makfrom0str  ("bracket")))
        inf.grob_->translate_axis (-0.8, X_AXIS); // ugh
-      else if (ly_c_string_p (gl) && is_equal (gl, scm_makfrom0str  ("bracket"))
-              && ly_c_string_p (my_gl) && is_equal (my_gl, scm_makfrom0str  ("bracket")))
+      else if (ly_c_string_p (gl) && ly_c_equal_p (gl, scm_makfrom0str  ("bracket"))
+              && ly_c_string_p (my_gl) && ly_c_equal_p (my_gl, scm_makfrom0str  ("bracket")))
        {
          inf.grob_->translate_axis ( -0.8, X_AXIS); // ugh
          inf.grob_->set_property ("arch-height",
index 93e218bc42e2d107870d426e45d2c65342bbc8ca..3ab6cc37ed777ea6eafe2b78c0e070640a668465 100644 (file)
@@ -75,7 +75,7 @@ System_start_delimiter::after_line_breaking (SCM smob)
 {
   Grob * me = unsmob_grob (smob);
   SCM   gl = me->get_property ("glyph");
-  if (is_equal (gl,scm_makfrom0str ("bar-line")))
+  if (ly_c_equal_p (gl,scm_makfrom0str ("bar-line")))
     {
       int count = 0;
 
index 779987b6dca78e12cd8f7bd24efdc8a000d7e342..87373b5de83405b0dc93d0884aa8d0218b587e78 100644 (file)
@@ -288,7 +288,7 @@ System::pre_processing ()
     {
       Grob * e = unsmob_grob (ly_car (s));
       SCM proc = e->get_property ("spacing-procedure");
-      if (is_procedure (proc))
+      if (ly_c_procedure_p (proc))
        scm_call_1 (proc, e->self_scm ());
     }
 }
index 591b1f6ec10a62d6276d3f6ca1f8c809fb397fb3..782cd4d1c1457e2eeecea74e0ecf6cb69ed54e1b 100644 (file)
@@ -25,7 +25,7 @@ Text_item::interpret_string (SCM paper, SCM props, SCM encoding, SCM markup)
   SCM_ASSERT_TYPE(pap, paper, SCM_ARG1, __FUNCTION__, "Paper definition");
   SCM_ASSERT_TYPE(ly_c_string_p (markup), markup, SCM_ARG3, __FUNCTION__, "string");
   SCM_ASSERT_TYPE(encoding == SCM_EOL
-                 || is_symbol (encoding), encoding, SCM_ARG2, __FUNCTION__, "symbol");
+                 || ly_c_symbol_p (encoding), encoding, SCM_ARG2, __FUNCTION__, "symbol");
   
   String str = ly_scm2string (markup);
   Font_metric *fm = select_encoded_font (pap, props, encoding);
index b1043a5acb0653a22286f4c6b49a74680237a419..942cffb3afe8fe99394177d407adeb3a8964c955 100644 (file)
@@ -134,7 +134,7 @@ Tex_font_metric::name_to_index (String s) const
   SCM sym = ly_symbol2scm (s.to_str0 ());
 
   SCM idx = scm_hash_ref (encoding_table_, sym, SCM_BOOL_F);
-  if (is_char (idx))
+  if (ly_c_char_p (idx))
     {
       return (unsigned char) ly_scm2char (idx);
     }
index 181ede0912fd3c3fe921f5babc1a30e3d5e9d2b6..28559aeac567d433ff98e7f64a251cdcc079d7d2 100644 (file)
@@ -94,7 +94,7 @@ Tie_engraver::acknowledge_grob (Grob_info i)
            maybe should check positions too.
           */
          if (right_mus && left_mus
-             && is_equal (right_mus->get_property ("pitch"),
+             && ly_c_equal_p (right_mus->get_property ("pitch"),
                             left_mus->get_property ("pitch")))
            {
              Grob * p = make_spanner ("Tie");
index a44bf7df7e14eee837dcf0ad7eba353476dbe973..f2efe82f7dfe407b6dbd309f23362f80d88390ce 100644 (file)
@@ -74,7 +74,7 @@ Tie_performer::acknowledge_audio_element (Audio_element_info inf)
          Music * left_mus = heads_to_tie_[i].event_;
 
          if (right_mus && left_mus
-             && is_equal (right_mus->get_property ("pitch"),
+             && ly_c_equal_p (right_mus->get_property ("pitch"),
                             left_mus->get_property ("pitch")))
            {
              an->tie_to (th);
index f13e6008a2f99b1cbd170b22fe4e8cde1723f8c7..3d3e26d3273a93a44685fa820245295bf5a3a76e 100644 (file)
@@ -44,7 +44,7 @@ void
 Time_signature_performer::create_audio_elements ()
 {
   SCM fr = get_property ("timeSignatureFraction");
-  if (ly_c_pair_p (fr) && !is_equal (fr, prev_fraction_))
+  if (ly_c_pair_p (fr) && !ly_c_equal_p (fr, prev_fraction_))
     {
       prev_fraction_ = fr;
       int b = ly_scm2int (ly_car (fr));
index f249bfc1c44fa52961d9fbb676d31f3184c0a019..7cb072fa00b4facd4f4239435fb17f651215e800 100644 (file)
@@ -41,7 +41,7 @@ Time_signature::print (SCM smob)
     }
 
   Stencil m;
-  if (is_symbol (st))
+  if (ly_c_symbol_p (st))
     {
       String style (ly_scm2string (scm_symbol_to_string (st)));
       if (style[0]=='1')
index 28c3753ceecd1f0437360f09504d8838f9d77bf1..cb0658bf847f41b4d9f3c39a555e3e0840343e09 100644 (file)
@@ -32,7 +32,7 @@ void
 execute_pushpop_property (Context * trg,
                          SCM prop, SCM eltprop, SCM val)
 {
-  if (is_symbol (prop) && is_symbol (eltprop))
+  if (ly_c_symbol_p (prop) && ly_c_symbol_p (eltprop))
     {
       if (val != SCM_UNDEFINED)
        {
@@ -88,7 +88,7 @@ execute_pushpop_property (Context * trg,
 
          while (prev_alist != daddy)
            {
-             if (is_equal (ly_caar (prev_alist), eltprop))
+             if (ly_c_equal_p (ly_caar (prev_alist), eltprop))
                {
                  prev_alist = ly_cdr (prev_alist);
                  break ;
@@ -151,7 +151,7 @@ apply_property_operations (Context *tg, SCM pre_init_ops)
 SCM
 updated_grob_properties (Context * tg, SCM sym)
 {
-  assert (is_symbol (sym));
+  assert (ly_c_symbol_p (sym));
   
   tg = tg->where_defined (sym);
   if (!tg)
index 3bdfe4bf6f0f7c6e8c6684b10e34ee034dfc657c..ba44e4446ba12c84bbaa8fb8fe25a87cc71f51f3 100644 (file)
@@ -133,7 +133,7 @@ Tuplet_bracket::print (SCM smob)
     Fixme: the type of this prop is sucky.
    */
   SCM bracket = me->get_property ("bracket-visibility");
-  if (is_boolean (bracket))
+  if (ly_c_boolean_p (bracket))
     {
       bracket_visibility = ly_scm2bool (bracket);
     }
@@ -141,7 +141,7 @@ Tuplet_bracket::print (SCM smob)
     bracket_visibility = !par_beam;
 
   SCM numb = me->get_property ("number-visibility");  
-  if (is_boolean (numb))
+  if (ly_c_boolean_p (numb))
     {
       number_visibility = ly_scm2bool (numb);
     }
index 42a518511806eb6083cdc9e912afc3e4178705a5..6ec076d044256679622fc8898970dea67b5f8bf5 100644 (file)
@@ -79,7 +79,7 @@ Tuplet_engraver::process_acknowledged_grobs ()
       
 
       SCM proc = get_property ("tupletNumberFormatFunction");
-      if (is_procedure (proc))
+      if (ly_c_procedure_p (proc))
        {
          SCM t = scm_apply_0 (proc, scm_list_n (time_scaled_musics_[i]->self_scm (), SCM_UNDEFINED));
          glep->set_property ("text", t);