On Wed, Sep 03, 2003 at 07:55:06PM +1000, Sisyphus wrote: > > ----- Original Message ----- > From: "Peter Sinnott" <[EMAIL PROTECTED]> > > For example Inline > > only likes void as a return value so if I had declared my function > > int cdbt_prices_init(void) then Inline wouldn't have bound it. > > > > Not so - I've had no trouble returning an int, and I think that's generally > the case. There's probably some examples in 'perldoc C-Cookbook' that show > how to return other than 'void'. > > eg the following runs fine for me: >
My bad - what I ment(and think to be true ) is that you can only use void as a return value not that the only return value you can use is void. So Inline wont pick up int dumb(void) but will pick up int dumb() > use warnings; > use Inline C => <<'END'; > > int dumb() { > int i = -13; > return i; > } > > END > > print dumb(); > > Cheers, > Rob > -- We envision to conveniently engineer seven-habits-conforming information while continuing to synergistically leverage other's unique opportunities to exceed customer expectations