Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /libabi/opimport.cpp [85d9b9] .. [2dcd13] Maximize Restore

  Switch to unified view

a/libabi/opimport.cpp b/libabi/opimport.cpp
...
...
13
#include "popt_options.h"
13
#include "popt_options.h"
14
#include "op_sample_file.h"
14
#include "op_sample_file.h"
15
15
16
#include <fstream>
16
#include <fstream>
17
#include <iostream>
17
#include <iostream>
18
#include <sstream>
18
#include <vector>
19
#include <vector>
19
#include <cassert>
20
#include <cassert>
20
#include <cstring>
21
#include <cstring>
21
#include <cstdlib>
22
#include <cstdlib>
22
23
...
...
85
    
86
    
86
    assert(nbytes <= sizeof(T));
87
    assert(nbytes <= sizeof(T));
87
    assert(src >= begin);
88
    assert(src >= begin);
88
    assert(src + nbytes <= end);
89
    assert(src + nbytes <= end);
89
    
90
    
90
    if (verbose)
91
    if (verbose) {
92
      ostringstream message;
91
        cerr << hex << "get " << sz << " = " << nbytes
93
        message << hex << "get " << sz << " = " << nbytes
92
             << " bytes @ " << off << " = " << (src - begin)
94
                << " bytes @ " << off << " = " << (src - begin)
93
             << " : ";
95
                << " : ";
96
      cerr << message.str();
97
  }
94
98
95
    if (little_endian)
99
    if (little_endian)
96
        while(nbytes--)
100
        while(nbytes--)
97
            targ = (targ << 8) | src[nbytes];
101
            targ = (targ << 8) | src[nbytes];
98
    else
102
    else