File: removefirstword.cc

package info (click to toggle)
stealth 1.45-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 716 kB
  • ctags: 175
  • sloc: cpp: 1,612; makefile: 88; sh: 70
file content (11 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
#include "scanner.ih"

bool Scanner::removeFirstWord(char const *word)
{
    if (s_firstWord[1] != word)
        return false;

    s_firstWord.match(s_firstWord[3]);  // make sure firstword[1] now contains
                                        // the next word (of d_firstword[3])
    return true;
}