| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Window-designer |
Kelly Schrock wrote in a message to Mike Bilow: > Another thing to watch out for in Borland is that replacing > individual functions of the run-time library will sometimes fail > because of ANSI violations. For example, replacing tmpnam() will > fail because the original version of tmpnam() calls a private > (pascal) function __MKNAME(), and fclose() calls __MKNAME() directly > rather than properly calling tmpnam(). As a result, file created > with tmpfile() are created using your replacement tmpnam(), but are > never deleted because fclose() gets the wrong name. I consider that > a bug, while Borland considers it an optimization. Of course, you > can try to replace __MKNAME(), but its calling parameters change > with different versions of the compiler, and its pascal calling > convention causes that to have catastrophic effects on the stack... KS> Eeew. Glad there's no code in this library that opens files, KS> etc. For that, i'm using mainly iostreams. I just hope KS> Borland hasn't messed that up, too. I could tell worse horror stories about what happens when you try to replace malloc() and free() in the Borland library. Even the stack goes unstable. -- Mike ---* Origin: N1BEE BBS +1 401 944 8498 V.34/V.FC/V.32bis/HST16.8 (1:323/107) SEEN-BY: 12/2442 620/243 624/50 632/348 640/820 690/660 711/409 410 413 430 SEEN-BY: 711/807 808 809 934 942 949 712/353 515 713/888 800/1 7877/2809 @PATH: 323/107 150 3615/50 229/2 12/2442 711/409 808 809 934 |
|
| 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™.