Xref: utzoo comp.sys.amiga:21655 comp.sys.amiga.tech:1451 Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!oliveb!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga,comp.sys.amiga.tech Subject: Re: Astartup.obj and Lstartup.obj Keywords: Workbench window Message-ID: <63562@sun.uucp> Date: 9 Aug 88 19:33:12 GMT References: <6562@bloom-beacon.MIT.EDU> <63284@sun.uucp> <118@antares.UUCP> Sender: news@sun.uucp Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 21 In article <118@antares.UUCP> jms@antares.UUCP (joe smith) writes: > ...In particular, if a program did not execute a printf call, >no window was openned. Would this be possible to do on the Amiga? Simple in theory, a bit tougher to do it so that it would please everyone who uses the compiler. In the startup module one puts some "illegal but unique" value into the StdIn and StdOut file handles. Then one rewrites the stdio library routines to check for this value before using the handles. If they are this illegal value, then the routine calls the "build a window and fix up these two handles" routine. On exit, if the handles have legal values in them they are Closed(). This would slow down stdio by a fraction. And in some cases (where the application has closed the workbench) can still cause a catatropic failure. But it is probably better than nothing. Personally, I would like to see the startup code open a window if TOOLWINDOW= is defined in the tool types and open NIL: if it isn't. --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you.