Mail Archives: djgpp/1998/11/24/10:20:30
On Sun, 22 Nov 1998, Eli Zaretskii wrote:
>
> On Thu, 19 Nov 1998, William Joseph Giraldo Orozco wrote:
>
> > Yes, but i want to have my executive in a library, and the funtions of the
> > process are custom. Its functions are writen by user of my executive.
> > Then i want that my library (executive) to calculate its limits.
>
> As far as I know, this is impossible to do in C. There's no
> provision in C to compute the size of a function's code.
I tend to disagree.
I think you need to completely change the approach of the problem.
A function parser could do the trick here, I think (though it's not so
easy to program.) Just let the parser transform user functions into some
internal representation and use that to do your calulations. Fractint does
it for creating userdefined fractals, IFS'es and L-systems, and that was
written in C.
>
>
Bjorn De Meyer.
IA #i^4
Homepage: http://studwww.rug.ac.be/~bgdmeyer
E-mail: bjorn DOT demeyer AT rug DOT ac DOT be
Licentiate Chemistry.
Coordinator of the "Tales of Artah: First Sword" CRPG project.
"I've shaven. I'm happy. I have no religion. Don't pray for me."
Illusion of Gaia 2
- Raw text -