1*7c478bd9Sstevel@tonic-gate\ #ident "%Z%%M% %I% %E% SMI" 2*7c478bd9Sstevel@tonic-gate\ purpose: 3*7c478bd9Sstevel@tonic-gate\ copyright: Copyright 2005 Sun Microsystems, Inc. All rights reserved. 4*7c478bd9Sstevel@tonic-gate\ copyright: Use is subject to license terms. 5*7c478bd9Sstevel@tonic-gate\ copyright: 6*7c478bd9Sstevel@tonic-gate\ copyright: CDDL HEADER START 7*7c478bd9Sstevel@tonic-gate\ copyright: 8*7c478bd9Sstevel@tonic-gate\ copyright: The contents of this file are subject to the terms of the 9*7c478bd9Sstevel@tonic-gate\ copyright: Common Development and Distribution License, Version 1.0 only 10*7c478bd9Sstevel@tonic-gate\ copyright: (the "License"). You may not use this file except in compliance 11*7c478bd9Sstevel@tonic-gate\ copyright: with the License. 12*7c478bd9Sstevel@tonic-gate\ copyright: 13*7c478bd9Sstevel@tonic-gate\ copyright: You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 14*7c478bd9Sstevel@tonic-gate\ copyright: or http://www.opensolaris.org/os/licensing. 15*7c478bd9Sstevel@tonic-gate\ copyright: See the License for the specific language governing permissions 16*7c478bd9Sstevel@tonic-gate\ copyright: and limitations under the License. 17*7c478bd9Sstevel@tonic-gate\ copyright: 18*7c478bd9Sstevel@tonic-gate\ copyright: When distributing Covered Code, include this CDDL HEADER in each 19*7c478bd9Sstevel@tonic-gate\ copyright: file and include the License file at usr/src/OPENSOLARIS.LICENSE. 20*7c478bd9Sstevel@tonic-gate\ copyright: If applicable, add the following below this CDDL HEADER, with the 21*7c478bd9Sstevel@tonic-gate\ copyright: fields enclosed by brackets "[]" replaced with your own identifying 22*7c478bd9Sstevel@tonic-gate\ copyright: information: Portions Copyright [yyyy] [name of copyright owner] 23*7c478bd9Sstevel@tonic-gate\ copyright: 24*7c478bd9Sstevel@tonic-gate\ copyright: CDDL HEADER END 25*7c478bd9Sstevel@tonic-gate\ copyright: 26*7c478bd9Sstevel@tonic-gate 27*7c478bd9Sstevel@tonic-gate." Case: " 28*7c478bd9Sstevel@tonic-gate: case1 ( n -- str ) 29*7c478bd9Sstevel@tonic-gate case 30*7c478bd9Sstevel@tonic-gate 0 of " zero" >r >r endof 31*7c478bd9Sstevel@tonic-gate 1 of " one" >r >r endof 32*7c478bd9Sstevel@tonic-gate 2 of " two" >r >r endof 33*7c478bd9Sstevel@tonic-gate dup <# u#s u#> >r >r 34*7c478bd9Sstevel@tonic-gate endcase 35*7c478bd9Sstevel@tonic-gate r> r> 36*7c478bd9Sstevel@tonic-gate; 37*7c478bd9Sstevel@tonic-gate " case.1" 0 case1 drop " zero" comp invert .passed? 38*7c478bd9Sstevel@tonic-gate " case.2" 1 case1 drop " one" comp invert .passed? 39*7c478bd9Sstevel@tonic-gate " case.3" 2 case1 drop " two" comp invert .passed? 40*7c478bd9Sstevel@tonic-gate " case.4" 3 case1 drop " 3" comp invert .passed? 41*7c478bd9Sstevel@tonic-gate " case.5" 4 case1 drop " 4" comp invert .passed? 42*7c478bd9Sstevel@tonic-gatecr 43