X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ffunction-documentation.cc;h=99fbdfe6c8ce17838c2f58a90f1eba3517995a4d;hb=90e4d7057f3857da049dfda3d130017d4719bd6b;hp=e04188c7b5ba198e59b7dd23677572bec07fbad4;hpb=207f71b8b2ab9ca550e841615bedce393e652ca6;p=lilypond.git diff --git a/lily/function-documentation.cc b/lily/function-documentation.cc index e04188c7b5..99fbdfe6c8 100644 --- a/lily/function-documentation.cc +++ b/lily/function-documentation.cc @@ -33,14 +33,12 @@ using namespace std; #include "music-function.hh" #include "paper-score.hh" #include "performance.hh" +#include "protected-scm.hh" #include "spanner.hh" #include "stream-event.hh" #include "unpure-pure-container.hh" -using std::map; -using std::string; - -static SCM doc_hash_table; +static Protected_scm doc_hash_table; void ly_check_name (const string &cxx, const string &scm_name) @@ -61,8 +59,8 @@ ly_add_function_documentation (SCM func, if (doc == "") return; - if (!doc_hash_table) - doc_hash_table = scm_permanent_object (scm_c_make_hash_table (59)); + if (!doc_hash_table.is_bound ()) + doc_hash_table = scm_c_make_hash_table (59); string s = string (" - ") + "LilyPond procedure: " + fname + " " + varlist + "\n" + doc;