Call of non-function (?)
John Woods, Software
john at frog.UUCP
Thu Dec 19 08:01:50 AEST 1985
>While trying to compile some source code that I got over the net, my compiler
>tripped over this line:
>
>cmd->c_func(args, arg1, arg2, got1, got2);
>
>In fact, at several points in the code, similar lines made the compiler throw
>up. The error was 'call of non-function'.
Change the line to read
( * cmd->c_func ) (args, arg1, arg2, got1, got2);
Some compilers accept the shortcut (since its meaning is obvious), some don't.
--
John Woods, Charles River Data Systems, Framingham MA, (617) 626-1101
...!decvax!frog!john, ...!mit-eddie!jfw, jfw%mit-ccc at MIT-XX.ARPA
Out of my way, I'm a scientist!
War of the Worlds
More information about the Comp.sources.bugs
mailing list