File: setidx.cc

package info (click to toggle)
bisonc%2B%2B 4.09.02-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,412 kB
  • ctags: 2,871
  • sloc: cpp: 9,459; ansic: 1,434; makefile: 1,091; sh: 286; yacc: 84; lex: 60
file content (18 lines) | stat: -rw-r--r-- 268 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "rrdata.ih"

void RRData::setIdx(Keep keep, size_t first, size_t second) 
{
    if (keep == KEEP_FIRST)
    {
        d_idx = second;
        d_kept = first;
    }
    else
    {
        d_idx =  first;
        d_kept = second;
    }

    d_forced = true;
}