~ubuntu-branches/ubuntu/wily/verilator/wily-proposed

« back to all changes in this revision

Viewing changes to src/V3ParseImp.cpp

  • Committer: Package Import Robot
  • Author(s): أحمد المحمودي (Ahmed El-Mahmoudy)
  • Date: 2015-04-26 16:20:52 UTC
  • mfrom: (4.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20150426162052-69yjwh512m0adl2k
Tags: 3.872-2
* Upload to unstable.
* debian/patches/*: Added DEP-3 patch headers.
* Remove debian/gbp.conf, not needed in master branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
//
7
7
//*************************************************************************
8
8
//
9
 
// Copyright 2003-2014 by Wilson Snyder.  This program is free software; you can
 
9
// Copyright 2003-2015 by Wilson Snyder.  This program is free software; you can
10
10
// redistribute it and/or modify it under the terms of either the GNU
11
11
// Lesser General Public License Version 3 or the Perl Artistic License
12
12
// Version 2.0.
36
36
 
37
37
#include "V3Error.h"
38
38
#include "V3Global.h"
 
39
#include "V3Os.h"
39
40
#include "V3Ast.h"
40
41
#include "V3File.h"
41
42
#include "V3ParseImp.h"
91
92
 
92
93
void V3ParseImp::parseFile(FileLine* fileline, const string& modfilename, bool inLibrary,
93
94
                           const string& errmsg) {  // "" for no error, make fake node
94
 
    string modname = V3Options::filenameNonExt(modfilename);
 
95
    string modname = V3Os::filenameNonExt(modfilename);
95
96
 
96
97
    UINFO(2,__FUNCTION__<<": "<<modname<<(inLibrary?" [LIB]":"")<<endl);
97
98
    m_fileline = new FileLine(fileline);
104
105
        // of this source file is updated here, in case there have been any
105
106
        // intervening +<lang>ext+ options since it was first ecountered.
106
107
        FileLine *modfileline = new FileLine (modfilename, 0);
107
 
        modfileline->updateLanguage();
 
108
        modfileline->language(v3Global.opt.fileLanguage(modfilename));
108
109
        ppPushText((string)"`begin_keywords \""+modfileline->language().ascii()+"\"\n");
109
110
    }
110
111