| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | redirection revision |
Hi Mike, [Borland C++ Version 1.00] MB> Version 1.00?! I think I have that somewhere. I don't recall ever even MB> getting it to run. There was a v1.01 massive bug fix and then a v1.50 MB> that actually worked, followed by the v2.00 that seems to have been MB> the swansong. Altough i have mailed the registration card as soon as in july 1993, Borland never bother me to inform that a bugfix was available. Maybe the available bugs did not apply to me, i do not write PM code, only plain text. MB> First, "signal()" had better be prototyped in SIGNAL.H or it is an ANSI MB> violation. Neither IBMs cc nor Borlands cc provide that info in their header files. I grep'd the entire OS/2 disk for include files containing 'signal', however nothing found. MB> Second, compiler internals are not named common things such as MB> "emergency," and any such names are preceded by a double underscore. Thanks, i did not know that, being not natively speaking English, emergency is to me as common as exit. MB> The signal handler function must take an 'int' and return 'void' -- as MB> required by ANSI. Most and for all since the printed manual (run time library) states that these are the correct types. MB> If your ancient Borland compiler doesn't understand this, it is broken. David Noon knows how to fix it: _USERENTRY emergency(int sig); does the trick for Borland. icc does not understand the type _USERENTRY, void works. [IBM's icc] MB> What does this tell you? ICC is a fairly strict compiler. Using /w3 as flags, no remarks at all, it is clean code. HdA>> the fact that a signal function is invoked, is sufficient to fflush the HdA>> buffers both of the redirected i/o as well as the streamed file. MB> This is not really a solution. It does not have to be a solution. The program in which i tested the signal() function, is merely a test program. Nowthat i know how to redirect my debugging data to file, i can start solving the real problem: how to remove the cause of the traps in my program, since i do not like coredumps. 73 es cuagn, Henk --- GoldED 2.50+* Origin: Henks Toolbox, Mail only (2:286/415) SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407 SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1 @PATH: 286/415 4 700 280/801 270/101 712/624 711/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™.