~ubuntu-branches/ubuntu/trusty/c++-annotations/trusty

« back to all changes in this revision

Viewing changes to yo/concrete/lexer/scanner/popsource.cc

  • Committer: Package Import Robot
  • Author(s): tony mancill, Frank B. Brokken, tony mancill
  • Date: 2012-02-28 00:50:21 UTC
  • mfrom: (1.1.19)
  • Revision ID: package-import@ubuntu.com-20120228005021-sz7nnodntkvgh7qf
Tags: 9.2.1-1
[ Frank B. Brokken ]
* New upstream release (using flexc++, reauthored polymorphic semantic
  values and unrestricted unions). Upstream release 9.2.0 is implied by
  this release.

[ tony mancill ]
* Set Standards-Version to 3.9.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
    #include "scanner.ih"
2
 
 
3
 
    bool Scanner::popSource(yy_buffer_state *current)
4
 
    {
5
 
        if (d_state.empty())
6
 
            return false;
7
 
 
8
 
        yy_delete_buffer(current);
9
 
        yy_switch_to_buffer(d_state.top());
10
 
        d_state.pop();
11
 
 
12
 
        delete d_fileInfo.back().d_in;      // closes the stream as well
13
 
        d_fileInfo.pop_back();
14
 
 
15
 
        return true;
16
 
    }