Re: [fpc-pascal] Using FPC MM in a C program

2009-01-06 Thread Micha Nelissen
leledumbo wrote: Since it's possible to use libc's MM via cmem unit, would the opposite be possible? I have a "crtl.pas" which defines a few functions (malloc, calloc, free, memmove, memcpy) to help in using libraries written in C with fpc programs without needing external dependencies (msvcr

Re: [fpc-pascal] Using FPC MM in a C program

2008-12-31 Thread Michael Van Canneyt
On Wed, 31 Dec 2008, Vinzent Höfler wrote: > Michael Van Canneyt wrote: > > > > On Wed, 31 Dec 2008, leledumbo wrote: > > > > > Since it's possible to use libc's MM via cmem unit, would the opposite be > > > possible? > > > > > >From the point of view of FPC, there should not be a big problem

Re: [fpc-pascal] Using FPC MM in a C program

2008-12-31 Thread Vinzent Höfler
Michael Van Canneyt wrote: On Wed, 31 Dec 2008, leledumbo wrote: Since it's possible to use libc's MM via cmem unit, would the opposite be possible? >From the point of view of FPC, there should not be a big problem. The C library, this is another matter. I am not sure that it supports plug

Re: [fpc-pascal] Using FPC MM in a C program

2008-12-31 Thread leledumbo
What if I replace libc's MM code with FPC one? Is it permitted? -- View this message in context: http://www.nabble.com/Using-FPC-MM-in-a-C-program-tp21229445p21230388.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fpc

Re: [fpc-pascal] Using FPC MM in a C program

2008-12-31 Thread Krishna
On Wed, Dec 31, 2008 at 4:39 PM, Michael Van Canneyt wrote: > > > On Wed, 31 Dec 2008, leledumbo wrote: > >> >> Since it's possible to use libc's MM via cmem unit, would the opposite be >> possible? > > >From the point of view of FPC, there should not be a big problem. > The C library, this is ano

Re: [fpc-pascal] Using FPC MM in a C program

2008-12-31 Thread Michael Van Canneyt
On Wed, 31 Dec 2008, leledumbo wrote: > > Since it's possible to use libc's MM via cmem unit, would the opposite be > possible? >From the point of view of FPC, there should not be a big problem. The C library, this is another matter. I am not sure that it supports plugging in a memory manager.