9 |
|
|
10 |
|
#include <signal.h> |
11 |
|
#include <string.h> |
12 |
– |
#ifdef _WIN32 |
13 |
– |
#include <process.h> /* getpid() */ |
14 |
– |
#endif |
12 |
|
|
13 |
+ |
#include "rtprocess.h" /* getpid() */ |
14 |
|
#include "holo.h" |
15 |
|
|
16 |
|
#ifndef BKBSIZE |
158 |
|
rva[i].r[1][0]==rva[j].r[1][0] && |
159 |
|
rva[i].r[1][1]==rva[j].r[1][1] ) { |
160 |
|
n--; /* swap duplicate with end */ |
161 |
< |
copystruct(&rtmp, rva+n); |
162 |
< |
copystruct(rva+n, rva+i); |
163 |
< |
copystruct(rva+i, &rtmp); |
161 |
> |
rtmp = *(rva+n); |
162 |
> |
*(rva+n) = *(rva+i); |
163 |
> |
*(rva+i) = rtmp; |
164 |
|
i--; /* recheck one we swapped */ |
165 |
|
} |
166 |
|
return(n); |