Hi...
On Jan 25, 2008 6:59 PM, amit mehta <[EMAIL PROTECTED]> wrote:
> Please help me in understanding a #defined variable(NORET_TYPE here) which
> is not defined to anything.
> I know that panic() function was designed in this way to not to return
> anything{in case of panic,there won't be anyone to catch the return value
> from panic() },but how does this work.
> i think a program in user land having a #defined variable which is left
> blank will throw compile time error.how this is implemented in linux kernel
> ?
I don't know about it either, but try to create simple C program that
mimic this situation i.e make no_ret void func. Then call it from
main(). Don't do any optimization (-O0). Simply stop at assembling
stage (gcc -S) and see the .S file as the result. Perhaps you can
understand it better by your own from here.
> I don't know much about C,hence please excuse me if this is a stupid querry
There's no such stupid query. The real stupidity is when you know you
are stupid but have no courage to study.
regards,
Mulyadi.
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ