The sole remainder is one of _fmemcpy() in the DOS interface code.
#define malloc(size) farmalloc (size)
#define realloc(size,p) farrealloc (size,p)
#define free(size) farfree (size)
-#define memcpy(d,s,n) _fmemcpy (d,s,n)
#else
if (undo_mem != NULL) {
prev_zmp = undo_mem;
undo_diff = undo_mem + h_dynamic_size;
- memcpy (prev_zmp, zmp, h_dynamic_size);
+ memmove (prev_zmp, zmp, h_dynamic_size);
} else
f_setup.undo_slots = 0;
/* undo possible */
- memcpy (zmp, prev_zmp, h_dynamic_size);
+ memmove (zmp, prev_zmp, h_dynamic_size);
SET_PC (curr_undo->pc);
sp = stack + STACK_SIZE - curr_undo->stack_size;
fp = stack + curr_undo->frame_offset;
frame_count = curr_undo->frame_count;
mem_undiff ((zbyte *) (curr_undo + 1), curr_undo->diff_size, prev_zmp);
- memcpy (sp, (zbyte *)(curr_undo + 1) + curr_undo->diff_size,
+ memmove (sp, (zbyte *)(curr_undo + 1) + curr_undo->diff_size,
curr_undo->stack_size * sizeof (*sp));
curr_undo = curr_undo->prev;
p->diff_size = diff_size;
p->stack_size = stack_size;
p->frame_offset = fp - stack;
- memcpy (p + 1, undo_diff, diff_size);
- memcpy ((zbyte *)(p + 1) + diff_size, sp, stack_size * sizeof (*sp));
+ memmove (p + 1, undo_diff, diff_size);
+ memmove ((zbyte *)(p + 1) + diff_size, sp, stack_size * sizeof (*sp));
if (!first_undo) {
p->prev = NULL;
#define malloc(size) farmalloc (size)
#define realloc(size,p) farrealloc (size,p)
#define free(size) farfree (size)
-#define memcpy(d,s,n) _fmemcpy (d,s,n)
#else
stereoize(bleep_buffer.samples, floatbuffer2, src_data.output_frames_gen);
} else {
/* It's already stereo. Just copy the buffer. */
- memcpy(bleep_buffer.samples, floatbuffer2, sizeof(float) * src_data.output_frames_gen * 2);
+ memmove(bleep_buffer.samples, floatbuffer2, sizeof(float) * src_data.output_frames_gen * 2);
}
/* Adjust volume. */
int bytespersample){
// write header
// offset 0
- memcpy(f,"RIFF",4); f += 4;
+ memmove(f,"RIFF",4); f += 4;
// offset 4
PCwrite4(f,(36+numsamples*numchannels*bytespersample));
// offset 8
- memcpy(f,"WAVEfmt ",8); f += 8;
+ memmove(f,"WAVEfmt ",8); f += 8;
// offset 16
PCwrite4(f,16);
// offset 20
// offset 34
PCwrite2(f,(8*bytespersample));
// offset 36
- memcpy(f,"data",4); f += 4;
+ memmove(f,"data",4); f += 4;
// offset 40
PCwrite4(f,(numsamples*numchannels*bytespersample));
// offset 44
c = 32;
}
src = Zfont3+8*(c-32);
- memcpy(&(myglyph.bitmap[0]),src,8);
+ memmove(&(myglyph.bitmap[0]),src,8);
myglyph.h = 8;
return (SF_glyph *)&myglyph;
}
font = calloc(1,totb);
if (!font) ERRET(-3) // errorexit(99,"malloc()\n");
//printf("allocated: %p-%p\n",font,((byte *)font)+totb);
-// memcpy(&(font->magic[0]),"gBDX",4);
+// memmove(&(font->magic[0]),"gBDX",4);
font->minchar = minch;
font->maxchar = maxch;
font->defchar = defchar;
pbeg = (byte *)font;
po = (byte *)(&(font->glyphs[maxch-minch+1]));
k = strlen(fontname)+1;
- memcpy(po,fontname,k); po += k; if (fngot) free(fontname);
+ memmove(po,fontname,k); po += k; if (fngot) free(fontname);
k = strlen(copyright)+1;
- memcpy(po,copyright,k); po += k; if (cpgot) free(copyright);
+ memmove(po,copyright,k); po += k; if (cpgot) free(copyright);
for (i=minch;i<=maxch;i++) font->glyphs[i-minch] = 0;
// second pass
if (!emph) os_fatal("malloc() failure in initfonts()");
Emph = makefont(emph);
if (!Emph) os_fatal("malloc() failure in initfonts()");
- memcpy (emph, norm, size);
+ memmove (emph, norm, size);
// emphasize (underline)...
cfont = (byte *)emph;
for (i = norm->minchar;i <= norm->maxchar;i++){
if (!bold) os_fatal("malloc() failure in initfonts()");
Bold = makefont(bold);
if (!Bold) os_fatal("malloc() failure in initfonts()");
- memcpy (bold, norm, size);
+ memmove (bold, norm, size);
// boldify...
cfont = (byte *)bold;
for (i = norm->minchar;i <= norm->maxchar;i++){
if (!bemp) os_fatal("malloc() failure in initfonts()");
Bemp = makefont(bemp);
if (!Bemp) os_fatal("malloc() failure in initfonts()");
- memcpy (bemp, bold, size);
+ memmove (bemp, bold, size);
// emphasize (underline)...
cfont = (byte *)bemp;
for (i = norm->minchar;i <= norm->maxchar;i++){
png_structp png_ptr, png_bytep data, png_size_t length)
{
PNGData* pngData = (PNGData*)png_get_io_ptr(png_ptr);
- memcpy(data,pngData->gfxData+pngData->offset,length);
+ memmove(data,pngData->gfxData+pngData->offset,length);
pngData->offset += length;
}
unsigned myin( void *d, byte **b){return 0;}
int myout( void *d, byte *b, unsigned n)
{
- memcpy(udata,b,n); udata += n;
+ memmove(udata,b,n); udata += n;
return 0;
}
{
while (nmove--)
{
- memcpy(dst,src,w*sizeof(ulong));
+ memmove(dst,src,w*sizeof(ulong));
dst += step;
src += step;
}
s = sbuffer+x+y*sbpitch;
for (i=0;i<h;i++)
{
- memcpy(p,s,w*sizeof(ulong));
+ memmove(p,s,w*sizeof(ulong));
p += w;
s += sbpitch;
}
d = sbuffer+x+y*sbpitch;
for (i=0;i<h;i++)
{
- memcpy(d,p,w*sizeof(ulong));
+ memmove(d,p,w*sizeof(ulong));
p += w;
d += sbpitch;
}