| 6 |
|
#define _RAD_RTMISC_H_ |
| 7 |
|
|
| 8 |
|
#include <stdlib.h> |
| 9 |
– |
/* memory operations */ |
| 10 |
– |
#ifdef NOSTRUCTASS |
| 11 |
– |
#include <string.h> |
| 12 |
– |
#define copystruct(d,s) memcpy((void *)(d),(void *)(s),sizeof(*(d))) |
| 13 |
– |
#else |
| 14 |
– |
#define copystruct(d,s) (*(d) = *(s)) |
| 15 |
– |
#endif |
| 9 |
|
|
| 10 |
|
#ifdef __cplusplus |
| 11 |
|
extern "C" { |
| 14 |
|
/* defined in bmalloc.c */ |
| 15 |
|
extern char *bmalloc(unsigned int n); |
| 16 |
|
extern void bfree(char *p, unsigned int n); |
| 17 |
+ |
/* defined in myhostname.c */ |
| 18 |
+ |
extern char *myhostname(void); |
| 19 |
|
|
| 20 |
|
#ifdef __cplusplus |
| 21 |
|
} |