J
J. J. Farrell
kmalloc comes from linux.
Nonsense. It no more comes from Linux than from eCos.
kmalloc comes from linux.
Hi all,
Can we read the stack frame's of the current process.
as we know that whenever a function call is made in c new functions
stack frame
is created and pushed on to the stack. and when the function returns
it is popped out from the stack. i want to know the caller functions
name.
Mark Bluemel said:That's put me right... Neither __FUNCTION__ or __func__ are, strictly
speaking, macros...
Chip Coldwell said:Just insert a call dump_stack(); you'll get everything.
Philip said:Yes, that's why I replied to you and not to him. I wasn't
nitpicking, I was asking a question, because I'm not certain
enough of Acrobat's searching functionality to be sure that
__FUNCTION__ isn't in there.
harshal said:Hi all,
Can we read the stack frame's of the current process.
as we know that whenever a function call is made in c new functions
stack frame
is created and pushed on to the stack. and when the function returns
it is popped out from the stack. i want to know the caller functions
name.
i mean i want something like this
int a()
{
printf("File = %s\n",__FILE__);
/* i want to print the callers name over here. something like this
printf("Caller function = %s\n",__CALLER_FUN__); it should print
b*/
return 0;
}
Yes, that's why I replied to you and not to him. I wasn't nitpicking, I
was asking a question, because I'm not certain enough of Acrobat's
searching functionality to be sure that __FUNCTION__ isn't in there.
harshal said:Hi all,
Can we read the stack frame's of the current process.
as we know that whenever a function call is made in c new functions
stack frame
is created and pushed on to the stack. and when the function returns
it is popped out from the stack.
i want to know the caller functions name.
One more reason to use the text version of N869.
I don't think thats an accurate comment. The text version is just as
capable of having __ FUNCTION __ as the PDF.
The text version of N869 does not include any spacing in any of the 20
identifiers starting with __. There's no reason to assume that if one
more were mentioned, that one would.
And you know this for sure, how exactly? Other than by searching for it,
I mean. .
By also searching for any _ or __ as a separate word.
I'm wondering which part of my last sentence was tricky to
understand....
Well, what did you mean by "it" ?
Mark said:And you know this for sure, how exactly? Other than by searching
for it, I mean. .
Chuck was in my view unreasonably claiming that the PDF was
inferior to the text version due to lack of searchability. I
merely wanted to point out that this is a false inference.
Either the plaintext or the PDF can be
handily searched for whatever you want to. Obviously if there are typos
(I recall some bizarre diacritical being used occasionally, and
definitely some spaces where none should be), it makes searches harder
but this is not the fault of the file format. There is no intrinsic
reason (other than ludditism) to distrust either search facility.
[Joachim Schmitz wrote:]Yes, that's why I replied to you and not to him. I wasn't
nitpicking, I was asking a question, because I'm not certain
enough of Acrobat's searching functionality to be sure that
__FUNCTION__ isn't in there.
One more reason to use the text version of N869. There is no
__FUNCTION__. However, __func__ does exist.
Harald van D©¦k said:Let's go upthread and find the message you had a problem with:
[CBFalconer wrote:][Joachim Schmitz wrote:]Yes, that's why I replied to you and not to him. I wasn't
nitpicking, I was asking a question, because I'm not certain
enough of Acrobat's searching functionality to be sure that
__FUNCTION__ isn't in there.
One more reason to use the text version of N869. There is no
__FUNCTION__. However, __func__ does exist.
There is no claim that it is an inherent property of text files that they
will contain correct spellings. The text version of n869 happens to be
one that does contain correct spellings -- please don't start with "how
do you know?" again -- and for that reason searching it in produces
better results.
As far as I can tell, it has not yet been established that, for example,
n1256.pdf contains any incorrect spellings.
Hi all,
Can we read the stack frame's of the current process.
as we know that whenever a function call is made in c new functions
stack frame
is created and pushed on to the stack.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.