🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #10704

Re: CloseFonts() problems

#10704
From: Leo L. Schwab
Date: Sun, 25 Dec 1988 09:45
24 lines
1572 bytes
In article <5783@polya.Stanford.EDU> aozer@NeXT.com (Ali Ozer) writes:
>In article <10097@well.UUCP> ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) writes:
>>	AllocMem (4000000000L, NULL);
>>
>>	This will always fail [ ... ]
>
>Just in case that request should succeed, you should do
>
>        if (tmp = AllocMem(4000000000L, NULL)) FreeMem (tmp, NULL)
>
>While you're dreaming, you might as well do it all the way!

	May as well do it right, too:

	if (tmp = AllocMem (4000000000L, NULL)) {
		puts ("Don't worry, you have *plenty* of memory.");
		FreeMem (tmp, 4000000000L);
	}	/* You forgot ^^^^^^^^^^^ that */

_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Leo L. Schwab -- The Guy in The Cape	INET: well!ewhac@ucbvax.Berkeley.EDU
 \_ -_		Recumbent Bikes:	UUCP: pacbell > !{well,unicom}!ewhac
O----^o	      The Only Way To Fly.	      hplabs / (pronounced "AE-wack")
"Work FOR?  I don't work FOR anybody!  I'm just having fun."  -- The Doctor
Technical Details
Message-ID: <10119@well.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!alberta!ubc-cs!uw-beaver!cornell!rochester!rutgers!apple!well!ewhac
References: <3599@tekig5.PEN.TEK.COM> <10097@well.UUCP> <5783@polya.Stanford.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!alberta!ubc-cs!uw-beaver!cornell!rochester!rutgers!apple!well!ewhac
From: ewhac@well.UUCP (Leo L. Schwab)
Newsgroups: comp.sys.amiga.tech
Subject: Re: CloseFonts() problems
Message-ID: <10119@well.UUCP>
Date: 25 Dec 88 09:45:19 GMT
References: <3599@tekig5.PEN.TEK.COM> <10097@well.UUCP> <5783@polya.Stanford.EDU>
Reply-To: ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab)
Organization: Lt. Col. Oliver North, Overseas Shipping and Receiving.
Lines: 24
Quote: "Mr. Spock is on his fanny, sir.  Reports heavy damage."  --  Hodgepodge