Re: The importance of prototypes
- From: "elzacho" <elzacho@xxxxxxxxx>
- Date: 31 Aug 2005 16:42:45 -0700
Thanks for the help guys,
Browsing around in gnu.gcc.bug I see that in gcc if no prototype is
given, the function passes all arguments as ints (no matter the local
data type or the function declarations desired data type). I am
wondering if this is the way the C standard designated it, or if gcc is
taking a liberty here.
This seems silly as this is just memory which I would expect would be
directly copied to the stack if no prototype is given to say otherwise,
not casted behind the scenes.
Zach
.
- Follow-Ups:
- Re: The importance of prototypes
- From: Richard Tobin
- Re: The importance of prototypes
- From: Anonymous 7843
- Re: The importance of prototypes
- From: Keith Thompson
- Re: The importance of prototypes
- References:
- The importance of prototypes
- From: elzacho
- Re: The importance of prototypes
- From: Richard Heathfield
- Re: The importance of prototypes
- From: Peter Nilsson
- Re: The importance of prototypes
- From: Keith Thompson
- The importance of prototypes
- Prev by Date: Re: while (1) vs. for ( ;; )
- Next by Date: Re: while (1) vs. for ( ;; )
- Previous by thread: Re: The importance of prototypes
- Next by thread: Re: The importance of prototypes
- Index(es):
Relevant Pages
|