[logo] 
 
Home
News
Activity
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  BugVise
  CovVise
  Force-Gate-Sim
  Gspice
  IPC::Locker
  Rsvn
  Schedule::Load
  SVN::S4
  Synopsys-modes
  SystemPerl
  Verilog-Pli
  Voneline
  Vregs
General Info
  Papers

Verilog-Perl.diff

Patch as attachment - Marek Rouchal, 10/23/2009 12:23 pm

Download (1.3 kB)

Verilog-Perl-3.220p1/Preproc/VPreproc.cpp 2009-10-23 11:42:38.000000000 +0200
123 123
    int getToken();
124 124
    void parseTop();
125 125
    void parseUndef();
126
    string gettext(bool stop_at_eol);
126
    string mYgettext(bool stop_at_eol);
127 127
    bool isEof() const { return (m_lexp==NULL); }
128 128
    void open(string filename, VFileLine* filelinep);
129 129
    void insertUnreadback(const string& text) { m_lineCmt += text; }
......
161 161
}
162 162
string VPreproc::getline() {
163 163
    VPreprocImp* idatap = static_cast<VPreprocImp*>(m_opaquep);
164
    return idatap->gettext(true);
164
    return idatap->mYgettext(true);
165 165
}
166 166
string VPreproc::getall() {
167 167
    VPreprocImp* idatap = static_cast<VPreprocImp*>(m_opaquep);
168
    return idatap->gettext(false);
168
    return idatap->mYgettext(false);
169 169
}
170 170
void VPreproc::debug(int level) {
171 171
    VPreprocImp* idatap = static_cast<VPreprocImp*>(m_opaquep);
......
871 871
    }
872 872
}
873 873

  
874
string VPreprocImp::gettext(bool stop_at_eol) {
874
string VPreprocImp::mYgettext(bool stop_at_eol) {
875 875
    // Get a single line from the parse stream.  Buffer unreturned text until the newline.
876 876
    if (isEof()) return "";
877 877
    while (1) {