Re: function counting script, memcheck.sh

2006-03-20 Thread Segin
attached. Joris Huizer wrote: Segin wrote: Attached is version 0.2 of this script, with a lot of additional functionality. You will need to be able to write to /tmp and make a file /tmp/grep to use the extended functionality (default functionality needs none of that, and is unmodified.)

Re: function counting script, memcheck.sh

2006-03-20 Thread Joris Huizer
Segin wrote: Attached is version 0.2 of this script, with a lot of additional functionality. You will need to be able to write to /tmp and make a file /tmp/grep to use the extended functionality (default functionality needs none of that, and is unmodified.) Your message does not have the sc

function counting script, memcheck.sh

2006-03-19 Thread Segin
Attached is version 0.2 of this script, with a lot of additional functionality. You will need to be able to write to /tmp and make a file /tmp/grep to use the extended functionality (default functionality needs none of that, and is unmodified.) For those that are intested, you can fetch memche

Re: Function counting script

2006-03-19 Thread Segin
Jim White wrote: Joris Huizer wrote: Segin wrote: It's not a C interpeter, it's literally a frint end of sorts to grep. There's only one textual occurence of malloc() in the code, so it only returns one. Think before you speak. P.S. I'll add a C interpeter when there becomes a need for o

Re: Function counting script

2006-03-19 Thread Segin
That's ok, I failed to document that myself. In truth, it would truthfully be inpossible to find run-time memory leaks like that using a script because of a potential unknown variable in a for loop which is derived from an argument or return from another function. I will try to add code for de

Re: Function counting script

2006-03-19 Thread Jim White
Joris Huizer wrote: Segin wrote: It's not a C interpeter, it's literally a frint end of sorts to grep. There's only one textual occurence of malloc() in the code, so it only returns one. Think before you speak. P.S. I'll add a C interpeter when there becomes a need for one. It was my im

Re: Function counting script

2006-03-19 Thread Joris Huizer
Segin wrote: It's not a C interpeter, it's literally a frint end of sorts to grep. There's only one textual occurence of malloc() in the code, so it only returns one. Think before you speak. P.S. I'll add a C interpeter when there becomes a need for one. It was my impression that the goal

Re: Function counting script

2006-03-18 Thread Segin
It's not a C interpeter, it's literally a frint end of sorts to grep. There's only one textual occurence of malloc() in the code, so it only returns one. Think before you speak. P.S. I'll add a C interpeter when there becomes a need for one. Joris Huizer wrote: Segin wrote: As my small con

Re: Function counting script

2006-03-18 Thread Joris Huizer
Segin wrote: As my small contribution, attached is a small shell script that, unmodified, finds out how many times certain functions are called in a given sample of files. The default functions are 'malloc', 'realloc', and 'free', and the sample files are all files ending in .c in the current

Function counting script

2006-03-18 Thread Segin
As my small contribution, attached is a small shell script that, unmodified, finds out how many times certain functions are called in a given sample of files. The default functions are 'malloc', 'realloc', and 'free', and the sample files are all files ending in .c in the current directory. It