home *** CD-ROM | disk | FTP | other *** search
- {
- F i l e I n f o r m a t i o n
-
- * DESCRIPTION
- A simple program to test StackUse. Uses a few string because strings are
- rather hard on the stack.
-
- * ASSOCIATED FILES
- STACKUSE.PAS
- TESTSTAC.PAS
-
- }
-
- {**********************************************************
-
- A simple program to test the public domain unit
- StackUse. Uses a few strings because strings are
- rather hard on the stack.
-
- version 1.0
- 7/17/88
- by Richard S. Sadowsky
- released to the public domain
-
- **********************************************************}
-
- {$M 4096,0,0} { allocate a 4k stack. This is 1/4 the default stack }
- { size. NOTE: this program uses over half of the 4K }
- { stack we give it! }
-
- program TestStackUsage;
-
- uses StackUse;
- { NOTE: all we do is Use StackUse, and it takes care of everything! }
-
-
- function UseStrings(S1,S2,S3,S4,S5,S6 : String) : String;
-
- { this function is designed to use some stack }
-
- begin
- UseStrings := S1 + S2 + S3 + S4 + S5 + S6;
- end;
-
- begin
-
- WriteLn('UseStrings = ',UseStrings('string #1 ',
- 'string #2 ',
- 'string #3 ',
- 'string #4 ',
- 'string #5 ',
- 'string #6'));
- WriteLn
- end.
-