Re: [gtk-list] Re: newcomer question: compiling gtk - memmove...



On 4 Dec 1997, Tom Tromey wrote:

> Marcus> My gcc compiler doesn't recognize the function "memmove",
> Marcus> which gets called a few times in the gtk code (971201). Maybe
> Marcus> this is a gcc problem?
> 
> This is a problem with the C library on your machine.  Some older OSs,
> like SunOS, don't provide memmove.

Not exactly a problem, but more a deficiency.

> Marcus> Any ideas as to what I might be doing wrong? Or workarounds?
> 
> You aren't doing anything wrong.
> 
> A workaround would be to get a replacement memmove and put it into gtk
> when the OS doesn't provide one.  This is quite simple to do.  I'd do
> it, but I'm not sure about the official GTk position on replacement
> functions.  Would it be better to write `g_memmove' and change all the
> calls in GTk?  (That is what is done for strdup, for instance.  Is
> this really necessary?)

If I'm not mistaken the equally old bcopy() call is supposed to work
correctly with overlapping range, thus the normal technique of mapping
memmove to bcopy (and vice versa.) 

-- 
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]