Revision 1962

trunk/src/GNUmakefile (revision 1962)
345 345
	copy df1b2-separable\df3fun.h ${DIST}\include
346 346
	copy df1b2-separable\df1b2fnl.h ${DIST}\include
347 347
	copy df1b2-separable\df1b2loc.h ${DIST}\include
348
	copy df1b2-separable\smartbuf.h ${DIST}\include
349 348
	copy nh99\admodel.h ${DIST}\include
350 349
	copy nh99\param_init_bounded_number_matrix.h ${DIST}\include
351 350
else
......
365 364
	cp df1b2-separable/df3fun.h ${DIST}/include
366 365
	cp df1b2-separable/df1b2fnl.h ${DIST}/include
367 366
	cp df1b2-separable/df1b2loc.h ${DIST}/include
368
	cp df1b2-separable/smartbuf.h ${DIST}/include
369 367
	cp nh99/admodel.h ${DIST}/include
370 368
	cp nh99/param_init_bounded_number_matrix.h ${DIST}/include
371 369
endif
trunk/src/linad99/df_file.cpp (revision 1962)
69 69
#include <string.h>
70 70

  
71 71
char lastchar(char*);
72
void byte_copy(void* dest,void* source, unsigned num_bytes);
72

  
73
void byte_copy(void* dest, void* source, unsigned int num_bytes)
74
{
75
#if defined(__ADSGI__)
76
  char* pdest = (char*)dest;
77
  char* psource = (char*)source;
78
  int ii=0;
79
  while (ii < num_bytes)
80
  {
81
    //*((char *)dest)++ = *((char *)source)++;
82
    *pdest = *psource;
83
    pdest++;
84
    psource++;
85
    ii++;
86
  }
87
#else
88
  memcpy((char*)dest, (char*)source, num_bytes);
89
#endif
90
}
91

  
73 92
extern char ad_random_part[6];
74 93

  
75 94
/**
trunk/src/df1b2-separable/smartbuf.cpp (revision 1962)
1
/*
2
 * $Id$
3
 *
4
 * Author: David Fournier
5
 * Copyright (c) 2008-2012 Regents of the University of California
6
 */
7
/**
8
 * \file
9
 * Description not yet available.
10
 */
11
#define HOME_VERSION
12
#include "fvar.hpp"
13
#include "smartbuf.h"
14
#ifdef _MSC_VER
15
  #define lseek _lseek
16
  #define  read _read
17
  #define write _write
18
  #include <sys\stat.h>
19
#else
20
  #include <iostream>
21
  using namespace std;
22
  #include <memory.h>
23
  #include <fcntl.h>
24
  #include <sys/stat.h>
25
  #include <sys/types.h>
26
  #include <unistd.h>
27
#endif
28

  
29
#if defined(__TURBOC__)
30
  #pragma hdrstop
31
  #include <iostream.h>
32
  #include <sys\stat.h>
33
  #include <fcntl.h>
34
#endif
35

  
36
#ifdef __ZTC__
37
  #include <iostream.hpp>
38
  #define S_IREAD 0000400
39
  #define S_IWRITE 0000200
40
  #include <fcntl.h>
41
#endif
42

  
43
#ifdef __NDPX__
44
  #define O_RDONLY 0
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff