File: insert3.cc

package info (click to toggle)
icmake 13.05.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,132 kB
  • sloc: cpp: 11,595; fortran: 883; makefile: 853; sh: 546; pascal: 342
file content (24 lines) | stat: -rw-r--r-- 706 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#define XERR
#include "semval.ih"

    // see README.patch

SemVal &SemVal::insert3(SemVal &rhs)
{
    unsigned length = d_code.length();      // current code length

    d_code += rhs.d_code;                   // append rhs's code
    d_lastOpcode = rhs.d_lastOpcode;        // and update the last opocde

                                            // append rhs patch offsets +
                                            // length to d_patchTrue
    extend(d_patchTrue,     rhs.d_patchTrue,     length);
    extend(d_patchFalse,    rhs.d_patchFalse,    length);
    extend(d_patchBreak,    rhs.d_patchBreak,    length);
    extend(d_patchContinue, rhs.d_patchContinue, length);

    return *this;
}