]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.49
authorfred <fred>
Sun, 24 Mar 2002 19:38:14 +0000 (19:38 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:38:14 +0000 (19:38 +0000)
flower/dstream.cc
lib/binary-source-file.cc
lily/identifier.cc
lily/include/identifier.hh

index 05ee3e69583012356ec40188ebd37857f8b8c739..73416a4e46c8217698db8618e7a65561da6b94cd 100644 (file)
@@ -45,9 +45,9 @@ Dstream::identify_as(String name)
     String cl(strip_member(mem));
     String idx = cl;
     
-    if (silent->elt_query(mem))
+    if (silent->elt_b(mem))
        idx  = mem;
-    else if (silent->elt_query(cl))
+    else if (silent->elt_b(cl))
        idx = cl;
     else {
        (*silent)[idx] = false;
@@ -64,7 +64,7 @@ Dstream::identify_as(String name)
 bool
 Dstream::silence(String s)
 {
-    if (!silent->elt_query(s))
+    if (!silent->elt_b(s))
        return false;
     return (*silent)[s];
 }
index f080c2dab2372c89a6e60cc7be402bc66678f1a1..c2e3c152be363cf7035d9389e068a4147a0385ca 100644 (file)
@@ -13,7 +13,6 @@
 #include "proto.hh"
 #include "plist.hh"
 #include "string.hh"
-#include "debug.hh"
 #include "source-file.hh"
 #include "binary-source-file.hh"
 #include "string-convert.hh"
index 8b989f9868b4bff908165956734d87662b92efbf..72224f92f91c7cfb342767476f22dce220bf9f6b 100644 (file)
 #include "request.hh"
 #include "input-register.hh"
 
+Identifier::~Identifier()
+{
+    if (!accessed_b_ && !init_b_)
+       warning("Variable not used");
+}
 void
 Identifier::error(String expect)
 {
@@ -30,7 +35,7 @@ Identifier::error(String expect)
 }
 
 Identifier::Identifier(String n, int code)
-    :  name(n) 
+    :  name_str_(n) 
 {
     token_code_i_ = code; 
     data = 0;
@@ -41,7 +46,7 @@ Identifier::Identifier(String n, int code)
 void
 Identifier::print()const
 {
-    mtor << "identifier \'" << name << "\'=";
+    mtor << "identifier \'" << name_str_ << "\'=";
     do_print();
 }
 
index 9078f7323cf56e9cf38f843e2f5111806164ed73..49c7b954db0c86b4daedb71492f4fbc03c341a5b 100644 (file)
 
 struct Identifier : public Input {
     void *data;
-    String name;
+    String name_str_;
     bool init_b_;
     bool accessed_b_;
     int token_code_i_;
     
     Identifier(String n, int code) ;
-    virtual ~Identifier() {}
+    virtual ~Identifier() ;
 
     void print()const;
     virtual char const *classname() const{ return "new Identifier"; }