TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Phil Crown
from: Paul Edwards
date: 1995-11-17 22:37:38
subject: BCOS2 signal()

PC> The below example from BCOS2 v2.0, as you posted, it does not compile, but 
PC> I made two changes below and it compiles... and.. works! :-)

PE> The bug was fixed in BCOS2 1.5.  Are you sure the example on
PE> signal doesn't compile?

PC>  int main(void) { 
PC>     signal(SIGFPE, (void (cdecl *) (int)) catcher); // should be SIGINT
PC>     for (;;)
PC>        printf("\nIn main() program\n");
PC>  }

ROFL!!!  The trouble we have in Australia is that the dopes who man
the phones aren't actually developers (they're all in USA) so what
we need to do is convince the dunderheads here that it is actually
a bug (which requires them to actually understand C programming) so
that they will contact the developers in USA.  So when I raised the
problem, the dunderhead told me I needed to put cdecl or some such
rubbish in my function declaration.  I then changed my tack to tell
them that their example doesn't compile, and they should change
their example program so that it actually compiles.  Looks like
someone in USA reported the bug and got a developer to fix the bug,
whilst the Australian contacted the doco team to get the doco
changed to make it incorrect - ROFL!!!  Needless to say, I no longer
upgrade my Borland compiler when I have 3 alternatives available.
BFN.  Paul.
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.