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;
bool
Dstream::silence(String s)
{
- if (!silent->elt_query(s))
+ if (!silent->elt_b(s))
return false;
return (*silent)[s];
}
#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"
#include "request.hh"
#include "input-register.hh"
+Identifier::~Identifier()
+{
+ if (!accessed_b_ && !init_b_)
+ warning("Variable not used");
+}
void
Identifier::error(String expect)
{
}
Identifier::Identifier(String n, int code)
- : name(n)
+ : name_str_(n)
{
token_code_i_ = code;
data = 0;
void
Identifier::print()const
{
- mtor << "identifier \'" << name << "\'=";
+ mtor << "identifier \'" << name_str_ << "\'=";
do_print();
}
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"; }