  
 
 
  
 	 	         P N O T I C E _ c o m p o s e . a l m                           0 4 / 2 3 / 8 5     1 0 5 9 . 2 r   w   0 4 / 1 7 / 8 5     1 1 0 4 . 0                 3 5 5 5     
 
 
 
 	 d e c 	 1 	 	 	 " v e r s i o n   1   s t r u c t u r e 
 	 d e c 	 2 	 	 	 " n o .   o f   p n o t i c e s 
 	 d e c 	 3 	 	 	 " n o .   o f   S T I s 
 	 d e c 	 1 5 6 	 	 	 " l g t h   o f   a l l   p n o t i c e s   +   n o .   o f   p n o t i c e s 
                     a c c               " C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1 " 
                     a c c               " C o p y r i g h t   ( c )   1 9 7 2   b y   M a s s a c h u s e t t s   I n s t i t u t e   o f 
 T e c h n o l o g y   a n d   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s ,   I n c . " 
 
 	 a c i 	 " C 1 D F 0 M 0 B 0 0 0 0 " 
 	 a c i 	 " C 2 D F 0 M 0 B 0 0 0 0 " 
 	 a c i 	 " C 3 D F 0 M 0 B 0 0 0 0 " 
 	 e n d 
    
 
 
  
 	 	         c o m p _ . p l 1                                               0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 0 8 . 5             2 2 5 4 8 6     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   s u b r o u t i n e   t o   p r o c e s s   i n p u t   f i l e s   * / 
 
 / *   T h i s   r o u t i n e   i s   r e c u r s i v e   s i n c e   t h e   c o n t r o l s   p r o c e s s o r   m u s t   c a l l   i t 
       t o   p r o c e s s   i n s e r t e d   f i l e s .   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ : 
     p r o c ; 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   a s c i i _ w i d t h 	       f i x e d   b i n ; 	 / *   w i d t h   o f   c t l   l i n e   i n   c h a r s   * / 
         d c l   b l a n k _ c o u n t 	       f i x e d   b i n   i n i t   ( 0 ) ; 
         d c l   B R E A K 	       b i t   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 1 " b ) ; 
         d c l   b r e a k _ t y p e 	       f i x e d   b i n ; 
         d c l   C B A R S 	       b i t   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 1 " b ) ; 
 	 	 	 	 / *   c o u n t   o f   b l a n k s   i n s e r t e d   * / 
         d c l   c h a r _ i n d e x 	       ( 1 0 2 0 )   f i x e d   b i n   ( 9 ) 
 	 	 	 	 / *   f o r   w i d t h   m e a s u r e m e n t   * / 
 	 	       u n s i g n e d   u n a l i g n e d   b a s e d   ( c h a r _ i n d e x _ p t r ) ; 
         d c l   c h a r _ i n d e x _ p t r   p t r ; 
         d c l   c o l _ s p a c e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   t o   a d v a n c e   t a b l e   c o l u m n s   * / 
         d c l   E M P T Y 	       b i t   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 1 " b ) ; 
         d c l   e n d i n p u t 	       b i t   ( 1 ) ; 	 / *   l o c a l   c o p y   o f   s h a r e d   f l a g   * / 
         d c l   E P I L O G U E 	       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 4 ) ; 
         d c l   e r c d 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   e r r o r   c o d e   * / 
         d c l   f i l l _ c o u n t 	       f i x e d   b i n ; 	 / *   t a b   f i l l   c o u n t   * / 
         d c l   h e a d _ u s e d 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   s p a c e   t a k e n   b y   p a g e   h e a d e r   * / 
         d c l   h t a b _ s h i f t 	       c h a r   ( 7 )   b a s e d   ( D C x x _ p ) ; 
 	 	 	 	 / *   c t l   s t r i n g   f o r   h t a b b i n g   * / 
         d c l   1   h t a b _ s p a c e       l i k e   d c l o n g _ v a l ;   / *   f o r   i n s e r t i n g   h t a b   W S   * / 
         d c l   ( i ,   j ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   a n d   s t r i n g   i n d e x   * / 
         d c l   ( i i ,   j j ,   k ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
 	 	 	 	 / *   f o r   h t a b   m e a s u r i n g   * / 
         d c l   1   m e a s 1 	       a l i g n e d   l i k e   t e x t _ e n t r y . c u r ; 
         d c l   1   m e a s 2 	       a l i g n e d   l i k e   t e x t _ e n t r y . c u r ; 
         d c l   s t r n d x 	       f i x e d   b i n ; 	 / *   w o r k i n g   l i n e   s c a n   i n d e x   * / 
         d c l   T E X T 	       b i t   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 1 " b ) ; 
         d c l   t e x t _ a d d e d 	       b i t   ( 1 )   a l i g n e d ;   / *   t e x t   a d d e d   t o   o u t p u t   b u f f e r   * / 
         d c l   t e x t _ f l a g 	       b i t   ( 1 ) ; 	 / *   c u r r e n t   b l o c k   i s   i n - l i n e   t e x t   * / 
         d c l   T R I M 	       b i t   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 1 " b ) ; 
         d c l   t x t w i d t h 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) ; 
 	 	 	 	 / *   m e a s u r e d   t e x t   w i d t h   * / 
 
 / *   E X T E R N A L   S T O R A G E   * / 
 
         d c l   ( a d d r e l ,   b e f o r e ,   b i n ,   c o p y ,   d i v i d e ,   i n d e x ,   l e n g t h ,   m a x ,   m i n ,   m o d ,   n u l l , 
                 r t r i m ,   s e a r c h ,   s u b s t r ) 
 	 	       b u i l t i n ; 
         d c l   ( c o m p _ a b o r t ,   e n d _ o u t p u t ) 
 	 	       c o n d i t i o n ; 
 
         d c l   i o x _ $ p u t _ c h a r s   e n t r y   ( p t r ,   p t r ,   f i x e d   ( 2 4 ) ,   f i x e d   ( 3 5 ) ) ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " c o m p _ :   ( ^ d   ^ d   ^ a   p a s s = ^ d ) " ,   c a l l _ s t a c k . i n d e x , 
 	         i n s e r t _ d a t a . i n d e x ,   s h a r e d . i n p u t _ f i l e n a m e ,   s h a r e d . p a s s _ c o u n t e r ) ; 
 
         h t a b _ s p a c e . m a r k   =   D C 1 ; 
         h t a b _ s p a c e . t y p e   =   t y p e _ s l x ; 	 / *   s e t u p   f o r   h t a b b i n g   * / 
         h t a b _ s p a c e . l e n g   =   4 ; 
         D C x x _ p   =   a d d r   ( h t a b _ s p a c e ) ; 
         c a l l _ b o x _ p t r   =   c a l l _ s t a c k . p t r   ( c a l l _ s t a c k . i n d e x ) ; 
 	 	 	 	 / *   s e t   c t l   l i n e   o v e r l a y   p o i n t e r   * / 
         c h a r _ i n d e x _ p t r   =   a d d r e l   ( c t l . p t r ,   1 ) ; 
 
         c a l l _ b o x . l i n e n o   =   0 ; 	 	 / *   c l e a r   l i n e   c o u n t e r   f o r   t h i s   f i l e   * / 
         i f   c a l l _ s t a c k . i n d e x   =   0 	 	 / *   s e t   s o u r c e   f i l e   l i n e n o   * / 
         t h e n   c a l l _ b o x . l i n e n o 0   =   0 ; 
         e l s e   c a l l _ b o x . l i n e n o 0   =   c a l l _ b o x 0 . l i n e n o ; 
 
         e n d i n p u t   =   s h a r e d . e n d _ i n p u t ; 	 / *   c o p y   s h a r e d   f l a g   f o r   r e c u r s i o n   * / 
         s h a r e d . e n d _ i n p u t   =   " 0 " b ; 	 	 / *   a n d   r e s e t   i t   * / 
         o n   e n d _ o u t p u t   g o t o   e n d _ o u t p u t _ ; 	 / *   e n d _ o u t p u t   s i g n a l   c h a i n   e n d s   h e r e   * / 
 
 r e a d : 
         i f   s h a r e d . e n d _ i n p u t 	 	 / *   d i d   s o m e b o d y   s i g n a l ?   * / 
         t h e n   g o t o   e n d _ i n p u t _ ; 
         i f   s h a r e d . e n d _ o u t p u t 
         t h e n   g o t o   e n d _ o u t p u t _ ; 	 	 / * * / 
 	 	 	 	 / *   r e a d   a n   i n p u t   l i n e   * / 
         c a l l   c o m p _ r e a d _ $ l i n e   ( c a l l _ s t a c k . p t r   ( c a l l _ s t a c k . i n d e x ) ,   c t l _ l i n e ,   " 0 " b ) ; 
         c t l . i n f o   =   c a l l _ b o x . i n f o ; 
 
         i f   s h a r e d . e n d _ i n p u t 	 	 / *   i n p u t   E O F ?   * / 
         t h e n   g o t o   e n d _ i n p u t _ ; 
 
         i f   s h a r e d . l i t e r a l _ m o d e 	 	 / *   a   l i t e r a l   b l o c k ?   * / 
         t h e n 
             d o ; 
                 i f   s h a r e d . l i t _ c o u n t   =   0 	 / *   i f   t h a t s   a l l ,   r e s e t   t h e   f l a g   * / 
                 t h e n   s h a r e d . l i t e r a l _ m o d e   =   " 0 " b ; 
                 e l s e 	 	 	 / *   c o u n t   l i n e s   * / 
 	       s h a r e d . l i t _ c o u n t   =   s h a r e d . l i t _ c o u n t   -   1 ; 
             e n d ; 
 
         c t l . D V c t l   =   " 0 " b ; 	 	 / *   r e s e t   d e v i c e   c t l   f l a g   * / 
         c t l . f o n t   =   c t l . c u r . f o n t ; 	 	 / *   p r o p a g a t e   a n y   f o n t   c h a n g e s   * / 
 
         i f   i n d e x   ( c t l _ l i n e ,   " 	 " )   ^ =   0 	 / *   i f   a n y   H T s   i n   t h e   l i n e   * / 
         t h e n 
             d o ; 
                 a s c i i _ w i d t h   =   0 ; 	 	 / *   s e t   u p   l o o p   c o u n t e r s   * / 
                 i ,   j   =   1 ; 	 	 	 / *   a n d   c o n t r o l   i n d i c e s   * / 
                 d o   w h i l e   ( j   >   0 ) ; 	 	 / *   a s   l o n g   a s   H T s   a r e   f o u n d   * / 
 	 j   =   i n d e x   ( s u b s t r   ( c t l _ l i n e ,   i ) ,   " 	 " ) ; 
 	 	 	 	 / *   l o o k   f o r   a n   H T   * / 
 
 	 i f   j   >   0 	 	 	 / *   i f   o n e   w a s   f o u n d   * / 
 	 t h e n 
 	     d o ; 
 
 	         i f   j   >   1 	 	 / *   m e a s u r e   p r e c e d i n g   t e x t   * / 
 	         t h e n 
 	             d o ; 
 	                 d o   k   =   i   t o   i   +   j   -   2 ; 
 	 	 i f   c h a r _ i n d e x   ( k )   > =   3 2   &   c h a r _ i n d e x   ( k )   < =   1 2 6 
 	 	 t h e n   a s c i i _ w i d t h   =   a s c i i _ w i d t h   +   1 ; 
 	 	 e l s e   i f   c h a r _ i n d e x   ( k )   =   8 
 	 	 t h e n   a s c i i _ w i d t h   =   a s c i i _ w i d t h   -   1 ; 
 	                 e n d ; 
 	                 i i   =   i   +   j   -   1 ; 	 / *   p o s i t i o n   o f   H T   i n   l i n e   * / 
 	             e n d ; 
 	         e l s e   i i   =   i ; 	 	 / *   H T   i s   t h e   n e x t   c h a r a c t e r   * / 
 
 	         b l a n k _ c o u n t   = 	 	 / *   b l a n k s   t o   n e x t   M u l t i c s   t a b   * / 
 	                   1 0   -   m o d   ( a s c i i _ w i d t h ,   1 0 ) ; 
 	         c t l _ l i n e   =   s u b s t r   ( c t l _ l i n e ,   1 ,   i i   -   1 )   | | 
 	 	 	 	 / *   i n s e r t   t h e m   * / 
 	                   c o p y   ( "   " ,   b l a n k _ c o u n t )   | |   s u b s t r   ( c t l _ l i n e ,   i i   +   1 ) ; 
 	         i   =   i i   +   b l a n k _ c o u n t ; 	 / *   a d j u s t   c o u n t e r s   * / 
 	         a s c i i _ w i d t h   =   a s c i i _ w i d t h   +   b l a n k _ c o u n t ; 
 	     e n d ; 
                 e n d ; 
             e n d ; 
 
         i f   s h a r e d . t a b l e _ m o d e 
         t h e n 
             d o ; 	 	 	 	 / *   r e c o r d   c u r r e n t   t a b l e   c o l u m n   * / 
                 t b l f m t p t r   =   t b l d a t a . f m t   ( t b l d a t a . n d x ) . p t r ; 
                 t b l c o l n d x   =   t b l f m t . c c o l ; 
                 t b l c o l p t r   =   t b l f m t . c o l p t r   ( t b l c o l n d x ) ; 
                 i f   t b l c o l n d x   =   0 
                 t h e n   b r e a k _ t y p e   =   b l o c k _ b r e a k ; 
                 e l s e   b r e a k _ t y p e   =   f o r m a t _ b r e a k ; 
             e n d ; 
 
         t e x t _ a d d e d   =   " 1 " b ; 	 	 / *   p r e s e t   t e x t   f l a g   * / 
 
         i f   l e n g t h   ( c t l _ l i n e )   =   0 	 	 / *   s p e c i a l   h a n d l i n g   f o r   n u l l   l i n e s   * / 
         t h e n 
             d o ; 
 n u l l _ l i n e : 
                 i f   s h a r e d . b l k p t r   ^ =   n u l l 	 / *   i f   t h e r e   i s   a n   a c t i v e   b l o c k   * / 
                 t h e n 
 	 d o ; 
 	     i f   t e x t . p a r m s . t i t l e _ m o d e 	 / *   a   t i t l e   b l o c k ?   * / 
 	     t h e n 
 	         d o ; 	 	 	 / *   c o u n t   l i n e s   * / 
 	             t e x t . h d r . e q n _ l i n e _ c o u n t   =   t e x t . h d r . e q n _ l i n e _ c o u n t   -   1 ; 
 	 	 	 	 / *   i f   t h a t s   a l l ,   r e s e t   f l a g   * / 
 	             i f   t e x t . h d r . e q n _ l i n e _ c o u n t   =   0 
 	             t h e n   t e x t . p a r m s . t i t l e _ m o d e   =   " 0 " b ; 
 	         e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i s   t h e r e   a   h e a d e r   p e n d i n g ?   * / 
 	     i f   t e x t . p a r m s . h d r p t r   ^ =   n u l l   &   ^ s h a r e d . i n s e r t i n g _ h f c 
 	     t h e n   c a l l   c o m p _ t i t l e _ b l o c k _   ( t e x t . p a r m s . h d r p t r ) ; 
 	 e n d ; 
 
                 c a l l   c o m p _ s p a c e _   ( c u r r e n t _ p a r m s . l i n e s p a c e ,   s h a r e d . b l k p t r ,   T E X T ,   ^ T R I M , 
 	       C B A R S ,   " 0 " b ) ; 
                 i f   s h a r e d . t a b l e _ m o d e 
                 t h e n   c a l l   c o m p _ b r e a k _   ( b r e a k _ t y p e ,   - 1 ) ; 
                 e l s e   i f   ^ t e x t . p a r m s . a r t 
                 t h e n   c a l l   c o m p _ b r e a k _   ( b l o c k _ b r e a k ,   0 ) ; 
 
                 g o t o   r e a d ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i n d e n t e d   c o n t r o l s ?   t h e n   * / 
 	 	 	 	 / *   f i n d   f i r s t   n o n b l a n k   * / 
         i f   s h a r e d . i n d c t l . s t k   ( s h a r e d . i n d c t l . n d x ) 
         t h e n   c t l . i n d e x   =   v e r i f y   ( c t l _ l i n e ,   "   " ) ; 
         e l s e   c t l . i n d e x   =   1 ; 	 	 / *   e l s e   s t a r t   a   1   * / 
 
 / *   c o n t r o l   l i n e ?   * / 
         i f   i n d e x   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   " . " )   =   1 
                   &   i n d e x   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   " .   " )   ^ =   1 
                   &   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x )   ^ =   " . " 
                   &   i n d e x   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   " . .   " )   ^ =   1 
                   &   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x )   ^ =   " . . " 
                   &   i n d e x   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   " . . . " )   ^ =   1 
         t h e n 
             d o ; 
                 i f   ^ s h a r e d . l i t e r a l _ m o d e 	 / *   i f   n o t   i n   l i t e r a l   m o d e   * / 
 	       |   ( s h a r e d . l i t e r a l _ m o d e   &   s h a r e d . l i t _ c o u n t   <   0 
 	 	 	 	 / *   o r   a   n o n - c n t n g   l i t e r a l   * / 
 	       &   ( c t l _ l i n e   =   " . b e l " 	 / *   a n d   e n d   l i t e r a l   * / 
 	       |   c t l _ l i n e   =   " . b e " ) ) 	 / *   o r   e n d   a l l   * / 
                 t h e n 
 	 d o ; 
 t b l _ : 
 	     i f   s h a r e d . t a b l e _ m o d e 	 / *   t a b l e   m o d e ?   * / 
 	     t h e n   i f   t b l f m t . c o n t e x t 	 / *   a n d   f o r m a t   i n   c o n t e x t   m o d e   * / 
 	               t h e n 
 	                   d o ; 	 	 / * * / 
 	 	 	 	 / *   i f   t h e r e   i s   a   c o l u m n   i n d e x   * / 
 	 	   i f   i n d e x   ( " 1 2 3 4 5 6 7 8 9 0 " ,   s u b s t r   ( c t l _ l i n e ,   2 ,   1 ) )   ^ =   0 
 	 	   t h e n 
 	 	       d o ; 
 	 	           c t l . i n d e x   =   c t l . i n d e x   +   1 ; 
 	 	 	 	 / *   b a d   c o l u m n ?   * / 
 	 	           i f   b i n   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) ) 
 	 	 	 >   t b l f m t . n c o l s 
 	 	           t h e n 
 	 	               d o ; 
 	 	                   c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	 	         " C o l u m n   u n d e f i n e d   f o r   t h i s   f o r m a t . " , 
 	 	 	         a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	 	                   g o t o   r e a d ; 
 	 	               e n d ; 	 / * * / 
 	 	 	 	 / *   c h a n g i n g ?   * / 
 	 	           i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   =   " 0 " 
 	 	 	 &   t b l f m t . c c o l   ^ =   1 0 
 	 	 	 |   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   ^ =   " 0 " 
 	 	 	 &   b i n   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) ) 
 	 	 	 ^ =   t b l f m t . c c o l 
 	 	           t h e n   c a l l   c o m p _ t b l _ c t l s _   ( t a c _ c t l _ i n d e x ) ; 
 	 	 	 	 / *   a s s u r e   c o n t e x t   m o d e   * / 
 	 	           t b l f m t . c o n t e x t   =   " 1 " b ; 
 	 	 	 	 / *   s t r i p   c o l u m n   o f f   i n p u t   l i n e   * / 
 	 	           i f   l e n g t h   ( c t l _ l i n e )   >   2 
 	 	           t h e n   c t l _ l i n e   =   s u b s t r   ( c t l _ l i n e ,   3 ) ; 
 	 	           e l s e   c t l _ l i n e   =   " " ; 
 	 	 	 	 / *   i f   c h a n g i n g   c o l u m n s   * / 
 	 	           i f   t b l f m t . c c o l   ^ =   t b l c o l n d x 
 	 	           t h e n 
 	 	               d o ; 	 / *   l e a v i n g   c o l u m n   0 ?   * / 
 	 	                   i f   t b l c o l n d x   =   0 
 	 	                   t h e n 
 	 	 	   d o   i   =   1   t o   t b l f m t . n c o l s ; 
 	 	 	       t b l f m t . c o l p t r   ( i )   - >   t b l c o l . d e p t h   = 
 	 	 	                 t b l c o l 0 . d e p t h ; 
 	 	 	   e n d ; 	 / * * / 
 	 	 	 	 / *   s e t   t o   n e w   c o l u m n   * / 
 	 	                   t b l c o l n d x   =   t b l f m t . c c o l ; 
 	 	                   t b l c o l p t r   =   t b l f m t . c o l p t r   ( t b l c o l n d x ) ; 
 	 	                   c t l . f o n t ,   c t l . c u r . f o n t   = 
 	 	 	         t b l c o l . p a r m s . f n t s t k 
 	 	 	         . e n t r y   ( t b l c o l . p a r m s . f n t s t k . i n d e x ) ; 
 
 	 	                   i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
 	 	                   t h e n 
 	 	 	   d o ; 
 	 	 	       t e x t . i n p u t . f o n t ,   t e x t . i n p u t . c u r . f o n t , 
 	 	 	                 c t l . f o n t ,   c t l . c u r . f o n t   = 
 	 	 	                 t b l c o l . p a r m s . f n t s t k 
 	 	 	                 . e n t r y   ( t b l c o l . p a r m s . f n t s t k . i n d e x ) ; 
 	 	 	       t e x t . i n p u t . q u a d ,   c t l . q u a d   =   t b l c o l . p a r m s . q u a d ; 
 	 	 	   e n d ; 
 	 	               e n d ; 	 / * * / 
 	 	 	 	 / *   f o r   a   n u l l   l i n e   * / 
 	 	           i f   c t l _ l i n e   =   " " 
 	 	           t h e n   g o t o   n u l l _ l i n e ; 
 	 	           e l s e   g o t o   t e x t _ ; 
 	 	       e n d ; 	 	 / * * / 
 	 	 	 	 / *   a   r e a l   c o n t r o l   l i n e   * / 
 	 	   e l s e   i f   s u b s t r   ( c t l _ l i n e ,   1 ,   3 )   ^ =   " . u r " 
 	 	   t h e n 
 	 	       d o ; 	 	 / *   c l e a n   u p   * / 
 	 	           i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
 	 	           t h e n   i f   t e x t . i n p u t _ l i n e   ^ =   " " 
 	 	 	 t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 	 	       e n d ; 
 	                   e n d ; 	 	 / * * / 
 	 	 	 	 / *   c a l l   c o n t r o l   p r o c e s s o r   * / 
 	     c a l l   c o m p _ c t l s _   ( t e x t _ a d d e d ) ; 
 
 	     i f   t e x t _ a d d e d   &   s h a r e d . t a b l e _ m o d e   &   s u b s t r   ( c t l _ l i n e ,   1 ,   1 )   =   " . " 
 	               &   i n d e x   ( " 1 2 3 4 5 6 7 8 9 0 " ,   s u b s t r   ( c t l _ l i n e ,   2 ,   1 ) )   ^ =   0 
 	     t h e n   i f   t b l d a t a . f m t   ( t b l d a t a . n d x ) . p t r   - >   t b l f m t . c o n t e x t 
 	               t h e n   g o t o   t b l _ ; 
 	 e n d ; 
             e n d ; 
 
         i f   s h a r e d . t a b l e _ m o d e   &   t e x t _ a d d e d 	 / *   t e x t   l i n e   i n   t a b l e   m o d e ?   * / 
         t h e n   i f   t b l f m t . c o n t e x t 	 	 / *   a n d   f o r m a t   i n   c o n t e x t   m o d e ?   * / 
                   t h e n 
 	   d o ; 
 	       t b l c o l n d x   =   t b l f m t . c c o l ; 
 	       i f   t b l c o l n d x   ^ =   0 	 / *   g o i n g   b a c k   t o   c o l u m n   0 ?   * / 
 	       t h e n 
 	           d o ; 	 	 	 / *   c l e a n   u p   * / 
 	               i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
 	               t h e n   i f   t e x t . i n p u t _ l i n e   ^ =   " " 
 	 	     t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 	 	 	 	 / *   s w i t c h   t o   c o l u m n   0   * / 
 	               t b l c o l n d x ,   t b l f m t . c c o l   =   0 ; 
 	               t b l c o l p t r   =   t b l f m t . c o l p t r   ( 0 ) ; 
 	               c u r r e n t _ p a r m s   =   t b l c o l . p a r m s ; 
 
 	               i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
 	               t h e n 
 	                   d o ; 
 	 	   t e x t . p a r m s   =   c u r r e n t _ p a r m s ; 
 	 	   t e x t . i n p u t . q u a d ,   c t l . q u a d   =   c u r r e n t _ p a r m s . q u a d ; 
 	                   e n d ; 	 	 / * * / 
 	 	 	 	 / *   a d v a n c e   s h o r t   c o l u m n s   * / 
 	               d o   i   =   0   t o   t b l f m t . n c o l s ; 
 	                   t b l f m t . c o l p t r   ( i )   - >   t b l c o l . d e p t h   =   t b l f m t . m a x d e p t h ; 
 	               e n d ; 
 	           e n d ; 
 	   e n d ; 
 
 / *   t e x t   l i n e   * / 
 t e x t _ : 
         i f   t e x t _ a d d e d 	 	 	 / *   i f   t h e r e ' s   t e x t   t o   b e   a d d e d   * / 
         t h e n 
             d o ; 
                 i f   s h a r e d . b l k p t r   =   n u l l   ( ) 	 / *   g e t   a   t e x t   b l o c k   i f   o n e   i s   n e e d e d   * / 
                 t h e n 
 	 d o ; 	 	 	 / * * / 
 	 	 	 	 / *   h e a d   p a g e   i f   n e e d e d   * / 
 	     i f   ^ o p t i o n . g a l l e y _ o p t   &   ^ p a g e . h d r . h e a d e d   &   p a g e . h d r . c o l _ i n d e x   > =   0 
 	     t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( h e a d _ u s e d ) ; 
 
 	     c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " t x " , 
 	               a d d r   ( c u r r e n t _ p a r m s ) ,   ^ E M P T Y ) ; 
 	 e n d ; 
 
                 i f   ( t e x t . b l k t y p e   =   " o h "   |   t e x t . b l k t y p e   =   " e h "   |   t e x t . b l k t y p e   =   " o f " 
 	       |   t e x t . b l k t y p e   =   " e f "   |   t e x t . b l k t y p e   =   " t f " 
 	       |   t e x t . b l k t y p e   =   " t h "   |   " 0 " b ) 
 	 	 	 	 / *   N A M E D   B L O C K S   R E P L A C E   " 0 " b   * / 
                 t h e n   t e x t _ f l a g   =   " 0 " b ; 
                 e l s e   t e x t _ f l a g   =   " 1 " b ; 	 / * * / 
 	 	 	 	 / *   i s   t h e r e   a   h e a d e r   p e n d i n g ?   * / 
                 i f   t e x t . p a r m s . h d r p t r   ^ =   n u l l   &   ^ s h a r e d . i n s e r t i n g _ h f c 
                 t h e n   i f   ^ t e x t . p a r m s . t i t l e _ m o d e 
 	       t h e n   c a l l   c o m p _ t i t l e _ b l o c k _   ( t e x t . p a r m s . h d r p t r ) ; 
 
                 t e x t . i n p u t . l m a r g   =   t e x t . p a r m s . l e f t . i n d e n t   -   t e x t . p a r m s . l e f t . u n d e n t ; 
                 t e x t . i n p u t . r m a r g   = 
 	       t e x t . p a r m s . m e a s u r e   -   t e x t . p a r m s . r i g h t . i n d e n t 
 	       +   t e x t . p a r m s . r i g h t . u n d e n t ; 
                 t e x t . i n p u t . n e t   =   t e x t . i n p u t . r m a r g   -   t e x t . i n p u t . l m a r g ; 
 
                 i f   s h a r e d . t a b l e _ m o d e   &   ^ t e x t . p a r m s . f o o t n o t e 
                 t h e n 
 	 d o ; 
 	     t e x t . i n p u t . l m a r g   =   t e x t . i n p u t . l m a r g   +   t b l c o l . m a r g i n . l e f t ; 
 	     t e x t . i n p u t . r m a r g   =   t e x t . i n p u t . r m a r g   +   t b l c o l . m a r g i n . l e f t ; 
 	 e n d ; 
 
                 i f   c t l _ l i n e   =   " " 	 	 / *   a   n u l l   l i n e   * / 
                 t h e n   g o t o   n u l l _ l i n e ; 	 	 / * * / 
 	 	 	 	 / *   i f   a   f i l l e d   b l o c k   w i t h   l e a d i n g   * / 
                 i f   t e x t . p a r m s . f i l l _ m o d e 	 / *   w h i t e   s p a c e   &   t h e r e   a r e   l e f t o v e r s   * / 
                 t h e n   i f   i n d e x   ( "   " ,   s u b s t r   ( c t l _ l i n e ,   1 ,   1 ) )   ^ =   0 
 	                 &   l e n g t h   ( t e x t . i n p u t _ l i n e )   >   0 
 	       t h e n 
 	           d o ; 
 	               c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 	               i f   t e x t . i n p u t . o f l o   &   ^ t e x t . p a r m s . k e e p   &   t e x t . h d r . c o l n o   > =   0 
 	 	     &   ^ s h a r e d . t a b l e _ m o d e 
 	               t h e n   c a l l   c o m p _ b r e a k _   ( n e e d _ b r e a k ,   - 2 ) ; 
 
 	               i f   s h a r e d . e n d _ o u t p u t 
 	               t h e n   g o t o   r e t u r n _ ; 
 	           e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   a n y   a c t i v e   h t a b s ?   * / 
                 i f   s h a r e d . h t a b _ p t r   ^ =   n u l l   ( ) 
                 t h e n   i f   h t a b . c h a r s   ^ =   " " 
 	       t h e n   c a l l   d o _ h t a b s ; 
 
                 i f   c t l _ l i n e   =   " " 	 	 / *   i f   i t s   e m p t y   a f t e r   a l l   t h a t   * / 
                 t h e n   g o t o   n u l l _ l i n e ; 
 
 / *   t i t l e   b l o c k   * / 
                 i f   t e x t . p a r m s . t i t l e _ m o d e 
                 t h e n 
 	 d o ; 	 	 	 / *   c o u n t   l i n e s   * / 
 	     t e x t . h d r . e q n _ l i n e _ c o u n t   =   t e x t . h d r . e q n _ l i n e _ c o u n t   -   1 ; 
 	 	 	 	 / *   i f   t h a t s   a l l ,   r e s e t   f l a g   * / 
 	     i f   t e x t . h d r . e q n _ l i n e _ c o u n t   =   0 
 	     t h e n   t e x t . p a r m s . t i t l e _ m o d e   =   " 0 " b ; 
 	 	 	 	 / *   a   < t i t l e >   l i n e ?   * / 
 	     i f   i n d e x   ( c t l _ l i n e ,   s h a r e d . t t l _ d e l i m )   =   1 
 	     t h e n 
 	         d o ; 	 	 	 / *   c l e a n   u p   l e f t o v e r s   * / 
 	             i f   l e n g t h   ( t e x t . i n p u t _ l i n e )   >   0 
 	             t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 
 	             t e x t . i n p u t _ l i n e   =   c t l _ l i n e ; 
 	             t e x t . i n p u t . i n f o   =   c t l . i n f o ; 
 
 / * * * * 	             i f   t e x t . h d r . c o l n o   > =   0 
 / * * * * 	             t h e n   * / 
 	             c a l l   c o m p _ h f t _ c t l s _ $ t i t l e   ( s h a r e d . b l k p t r ,   a d d r   ( t e x t . i n p u t ) , 
 	 	   t e x t . i n p u t _ l i n e ,   t e x t . p a r m s . l i n e s p a c e ) ; 
 / * * * * 	             e l s e   c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . b l k p t r ,   " 0 " b ,   " 0 " b ,   " 0 " b , 
 / * * * * 	 	   ( t e x t . i n p u t . q u a d   ^ =   q u a d l ) ,   ^ t e x t . i n p u t . a r t ,   " 0 " b , * / 
 / * * * * 	 	             " 0 " b , 	 / *   t e x t . i n p u t . o f l o ,   * / 
 / * * * * 	 	             a d d r   ( t e x t . i n p u t ) ) ; * / 
 
 	             t e x t . i n p u t . a r t   =   t e x t . i n p u t . a r t   |   t e x t . p a r m s . a r t ; 
 	             i f   t e x t . i n p u t . a r t 	 / *   i f   a n   a r t w o r k   l i n e   * / 
 	             t h e n 
 	                 d o ; 
 	 	 t e x t . h d r . a r t _ c o u n t   =   t e x t . h d r . a r t _ c o u n t   -   1 ; 
 	 	 i f   t e x t . h d r . a r t _ c o u n t   =   0 
 	 	 t h e n   c u r r e n t _ p a r m s . a r t ,   t e x t . p a r m s . a r t   =   " 0 " b ; 
 	                 e n d ; 
 	         e n d ; 
 
 	     e l s e   g o t o   p l a i n ; 	 	 / *   f r e e   l i n e   i n   a   f o r m a t t e d   b l o c k   * / 
 	 e n d ; 
 
 / *   c o l u m n   a l i g n e d   t a b l e ?   * / 
                 e l s e   i f   s h a r e d . t a b l e _ m o d e   &   t b l c o l . a l i g n . p o s n   >   0 
                 t h e n 
 	 d o ; 	 	 	 / *   f i n d   t h e   s t r i n g   * / 
 	     s t r n d x   =   i n d e x   ( c t l _ l i n e ,   t b l c o l . a l i g n . s t r ) ; 
 
 	     i f   s t r n d x   >   0 	 	 / *   i f   i t s   t h e r e   * / 
 	     t h e n 
 	         d o ; 	 	 	 / *   m e a s u r e   p r e c e d i n g   t e x t   * / 
 	             u n s p e c   ( m e a s 1 )   =   " 0 " b ; 
 	             c a l l   c o m p _ m e a s u r e _   ( s u b s t r   ( c t l _ l i n e ,   1 ,   s t r n d x   -   1 ) , 
 	 	   a d d r   ( t e x t . i n p u t . f o n t ) ,   " 0 " b ,   t e x t . i n p u t . a r t , 
 	 	   t e x t . i n p u t . q u a d ,   0 ,   a d d r   ( m e a s 1 ) ,   a d d r   ( m e a s 2 ) , 
 	 	   a d d r   ( c t l . i n f o ) ) ; 	 / *   a d d   t o   l e f t   m a r g i n   u n d e n t   * / 
 	             t e x t . p a r m s . l e f t . u n d e n t   = 
 	 	   t e x t . p a r m s . l e f t . u n d e n t   +   m e a s 1 . w i d t h   +   m e a s 1 . a v g ; 
 	             t e x t . i n p u t . l m a r g   = 
 	 	   t e x t . i n p u t . l m a r g   +   t e x t . p a r m s . l e f t . i n d e n t 
 	 	   -   t e x t . p a r m s . l e f t . u n d e n t ; 
 	             t e x t . i n p u t . n e t   =   t e x t . i n p u t . r m a r g   -   t e x t . i n p u t . l m a r g ; 
 	             t e x t . i n p u t . q u a d   =   q u a d l ; 
 	         e n d ; 
 	     g o t o   p l a i n ; 
 	 e n d ; 
 
 / *   p l a i n   t e x t   * / 
                 e l s e 
 	 d o ; 
 p l a i n : 
 	     t e x t . i n p u t . a r t   =   t e x t . i n p u t . a r t   |   t e x t . p a r m s . a r t ; 
 	     i f   t e x t . i n p u t . a r t 	 	 / *   i f   a n   a r t w o r k   l i n e   * / 
 	     t h e n 
 	         d o ; 
 	             t e x t . h d r . a r t _ c o u n t   =   t e x t . h d r . a r t _ c o u n t   -   1 ; 
 	             i f   t e x t . h d r . a r t _ c o u n t   =   0 
 	             t h e n   c u r r e n t _ p a r m s . a r t ,   t e x t . p a r m s . a r t   =   " 0 " b ; 
 	         e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i f   n o t   b u i l d i n g   a   f o r m a t t e d   b l o c k   * / 
 	     i f   ^ t e x t . p a r m s . t i t l e _ m o d e 	 / *   i n s e r t   p e n d i n g   t e x t   h e a d i n g   * / 
 	               &   t e x t . p a r m s . h d r p t r   ^ =   n u l l   ( )   &   ^ s h a r e d . i n s e r t i n g _ h f c 
 	     t h e n   i f   t e x t . p a r m s . h d r p t r   - >   h f c b l k . h d r . c o u n t   >   0 
 	               t h e n   c a l l   c o m p _ t i t l e _ b l o c k _   ( t e x t . p a r m s . h d r p t r ) ; 
 
 	     i f   ^ c t l . D V c t l 
 	     t h e n   c t l . l i n e s p a c e   =   t e x t . p a r m s . l i n e s p a c e ; 
 	     e l s e 
 	         d o ; 
 	             t e x t _ f l a g   =   " 0 " b ; 
 	             i f   c t l _ l i n e   ^ =   w a i t _ s i g n a l 
 	             t h e n   c t l . l i n e s p a c e   =   0 ; 
 	         e n d ; 
 
 / *   i f   f i l l i n g   * / 
 	     i f   t e x t . p a r m s . f i l l _ m o d e   &   l e n g t h   ( c t l _ l i n e )   >   0 
 	               &   ^ t e x t . p a r m s . h t a b _ m o d e 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m p _ f i l l _ ; 
 	             i f   s h a r e d . e n d _ o u t p u t 
 	             t h e n   g o t o   r e t u r n _ ; 
 	         e n d ; 
 
 / *   n o t   f i l l i n g   * / 
 	     e l s e 
 	         d o ; 
 	             i f   ( t e x t . i n p u t . q u a d   &   j u s t )   |   t e x t . p a r m s . h t a b _ m o d e 
 	             t h e n   t e x t . i n p u t . q u a d   =   q u a d l ; 
 
 	             i f   c t l . D V c t l 
 	             t h e n   t e x t . i n p u t . l i n e s p a c e   =   0 ; 
 
 	             i f   t e x t . i n p u t . h a n g i n g 
 	             t h e n 
 	                 d o ; 
 	 	 u n s p e c   ( m e a s 1 )   =   " 0 " b ; 
 	 	 c a l l   c o m p _ m e a s u r e _   ( c t l _ l i n e ,   a d d r   ( t e x t . i n p u t . f o n t ) ,   " 0 " b , 
 	 	           t e x t . i n p u t . a r t ,   t e x t . i n p u t . q u a d ,   0 ,   a d d r   ( m e a s 1 ) , 
 	 	           a d d r   ( m e a s 2 ) ,   a d d r   ( c t l . i n f o ) ) ; 
 	 	 i f   m e a s 1 . w i d t h   +   m e a s 1 . a v g   < =   t e x t . p a r m s . l e f t . u n d e n t 
 	 	 t h e n   t e x t . i n p u t . l i n e s p a c e   =   0 ; 
 	 	 e l s e   t e x t . i n p u t . l i n e s p a c e   =   t e x t . p a r m s . l i n e s p a c e ; 
 	                 e n d ; 
 
 	             t e x t . i n p u t _ l i n e   =   c t l _ l i n e ; 
 	             t e x t . i n p u t . i n f o   =   c t l . i n f o ; 
 	             t e x t . i n p u t . c b a r   =   t e x t . p a r m s . c b a r ; 
 	             t e x t . p a r m s . c b a r . d e l   =   " 0 " b ; 
 
 	             c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . b l k p t r , 
 	 	   ( t e x t . i n p u t . q u a d   ^ =   q u a d l ) ,   ^ t e x t . i n p u t . a r t ,   " 0 " b , 
 	 	   t e x t . i n p u t . o f l o ,   a d d r   ( t e x t . i n p u t ) ) ; 
 	             t e x t . i n p u t _ l i n e   =   " " ; 
 
 	             i f   t e x t . i n p u t . o f l o   &   t e x t . h d r . c o l n o   > =   0 
 	 	   &   ^ ( s h a r e d . t a b l e _ m o d e   |   t e x t . p a r m s . k e e p   |   t e x t . p a r m s . a r t ) 
 	             t h e n   c a l l   c o m p _ b r e a k _   ( n e e d _ b r e a k ,   - 2 ) ; 
 
 	             i f   s h a r e d . e n d _ o u t p u t 
 	             t h e n   g o t o   e n d _ o u t p u t _ ; 
 
 	             i f   s h a r e d . b l k p t r   ^ =   n u l l / *   i s   t h e r e   s t i l l   a n   a c t i v e   b l o c k ?   * / 
 	             t h e n 
 	                 d o ; 
 	 	 t e x t . i n p u t _ l i n e   =   " " ; 
 	 	 	 	 / *   e r a s e   * / 
 	 	 	 	 / *   u n d e n t s   a r e   u s e d   * / 
 	 	 t e x t . p a r m s . l e f t . u n d e n t ,   t e x t . p a r m s . r i g h t . u n d e n t   =   0 ; 
 	 	 t e x t . i n p u t . h a n g i n g ,   t e x t . i n p u t . u n d _ p r o t ,   c t l . h a n g i n g   = 
 	 	           " 0 " b ; 
 	 	 t e x t . i n p u t . l i n e s p a c e ,   c t l . l i n e s p a c e   =   t e x t . p a r m s . l i n e s p a c e ; 
 
 	 	 t e x t . h d r . n o f i l l _ c o u n t   =   t e x t . h d r . n o f i l l _ c o u n t   -   1 ; 
 	 	 i f   t e x t . h d r . n o f i l l _ c o u n t   =   0 
 	 	 t h e n   c a l l   c o m p _ f o r m a t _ c t l s _   ( f i n _ c t l _ i n d e x ) ; 
 	                 e n d ; 
 	         e n d ; 
 	 e n d ; 
             e n d ; 
         g o t o   r e a d ; 
 % p a g e ; 
 e n d _ i n p u t _ : 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " e n d _ i n p u t :   ( ^ d   ^ d   ^ a ) " ,   c a l l _ s t a c k . i n d e x , 
 	         i n s e r t _ d a t a . i n d e x ,   s h a r e d . i n p u t _ f i l e n a m e ) ; 
 
         i f   c a l l _ s t a c k . i n d e x   >   0 
         t h e n 
             d o ; 
                 s h a r e d . e n d _ i n p u t   =   e n d i n p u t ; 	 / *   r e s t o r e   t h e   s h a r e d   f l a g   * / 
                 g o t o   r e t u r n _ ; 
             e n d ; 
 % p a g e ; 
 e n d _ o u t p u t _ : 
         i f   o p t i o n . d b _ l i n e _ e n d   =   - 1 	 / *   d e b u g g i n g   e n d _ o u t p u t ?   * / 
         t h e n   s h a r e d . b u g _ m o d e   =   " 1 " b ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " e n d _ o u t p u t :   ( ^ a , ^ d ) " ,   s h a r e d . s o u r c e _ f i l e n a m e ,   c t l . l i n e n o ) ; 
 
         i f   s h a r e d . i f _ n e s t . n d x   >   0 	 	 / *   o p e n   i f   n e s t ?   * / 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   0 , 
 	       a d d r   ( s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . i n f o ) , 
 	       s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . l i n e , 
 	       " U n t e r m i n a t e d   c o n d i t i o n a l   e x e c u t i o n   ( i f )   g r o u p . " ) ; 
                 s h a r e d . i f _ n e s t . n d x   =   0 ; 
             e n d ; 
 
         c t l _ l i n e   =   " " ; 	 	 	 / *   e r a s e   a   p o s s i b l e   c o n t r o l   l i n e   * / 
         i f   o p t i o n . g a l l e y _ o p t 	 	 / *   f o r c e   t h e   f l a g   i n   g a l l e y   * / 
         t h e n   s h a r e d . e n d _ o u t p u t   =   " 1 " b ; 
 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   i f   t h e r e   i s   a   b l o c k   * / 
         t h e n 
             d o ; 
                 i f   t e x t . p a r m s . t i t l e _ m o d e 	 / *   u n t e r m i n a t e d   s p e c i a l   b l o c k   * / 
                 t h e n 
 	 d o ; 	 	 	 / * * / 
 	 	 	 	 / *   c l e a n   i t   u p   * / 
 	     c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 
 	     i f   t e x t . b l k t y p e   =   " t x " 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   0 ,   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	 	   " U n t e r m i n a t e d   e q u a t i o n   b l o c k . " ) ; 
 	         e n d ; 
 	     e l s e 
 	         d o ; 
 	             c o n s t . c u r r e n t _ p a r m s _ p t r   =   t e x t . h d r . p a r m s _ p t r ; 
 	             s h a r e d . b l k p t r   =   t e x t . h d r . b l k p t r ; 
 	         e n d ; 
 	 e n d ; 
 
                 i f   s h a r e d . f t n _ m o d e 	 	 / *   u n c l o s e d   f o o t n o t e   * / 
                 t h e n 
 	 d o ; 
 	     c t l _ l i n e   =   " . b e f " ; 
 	     c a l l   c o m p _ b l o c k _ c t l s _   ( b e f _ c t l _ i n d e x ) ; 
 	 e n d ; 
 
                 i f   s h a r e d . b l k p t r   ^ =   n u l l 
                 t h e n 
 	 d o ; 
 	     i f   s h a r e d . t a b l e _ m o d e 	 / *   e x i t   t a b l e   m o d e   * / 
 	     t h e n 
 	         d o ; 
 	             c t l . i n d e x   =   5 ; 
 	             c t l _ l i n e   =   " . t a f " ; 
 	             c a l l   c o m p _ t b l _ c t l s _   ( t a f _ c t l _ i n d e x ) ; 
 	         e n d ; 
 
 	     e l s e   i f   t e x t . b l k t y p e   =   " p i "   / *   u n t e r m i n a t e d   p i c t u r e ?   * / 
 	     t h e n   c a l l   c o m p _ b l o c k _ c t l s _   ( b e p _ c t l _ i n d e x ) ; 
 
 	     e l s e 	 	 	 / *   r e s e t   m o d e   s w i t c h e s   * / 
 	         d o ; 	 	 	 / *   a n d   f i n i s h   t h e   b l o c k   * / 
 	             t e x t . p a r m s . k e e p ,   t e x t . p a r m s . a r t   =   " 0 " b ; 
 	             t e x t . i n p u t . l m a r g   = 
 	 	   t e x t . p a r m s . l e f t . i n d e n t   -   t e x t . p a r m s . l e f t . u n d e n t ; 
 	             t e x t . i n p u t . r m a r g   = 
 	 	   t e x t . p a r m s . m e a s u r e   -   t e x t . p a r m s . r i g h t . i n d e n t 
 	 	   +   t e x t . p a r m s . r i g h t . u n d e n t ; 
 	             t e x t . i n p u t . n e t   =   t e x t . i n p u t . r m a r g   -   t e x t . i n p u t . l m a r g ; 
 
 	             i f   s h a r e d . t a b l e _ m o d e   &   ^ t e x t . p a r m s . f o o t n o t e 
 	             t h e n 
 	                 d o ; 
 	 	 t e x t . i n p u t . l m a r g   =   t e x t . i n p u t . l m a r g   +   t b l c o l . m a r g i n . l e f t ; 
 	 	 t e x t . i n p u t . r m a r g   =   t e x t . i n p u t . r m a r g   +   t b l c o l . m a r g i n . l e f t ; 
 	                 e n d ; 
 
 	             c a l l   c o m p _ b r e a k _   ( b l o c k _ b r e a k ,   0 ) ; 
 	         e n d ; 
 	 e n d ; 
             e n d ; 
 
         i f   c u r r e n t _ p a r m s . c b a r . d e l 	 	 / *   o r p h a n   d e l e t e   m a r k ?   * / 
         t h e n 
             d o ; 
                 c a l l   c o m p _ s p a c e _   ( c u r r e n t _ p a r m s . l i n e s p a c e ,   s h a r e d . b l k p t r ,   " 1 " b ,   " 1 " b , 
 	       " 1 " b ,   " 0 " b ) ; 
                 c a l l   c o m p _ b r e a k _   ( b l o c k _ b r e a k ,   0 ) ; 
             e n d ; 
 
         i f   s h a r e d . p i c t u r e . c o u n t   >   0 	 / *   p u t   a n y   p i c t u r e s   * / 
         t h e n   c a l l   c o m p _ u t i l _ $ p i c t u r e s   ( s h a r e d . b l k p t r ) ; 
 	 	 	 	 / *   a r e   f o o t n o t e s   h e l d ?   * / 
         i f   s h a r e d . f t n b l k _ d a t a _ p t r   ^ =   n u l l   ( )   &   s h a r e d . f t n _ r e s e t   =   " h o l d " 
         t h e n   i f   f t n b l k _ d a t a . h i g h n d x   >   0 
                   t h e n 
 	   d o ; 
 	       s h a r e d . p u r g e _ f t n s   =   " 1 " b ; 
 	       c t l _ l i n e   =   " . i f t " ; 
 	       c a l l   c o m p _ c t l s _   ( " 0 " b ) ; 
 	   e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   a n y   l e f t o v e r s ?   * / 
         i f   p a g e . h d r . u s e d   +   c o l 0 . h d r . f t n . c t   ^ =   0   |   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
         t h e n   c a l l   c o m p _ b r e a k _   ( p a g e _ b r e a k ,   0 ) ; 
 
         i f   s h a r e d . p a s s _ c o u n t e r   < =   1   &   ^ o p t i o n . c h e c k _ o p t   &   p a g e . i m a g e _ p t r   ^ =   n u l l 
         t h e n 
             d o ; 
                 p a g e _ r e c o r d _ p t r   =   a d d r   ( p a g e _ i m a g e . t e x t _ p t r   - >   r e c o r d . p a g e _ r e c o r d ) ; 
                 p a g e _ r e c o r d . l e n g   =   0 ; 
                 c a l l   c o m p _ d v t . o u t p r o c   ( E P I L O G U E ,   0 ) ; 
 
                 i f   p a g e _ r e c o r d . l e n g   >   0 
                 t h e n 
 	 d o ; 
 	     c a l l   i o x _ $ p u t _ c h a r s   ( ( s h a r e d . c o m p o u t _ p t r ) ,   a d d r   ( p a g e _ r e c o r d . t e x t ) , 
 	               p a g e _ r e c o r d . l e n g ,   e r c d ) ; 
 	     i f   e r c d   ^ =   0 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m p _ r e p o r t _   ( 2 ,   e r c d ,   " W r i t i n g   e p i l o g u e . " , 
 	 	   a d d r   ( c t l . i n f o ) ,   " " ) ; 
 	             s i g n a l   c o m p _ a b o r t ; 
 	             r e t u r n ; 
 	         e n d ; 
 	 e n d ; 
             e n d ; 
 
 r e t u r n _ : 
         i f   s h a r e d . b u g _ m o d e 
                   &   ( s h a r e d . i n p u t _ f i l e n a m e   =   o p t i o n . d b _ f i l e 
                   |   o p t i o n . d b _ f i l e   =   " A L L F I L E S " ) 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( c o m p _ :   ^ a ) " ,   s h a r e d . i n p u t _ f i l e n a m e ) ; 
 % p a g e ; 
 d o _ h t a b s : 
     p r o c ; 
         t x t w i d t h   = 	 	 	 / *   s e t   l o o p   c o u n t e r s   * / 
                   t e x t . p a r m s . l e f t . i n d e n t   -   t e x t . p a r m s . l e f t . u n d e n t ; 
         i ,   j   =   1 ; 	 	 	 / *   s e t   l i n e   s c a n   c o n t r o l s   * / 
 
         i f   l e n g t h   ( c t l _ l i n e )   >   0 	 	 / *   a d j u s t   t a b s   * / 
         t h e n 
             d o   w h i l e   ( j   >   0 ) ; 
                 j   =   s e a r c h   ( s u b s t r   ( c t l _ l i n e ,   i ) ,   h t a b . c h a r s ) ; 
                 i f   j   >   0 	 	 	 / *   i f   a   t a b   c h a r   w a s   f o u n d   * / 
                 t h e n 
 	 d o ; 
 	     i f   j   >   1 	 	 / *   m e a s u r e   t h e   p r e c e d i n g   t e x t   * / 
 	     t h e n 
 	         d o ; 
 	             u n s p e c   ( m e a s 1 )   =   " 0 " b ; 
 	             c a l l   c o m p _ m e a s u r e _   ( s u b s t r   ( c t l _ l i n e ,   i ,   j   -   1 ) , 
 	 	   a d d r   ( t e x t . i n p u t . f o n t ) ,   " 0 " b ,   t e x t . i n p u t . a r t , 
 	 	   t e x t . i n p u t . q u a d ,   0 ,   a d d r   ( m e a s 1 ) ,   a d d r   ( m e a s 2 ) , 
 	 	   a d d r   ( c t l . i n f o ) ) ; 
 	             t x t w i d t h   =   t x t w i d t h   +   m e a s 1 . w i d t h   +   m e a s 1 . a v g ; 
 	             i i   =   i   +   j   -   1 ; 
 	         e n d ; 
 	     e l s e   i i   =   i ; 	 	 / *   t a b   c h a r   i s   n e x t ,   n o   n e w   t e x t   * / 
 	 	 	 	 / *   w h i c h   t a b   c h a r a c t e r ?   * / 
 	     j j   =   i n d e x   ( h t a b . c h a r s ,   s u b s t r   ( c t l _ l i n e ,   i i ,   1 ) ) ; 
 	     j j   =   h t a b . p a t s   ( j j ) ; 	 / *   p a t t e r n   i n d e x   f o r   t h a t   c h a r a c t e r   * / 
 	 	 	 	 / *   f i n d   t h e   s t o p   c o l u m n   * / 
 	     d o   k   =   1   t o   h t a b . p a t t e r n   ( j j ) . c o u n t 
 	               w h i l e   ( t x t w i d t h 
 	               > =   h t a b . p a t t e r n   ( j j ) . s t o p   ( k )   -   s h a r e d . E N _ w i d t h ) ; 
 	     e n d ; 
 
 	     i f   k   < =   h t a b . p a t t e r n   ( j j ) . c o u n t 
 	 	 	 	 / *   i f   w i t h i n   g i v e n   s t o p s   * / 
 	     t h e n 
 	         d o ; 
 	             h t a b _ s p a c e . v 1   = 	 / *   s p a c e   n e e d e d   * / 
 	 	   h t a b . p a t t e r n   ( j j ) . s t o p   ( k )   -   t x t w i d t h   -   s h a r e d . E N _ w i d t h ; 
 
 	             i f   h t a b _ s p a c e . v 1   >   0 	 / *   i f   a n y   t o   b e   i n s e r t e d   * / 
 	             t h e n 
 	                 d o ; 
 	 	 i f   h t a b . p a t t e r n   ( j j ) . f i l l   ( k )   =   " " 
 	 	 	 	 / *   i f   n o   g i v e n   f i l l   s t r i n g   * / 
 	 	 t h e n 
 	 	     d o ; 
 	 	         c t l _ l i n e   = 
 	 	                   s u b s t r   ( c t l _ l i n e ,   1 ,   i i   -   1 )   | |   h t a b _ s h i f t 
 	 	                   | |   s u b s t r   ( c t l _ l i n e ,   i i   +   1 ) ; 
 	 	         i i   =   i i   +   7 ; 
 	 	     e n d ; 
 
 	 	 e l s e 
 	 	     d o ; 	 	 / *   c o n s t r u c t   t h e   f i l l   s t r i n g   * / 
 	 	         u n s p e c   ( m e a s 1 )   =   " 0 " b ; 
 	 	         c a l l   c o m p _ m e a s u r e _   ( ( h t a b . p a t t e r n   ( j j ) . f i l l   ( k ) ) , 
 	 	                   a d d r   ( t e x t . i n p u t . f o n t ) ,   " 0 " b ,   " 0 " b ,   " 0 " b ,   0 , 
 	 	                   a d d r   ( m e a s 1 ) ,   a d d r   ( m e a s 2 ) ,   a d d r   ( c t l . i n f o ) ) ; 
 	 	         f i l l _ c o u n t   = 	 / *   n u m b e r   o f   f i l l   s t r i n g s   n e e d e d   * / 
 	 	                   d i v i d e   ( h t a b _ s p a c e . v 1 ,   m e a s 1 . w i d t h   +   m e a s 1 . a v g , 
 	 	                   1 7 ,   0 ) ; 
 	 	         h t a b _ s p a c e . v 1   =   h t a b _ s p a c e . v 1   - 
 	 	 	 	 / *   e x t r a   s p a c e   * / 
 	 	                   f i l l _ c o u n t   *   ( m e a s 1 . w i d t h   +   m e a s 1 . a v g ) ; 
 	 	         i f   h t a b _ s p a c e . v 1   >   0 
 	 	         t h e n 
 	 	             d o ; 
 	 	                 c t l _ l i n e   = 
 	 	 	       s u b s t r   ( c t l _ l i n e ,   1 ,   i i   -   1 )   | |   h t a b _ s h i f t 
 	 	 	       | |   s u b s t r   ( c t l _ l i n e ,   i i ) ; 
 	 	                 i i   =   i i   +   7 ; 
 	 	             e n d ; 
 	 	         c t l _ l i n e   =   s u b s t r   ( c t l _ l i n e ,   1 ,   i i   -   1 )   | | 
 	 	 	 	 / *   i n s e r t   f i l l   s t r i n g   * / 
 	 	                   c o p y   ( h t a b . p a t t e r n   ( j j ) . f i l l   ( k ) ,   f i l l _ c o u n t ) 
 	 	                   | |   s u b s t r   ( c t l _ l i n e ,   i i   +   1 ) ; 
 	 	         i i   =   i i 
 	 	                   +   f i l l _ c o u n t 
 	 	                   *   l e n g t h   ( h t a b . p a t t e r n   ( j j ) . f i l l   ( k ) ) ; 
 	 	     e n d ; 
 
 	 	 i   =   i i ; 	 	 / *   a d j u s t   c o u n t e r s   * / 
 	 	 t x t w i d t h   =   h t a b . p a t t e r n   ( j j ) . s t o p   ( k )   -   s h a r e d . E N _ w i d t h ; 
 	                 e n d ; 
 
 	             e l s e 	 	 / *   h t a b   c h a r   i s   n e x t ,   j u s t   r e m o v e   i t   * / 
 	 	   c t l _ l i n e   = 
 	 	             s u b s t r   ( c t l _ l i n e ,   1 ,   i i   -   1 ) 
 	 	             | |   s u b s t r   ( c t l _ l i n e ,   i i   +   1 ) ; 
 	         e n d ; 
 
 	     e l s e   i   =   i i   +   1 ; 	 	 / *   n o t   w i t h i n   g i v e n   s t o p s ,   s t e p   o v e r   i t   * / 
 	 e n d ; 
             e n d ; 
     e n d   d o _ h t a b s ; 
 % p a g e ; 
 % i n c l u d e   c o m p _ b r k t y p e s ; 
 % i n c l u d e   c o m p _ c t l _ i n d e x ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p _ c o l u m n ; 
 % i n c l u d e   c o m p _ D C d a t a ; 
 % i n c l u d e   c o m p _ d v i d ; 
 % i n c l u d e   c o m p _ d v t ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ f o o t n o t e s ; 
 % i n c l u d e   c o m p _ h t a b ; 
 % i n c l u d e   c o m p _ i n s e r t ; 
 % i n c l u d e   c o m p _ m e t a c o d e s ; 
 % i n c l u d e   c o m p _ o p t i o n ; 
 % i n c l u d e   c o m p _ o u t p u t ; 
 % i n c l u d e   c o m p _ p a g e ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t a b l e ; 
 % i n c l u d e   c o m p s t a t ; 
 
     e n d   c o m p _ ; 
      
 
 
  
 	 	         c o m p _ a r t _ . p l 1                                       0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 0 8 . 6             7 1 8 8 7 5     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   s u b r o u t i n e   t o   e x p a n d   a r t w o r k .   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ a r t _ : 
     p r o c   ( b l k p t r ,   p a g e _ a r t ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   b l k p t r 	       p t r ; 	 	 / *   p o i n t e r   t o   s o u r c e   t e x t   b l o c k   * / 
         d c l   p a g e _ a r t 	       b i t   ( 1 ) ; 	 / *   1   i f   p a g e   m o d e   a r t   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   a r t _ s t r 	       c h a r   ( 1 0 2 0 )   v a r ;   / *   c o n s t r u c t e d   a r t w o r k   l i n e   * / 
         d c l   a r t _ s y m b o l _ w i d t h 
 	 	       f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 7 2 0 0 ) ; 
         d c l   b a d _ c h a r 	       c h a r   ( 4 ) ; 	 / *   o c t a l   r e p r e s e n t a t i o n   o f   a n 
 	 	 	 	       i n v a l i d   o v e r s t r i k e   c h a r a c t e r   * / 
         d c l   b a s e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   b a s e l i n e   o f f s e t   ( m i l l i p o i n t s )   * / 
         d c l   c f l a g s 	       b i t   ( 7 2 )   b a s e d   ( c p t r ) ; 
 	 	 	 	 / *   s y m b o l   c h a r a c t e r   c f l a g s   * / 
         d c l   c o p e n 	       f i x e d   b i n   i n i t   ( 0 ) ; 
 	 	 	 	 / *   c o u n t   o f   o p e n   s e m i - c i r c l e s   * / 
         d c l   c p t r 	       p t r   i n i t   ( n u l l   ( ) ) ; 
 	 	 	 	 / *   p o i n t e r   t o   c u r r e n t   e n t r y   * / 
         d c l   c r l 	       f i x e d   b i n ; 	 / *   c u r r e n t   l i n e   i n d e x   * / 
         d c l   c r l a 	       f i x e d   b i n ; 	 / *   c u r r e n t   l i n e   a r e a   i n d e x   * / 
         d c l   c r s 	       f i x e d   b i n ; 	 / *   c u r r e n t   s y m b o l   i n d e x   * / 
         d c l   c r s _ p o s 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   c u r r e n t   o u t p u t   p o s i t i o n   * / 
         d c l   c r x 	       f i x e d   b i n ; 	 / *   i n p u t   i n d e x   f o r   c u r r e n t   s y m b o l   * / 
         d c l   d e b u g _ s w 	       b i t   ( 1 )   i n i t   ( " 0 " b ) ; 
 	 	 	 	 / *   e f f e c t i v e   d e b u g   s w i t c h   * / 
         d c l   d e t a i l _ s w 	       b i t   ( 1 )   i n i t   ( " 0 " b ) ; 
 	 	 	 	 / *   e f f e c t i v e   d e t a i l   d e b u g   s w i t c h   * / 
         d c l   E N 3 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   2   p l o t   i n c r s   f o r   d i a b l o s   * / 
         d c l   E N 6 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   1   p l o t   i n c r s   f o r   d i a b l o s   * / 
         d c l   h a l f _ s i z e 	       f i x e d   b i n ; 	 / *   h a l f   s i z e   o f   m a t h   s y m b o l   * / 
         d c l   h c n t 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   l e n g t h   o f   h o r i z o n t a l   r u l e s   * / 
         d c l   h o p e n 	       b i t   ( 1 )   i n i t   ( " 0 " b ) ; 
 	 	 	 	 / *   1   =   h o r i z   r u l e   i s   o p e n   * / 
         d c l   h t e r m _ p o s 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   p o s i t i o n   o f   H v e c   t e r m i n a t o r   * / 
         d c l   1   h o r _ s f t 	       l i k e   d c l o n g _ v a l ;   / *   h o r i z o n t a l   s h i f t s   * / 
         d c l   h o r _ s f t _ s t r 	       c h a r   ( d c l o n g 1 _ l e n   +   3 )   b a s e d   ( a d d r   ( h o r _ s f t ) ) ; 
         d c l   1   h o r _ v e c 	       l i k e   d c l o n g _ v a l ;   / *   h o r i z o n t a l   v e c t o r s   * / 
         d c l   h o r _ v e c _ s t r 	       c h a r   ( d c l o n g 1 _ l e n   +   3 )   b a s e d   ( a d d r   ( h o r _ v e c ) ) ; 
         d c l   ( i ,   k ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   i s y m 	       f i x e d   b i n ; 	 / *   w o r k i n g   s y m b o l   i n d e x   * / 
         d c l   j 	 	       f i x e d   b i n   ( 2 1 ) ; 	 / *   w o r k i n g   i n d e x   a n d   s t r i n g   i n d e x   * / 
         d c l   l a s t _ s y m b 	       b i t   ( 1 ) ; 	 / *   c o n t r o l   f o r   o v e r s t r i k e   l o o p   * / 
 	 	 	 	 / *   1 =   b u i l d i n g   l o z e n g e   t o p   * / 
         d c l   l o z t o p 	       b i t   ( 1 )   i n i t   ( " 0 " b ) ; 
 	 	 	 	 / *   f o r   t e x t   m e a s u r i n g   * / 
         d c l   1   m e a s 1 	       a l i g n e d   l i k e   t e x t _ e n t r y . c u r ; 
         d c l   1   m e a s 2 	       a l i g n e d   l i k e   t e x t _ e n t r y . c u r ; 
         d c l   m i n i _ s i z e 	       f i x e d   b i n ; 	 / *   m i n i p o s   m o v e m e n t   v a l u e   * / 
         d c l   o n e E N 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   c u r r e n t   E N   w i d t h   * / 
         d c l   p a d _ a d j 	       f i x e d   b i n ; 
         d c l   p f l a g s 	       b i t   ( 7 2 )   b a s e d   ( p p t r ) ; 
 	 	 	 	 / *   s y m b o l   c h a r a c t e r   p f l a g s   * / 
         d c l   p p t r 	       p t r   i n i t   ( n u l l   ( ) ) ; 
 	 	 	 	 / *   a   p r e v i o u s   t a b l e   e n t r y   * / 
         d c l   p r l c t 	       f i x e d   b i n ; 	 / *   s y m b o l   c o u n t   f o r   p r e v i o u s   l i n e   * / 
         d c l   p r s _ p o s 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   p r e v i o u s   o u t p u t   p o s i t i o n   * / 
         d c l   p r s _ w i d t h 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   w i d t h   o f   p r e v i o u s   s y m b o l   * / 
         d c l   p r x 	       f i x e d   b i n ; 	 / *   i n p u t   i n d e x   f o r   p r e v i o u s   s y m b o l   * / 
         d c l   s c n d x 	       f i x e d   b i n ; 	 / *   o v e r s t r i k e   l o o p   s c a n   i n d e x   * / 
         d c l   s i z e _ c h a r 	       c h a r   ( 1 ) ; 	 / *   s y m b o l   s i z e   c h a r a c t e r   * / 
         d c l   s s y m 	       f i x e d   b i n ; 	 / *   s y m b o l   c o u n t e r   f o r   s e a r c h i n g   * / 
         d c l   s w a p s 	       f i x e d   b i n ; 	 / *   s w a p   c o u n t e r   f o r   s y m b o l   s o r t i n g   * / 
         d c l   s y m b n d x 	       f i x e d   b i n ; 	 / *   c u r r e n t   s y m b o l   i n d e x   * / 
         d c l   s y m b s t r 	       c h a r   ( 1 0 0 )   v a r y i n g ; 
 	 	 	 	 / *   s y m b o l   s t r i n g   f o r   d e b u g   * / 
         d c l   s y n t a x _ e r r o r       b i t   ( 1 )   i n i t   ( " 0 " b ) ; 
 	 	 	 	 / *   s y n t a x   e r r o r   f l a g   * / 
         d c l   1   t e m p _ e n t r y       l i k e   c t b . e ; 	 / *   e n t r y   h o l d e r   f o r   s y m b o l   s o r t i n g   * / 
         d c l   t e x t _ p o s 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) ; 
 	 	 	 	 / *   c u r r e n t   p o s i t i o n   i n   o u t p u t   l i n e   * / 
         d c l   t r a n s _ s t r 	       c h a r   ( 3 6 )   v a r ; 	 / *   a r t   c o n s t r u c t   t r a n s l a t i o n   s t r i n g   * / 
         d c l   t w o E N 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   t w i c e   c u r r e n t   E N   w i d t h   * / 
         d c l   1   v e r t _ s f t 	       l i k e   d c l o n g _ v a l ; 
         d c l   v e r t _ s f t _ p t r       p t r ; 
         d c l   v e r t _ s f t _ s t r       c h a r   ( d c l o n g 1 _ l e n   +   3 )   b a s e d   ( v e r t _ s f t _ p t r ) ; 
         d c l   z e r _ a d j 	       f i x e d   b i n ; 	 / *   a d j u s t m e n t   f o r   0   w i d t h   s y m b o l   * / 
 
 / *   S Y M B O L / F L A G   S T R I N G   I N D E X   V A L U E S   * / 
         d c l   ( 
                 b o x t l _ n d x 	       i n i t   ( 3 8 ) , 
                 b o x l _ n d x 	       i n i t   ( 4 1 ) , 
                 b o x b l _ n d x 	       i n i t   ( 4 4 ) , 
                 d a r o _ n d x 	       i n i t   ( 1 7 ) , 	 / *   d o w n   a r r o w   * / 
                 f i r s t _ m i n i _ p o s   i n i t   ( 1 6 ) , 	 / *   f i r s t   m i n i - p o s i t i o n i n g   s y m b o l   * / 
                 h o r i z _ n d x 	       i n i t   ( 2 1 ) , 	 / *   h o r i z o n t a l   e l e m e n t   * / 
                 l a s t _ g r a p h i c       i n i t   ( 2 1 ) , 	 / *   n u m b e r   o f   s y m b o l s   h a v i n g   g r a p h i c s   * / 
                 l a s t _ m a t h 	       i n i t   ( 1 5 ) , 	 / *   l a s t   m a t h   s y m b o l   * / 
                 l a s t _ m i n i _ p o s     i n i t   ( 1 9 ) , 	 / *   l a s t   m i n i p o s   s y m b o l   * / 
                 l a s t _ m l _ m a t h       i n i t   ( 8 ) , 	 / *   l a s t   m u l t i l i n e   m a t h   s y m b o l   * / 
                 l p r n _ n d x 	       i n i t   ( 5 ) , 	 / *   l e f t   p a r e n   * / 
                 l s l n t _ n d x 	       i n i t   ( 2 0 ) , 	 / *   l e f t   s l a n t   * / 
                 r p r n _ n d x 	       i n i t   ( 6 ) , 	 / *   r i g h t   p a r e n   * / 
                 r s l n t _ n d x 	       i n i t   ( 1 0 ) , 	 / *   r i g h t   s l a n t   * / 
                 s t a r _ n d x 	       i n i t   ( 1 2 ) , 	 / *   s t a r   * / 
                 u p a r o _ n d x 	       i n i t   ( 1 6 ) , 	 / *   u p   a r r o w   * / 
                 v e r t _ n d x 	       i n i t   ( 7 ) , 	 / *   v e r t i c a l   e l e m e n t   * / 
                 v t e r m _ n d x 	       i n i t   ( 2 6 ) 	 / *   v e r t i c a l   t e r m i n a t o r   * / 
                 ) 	 	       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t ) ; 
 
 / *   E X T E R N A L   S T O R A G E   * / 
 
         d c l   1   b l o c k 	       a l i g n e d   l i k e   t e x t   b a s e d   ( b l k p t r ) ; 
 	 	 	 	 / *   t h e   i n p u t   b l o c k   * / 
 	 	 	 	 / *   c u r r e n t   l i n e   a r t   s y m b o l   t a b l e   * / 
         d c l   1   c t b 	       a l i g n e d , 
 	 2   d e p t h 	       f i x e d   b i n   ( 3 1 ) , 	 / *   d e p t h   o f   l i n e   * / 
 	 2   d o p e n 	       f i x e d   b i n , 	 / *   c o u n t   o f   o p e n   d i a m o n d s   * / 
 	 2   l m a r g 	       f i x e d   b i n   ( 3 1 ) , 	 / *   l e f t   m a r g i n   v a l u e   * / 
 	 2   l o p e n 	       f i x e d   b i n , 	 / *   c o u n t   o f   o p e n   l e f t   s l a n t   l i n e s   * / 
 	 2   l i n e _ w i d t h   f i x e d   b i n   ( 3 1 ) , 	 / *   l i n e   w i d t h   * / 
 	 2   o p e n 	       f i x e d   b i n , 	 / *   c o u n t   o f   o p e n   v e r t i c a l   a r t   c o n s t r u c t s   * / 
 	 2   r o p e n 	       f i x e d   b i n , 	 / *   c o u n t   o f   o p e n   r i g h t   s l a n t   l i n e s   * / 
 	 2   s c n t 	       f i x e d   b i n , 	 / *   c o u n t   o f   s y m b o l s   i n   t h e   l i n e   * / 
 	 2   v o p e n 	       f i x e d   b i n , 	 / *   c o u n t   o f   o p e n   v e r t i c a l   l i n e s   * / 
 	 2   e 	       ( 1 0 0 ) , 	 	 / *   t h e   e n t r i e s   * / 
 	 (   3   l b r k 	       b i t   ( 1 ) , 	 / *     1   -   l e f t   b r a c k e t   * / 
 	     3   r b r k 	       b i t   ( 1 ) , 	 / *     2   -   r i g h t   b r a c k e t   * / 
 	     3   l b r c 	       b i t   ( 1 ) , 	 / *     3   -   l e f t   b r a c e   * / 
 	     3   r b r c 	       b i t   ( 1 ) , 	 / *     4   -   r i g h t   b r a c e   * / 
 	     3   l p r n 	       b i t   ( 1 ) , 	 / *     5   -   l e f t   p a r e n   &   l e f t   s e m i c i r c l e   * / 
 	     3   r p r n 	       b i t   ( 1 ) , 	 / *     6   -   r i g h t   p a r e n   * / 
 	     3   v e r t 	       b i t   ( 1 ) , 	 / *     7   -   B o o l e a n   O R   &   v e r t i c a l   r u l e   * / 
 	     3   c o n c a t       b i t   ( 1 ) , 	 / *     8   -   c o n c a t e n a t i o n   * / 
 	     3   b u l l e t       b i t   ( 1 ) , 	 / *     9   -   b u l l e t   * / 
 	     3   r s l n t 	       b i t   ( 1 ) , 	 / *   1 0   -   r i g h t   s l a n t   * / 
 	     3   m u l t 	       b i t   ( 1 ) , 	 / *   1 1   -   m u l t i p l i c a t i o n   * / 
 	     3   s t a r 	       b i t   ( 1 ) , 	 / *   1 2   -   a s t e r i s k   &   h o r i z o n t a l   t e r m i n a t o r   * / 
 	     3   c b a r 	       b i t   ( 1 ) , 	 / *   1 3   -   c h a n g e   b a r   * / 
 	     3   c m 	       b i t   ( 1 ) , 	 / *   1 4   -   c o p y r i g h t   * / 
 	     3   t m 	       b i t   ( 1 ) , 	 / *   1 5   -   t r a d e m a r k   * / 
 	     3   u p a r o 	       b i t   ( 1 ) , 	 / *   1 6   -   u p   a r r o w   * / 
 	     3   d a r o 	       b i t   ( 1 ) , 	 / *   1 7   =   d o w n   a r r o w   * / 
 	     3   l a r o 	       b i t   ( 1 ) , 	 / *   1 8   =   l e f t   a r r o w   * / 
 	     3   r a r o 	       b i t   ( 1 ) , 	 / *   1 9   =   r i g h t   a r r o w   * / 
 	     3   l s l n t 	       b i t   ( 1 ) , 	 / *   2 0   =   l e f t   s l a n t   * / 
 	     3   h o r i z 	       b i t   ( 1 ) , 	 / *   2 1   =   h o r i z o n t a l   r u l e   * / 
 	     3   h l u p 	       b i t   ( 1 ) , 	 / *   2 2   =   h a l f - l i n e   u p   * / 
 	     3   h l d n 	       b i t   ( 1 ) , 	 / *   2 3   =   h a l f - l i n e   d o w n   * / 
 	     3   s u p s c r       b i t   ( 1 ) , 	 / *   2 4   =   s u p e r s c r i p t   * / 
 	     3   s u b s c r       b i t   ( 1 ) , 	 / *   2 5   =   s u b s c r i p t   * / 
 	     3   v t e r m 	       b i t   ( 1 ) , 	 / *   2 6   =   v e r t i c a l   &   s l a n t - l i n e   t e r m i n a t o r   * / 
 	     3   r e p l 	       b i t   ( 2 ) , 	 / *   2 7   =   r e p l i c a t o r s   * / 
 	     3   d i a m 	       b i t   ( 1 ) , 	 / *   2 9   =   d i a m o n d   p a r t   * / 
 	     3   t e x t 	       b i t   ( 1 ) , 	 / *   3 0   =   t e x t   * / 
 	     3   l s t r t 	       b i t   ( 1 ) , 	 / *   3 1   -   l e f t   s l a n t   s t a r t   * / 
 	     3   r s t r t 	       b i t   ( 1 ) , 	 / *   3 2   -   r i g h t   s l a n t   s t a r t   * / 
 	     3   l t e r m 	       b i t   ( 1 ) , 	 / *   3 3   -   l e f t   s l a n t   t e r m i n a t o r   * / 
 	     3   r t e r m 	       b i t   ( 1 ) , 	 / *   3 4   -   r i g h t   s l a n t   t e r m i n a t o r   * / 
 	     3   v s t r t 	       b i t   ( 1 ) , 	 / *   3 5   -   O B S O L E T E   * / 
 	     3   l o z 	       b i t   ( 1 ) , 	 / *   3 6   -   l o z e n g e   p a r t   * / 
 	     3   b l i n d 	       b i t   ( 1 ) , 	 / *   3 7   -   d o   n o t   d i s p l a y   t h i s   s y m b o l   * / 
 	     3   b o x t l 	       b i t   ( 1 ) , 	 / *   3 8   -   b o x   t o p   l e f t   c o r n e r   * / 
 	     3   b o x t 	       b i t   ( 1 ) , 	 / *   3 9   -   b o x   t o p   l i n e   i n t e r s e c t i o n   * / 
 	     3   b o x t r 	       b i t   ( 1 ) , 	 / *   4 0   -   b o x   t o p   r i g h t   c o r n e r   * / 
 	     3   b o x l 	       b i t   ( 1 ) , 	 / *   4 1   -   b o x   l e f t s   e d g e   i n t e r s e c t i o n   * / 
 	     3   b o x x 	       b i t   ( 1 ) , 	 / *   4 2   -   b o x   i n t e r i o r   i n t e r s e c t i o n   * / 
 	     3   b o x r 	       b i t   ( 1 ) , 	 / *   4 3   -   b o x   r i g h t   e d g e   i n t e r s e c t i o n   * / 
 	     3   b o x b l 	       b i t   ( 1 ) , 	 / *   4 4   -   b o x   b o t t o m   l e f t   c o r n e r   * / 
 	     3   b o x b 	       b i t   ( 1 ) , 	 / *   4 5   -   b o x   b o t t o m   l i n e   i n t e r s e c t i o n   * / 
 	     3   b o x b r 	       b i t   ( 1 ) , 	 / *   4 6   -   b o x   b o t t o m   r i g h t   c o r n e r   * / 
 	     3   l o z t l 	       b i t   ( 1 ) , 	 / *   4 7   -   l o z e n g e   t o p   l e f t   c o r n e r   * / 
 	     3   l o z t r 	       b i t   ( 1 ) , 	 / *   4 8   -   l o z e n g e   t o p   r i g h t   c o r n e r   * / 
 	     3   l o z l 	       b i t   ( 1 ) , 	 / *   4 9   -   l o z e n g e   l e f t   v e r t e x   * / 
 	     3   l o z r 	       b i t   ( 1 ) , 	 / *   5 0   -   l o z e n g e   r i g h t   v e r t e x   * / 
 	     3   l o z b l 	       b i t   ( 1 ) , 	 / *   5 1   -   l o z e n g e   b o t t o m   l e f t   c o r n e r   * / 
 	     3   l o z b r 	       b i t   ( 1 ) , 	 / *   5 2   -   l o z e n g e   b o t t o m   r i g h t   c o r n e r   * / 
 	     3   M B Z 	       b i t   ( 2 0 ) 	 / *   =   7 2   b i t s   * / 
 	     ) 	       u n a l , 
 	     3   b a s e 	       f i x e d   b i n   ( 3 1 ) , 	 / *   b a s e l i n e   o f f s e t   ( m i l l i p o i n t s )   * / 
 	     3   h a d j 	       f i x e d   b i n   ( 3 1 ) , 	 / *   h o r i z o n t a l   p o s i t i o n   a d j u s t m e n t   * / 
 	     3   l e n 	       f i x e d   b i n   ( 2 1 ) , 	 / *   l e n g t h   o f   i n p u t   t e x t   s t r i n g   * / 
 	     3   l n d x 	       f i x e d   b i n , 	 / *   l i n e   p o s i t i o n   i n d e x   * / 
 	     3   p o s 	       f i x e d   b i n   ( 3 1 ) , 	 / *   p o s i t i o n   o f   c h a r   i n   t a r g e t   l i n e   * / 
 	     3   s i z e 	       f i x e d   b i n   ( 3 1 ) , 	 / *   s i z e   o f   m a t h   s y m b o l   * / 
 	     3   t s t r t 	       f i x e d   b i n   ( 2 1 ) , 	 / *   i n p u t   s t a r t i n g   t e x t   p o s i t i o n   * / 
 	     3   w i d t h 	       f i x e d   b i n   ( 3 1 ) , 	 / *   w i d t h   o f   t e x t   * / 
 	     3   w s p 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   w o r d s p a c e   f o r   t e x t   * / 
 
         d c l   1   c t b e 	       l i k e   c t b . e   b a s e d   ( c p t r ) ; 
 	 	 	 	 / *   t h e   c u r r e n t   t a b l e   e n t r y   * / 
 	 	 	 	 / *   p r e v i o u s   l i n e   a r t   s y m b o l   t a b l e   * / 
         d c l   1   p t b 	       a l i g n e d   l i k e   c t b ; 
         d c l   1   p t b e 	       l i k e   c t b . e   b a s e d   ( p p t r ) ; 
 	 	 	 	 / *   a n y   p r e v i o u s   t a b l e   e n t r y   * / 
         d c l   t m p s t r 	       c h a r   ( 1 0 2 0 )   v a r ;   / *   w o r k i n g   t e x t   l i n e   * / 
 
         d c l   ( a d d r ,   c h a r ,   d e c ,   d i v i d e ,   i n d e x ,   l e n g t h ,   l t r i m ,   m a x ,   m i n ,   m o d ,   n u l l , 
                 s e a r c h ,   s u b s t r ,   t r a n s l a t e ,   u n s p e c ,   v e r i f y ) 
 	 	       b u i l t i n ; 
 
         d c l   i o a _ $ r s n n l 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
 % p a g e ; 
 / *   I N I T I A L I Z E   * / 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " a r t :   ( b l k = ^ d , ^ d ) " ,   b l o c k . b l k n d x ,   b l o c k . h d r . c o u n t ) ; 
 
         v e r t _ s f t . m a r k ,   h o r _ s f t . m a r k ,   h o r _ v e c . m a r k   =   D C 1 ; 
         v e r t _ s f t . t y p e   =   t y p e _ s l y ; 
         v e r t _ s f t . l e n g   =   d c l o n g 1 _ l e n ; 
         v e r t _ s f t _ p t r   =   a d d r   ( v e r t _ s f t ) ; 
         h o r _ s f t . t y p e   =   t y p e _ s l x ; 
         h o r _ s f t . l e n g   =   d c l o n g 1 _ l e n ; 
         h o r _ v e c . t y p e   =   t y p e _ v l x ; 
         h o r _ v e c . l e n g   =   d c l o n g 1 _ l e n ; 
         o n e E N   =   s h a r e d . E N _ w i d t h ; 
         t w o E N   =   2   *   o n e E N ; 
 
         i f   c o m p _ d v t . d e v c l a s s   =   " d i a b l o " 
         t h e n 
             d o ; 
                 E N 6   =   o n e E N   /   6 ; 
                 E N 3   =   o n e E N   /   3 ; 
             e n d ; 
         e l s e   E N 6 ,   E N 3   =   0 ; 
 
         u n s p e c   ( c t b ) ,   u n s p e c   ( p t b )   =   " 0 " b ; 
 % p a g e ; 
 / *   S C A N   T H E   S O U R C E ,   L I N E   B Y   L I N E   * / 
 
         c r l   =   0 ; 
 l i n e _ l o o p : 
         d o   l i n e _ a r e a _ p t r   =   b l o c k . l i n e _ a r e a . f i r s t   r e p e a t   ( l i n e _ a r e a . n e x t ) 
                   w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
             d o   c r l a   =   1   t o   l i n e _ a r e a . n d x ; 	 / *   f o r   t h e   g i v e n   l i n e s   * / 
                 c r l   =   c r l   +   1 ; 	 	 / * * / 
 	 	 	 	 / *   s e t   l o c a l   l i n e   p o i n t e r s   * / 
                 t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( c r l a ) ; 
                 t x t s t r p t r   =   t x t l i n . p t r ; 
 
                 i f   s h a r e d . b u g _ m o d e   |   d b _ s w 	 / *   c h e c k   l i n e   r a n g e   i f   d e b u g g i n g   * / 
                 t h e n 
 	 d o ; 
 	     i f   ( o p t i o n . l i n e _ 1   < =   t x t l i n . l i n e n o 0 
 	               &   ( t x t l i n . l i n e n o 0   < =   o p t i o n . l i n e _ 2   |   o p t i o n . d b _ l i n e _ e n d   =   - 1 ) ) 
 	     t h e n   d e b u g _ s w   =   " 1 " b ; 
 	     e l s e   d e b u g _ s w   =   " 0 " b ; 
 
 	     i f   c r l   > =   d b _ l i n e 
 	     t h e n 
 	         d o ; 
 	             d e b u g _ s w   =   " 1 " b ; 
 	             i f   d t _ s w 
 	             t h e n   d e t a i l _ s w   =   " 1 " b ; 
 	             e l s e   d e t a i l _ s w   =   " 0 " b ; 
 	         e n d ; 
 	 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   n o   a r t   i n   t h i s   l i n e ?   * / 
                 i f   ^ t x t l i n . a r t   &   c t b . v o p e n   =   0   |   ( u n s p e c   ( t x t l i n . s p c l )   ^ =   " 0 " b ) 
                 t h e n   g o t o   e n d _ l i n e _ l o o p ; 
 
                 i f   d e t a i l _ s w 
                 t h e n 
 	 d o ; 
 	     c a l l   i o a _   ( " ^ 5 x S C A N   ( l i n = ^ d   ^ d / ^ d   d ^ f   l d ^ f   w ^ f   g ^ d   m r g ^ f / ^ f / ^ f " 
 	               | |   "   s e t = ^ [ I ^ ] ^ [ O ^ ] ^ [ L ^ ] ^ [ C ^ ] ^ [ R ^ ] ^ [ J ^ ] ^ [ L ^ ] ) ^ / ^ - " " ^ a " " " ,   c r l , 
 	               b l o c k . b l k n d x ,   t x t l i n . l i n e n o ,   s h o w   ( t x t l i n . d e p t h ,   1 2 0 0 0 ) , 
 	               s h o w   ( t x t l i n . l i n e s p a c e ,   1 2 0 0 0 ) ,   s h o w   ( t x t l i n . w i d t h ,   1 2 0 0 0 ) , 
 	               t x t l i n . c u r . g a p s ,   s h o w   ( t x t l i n . l m a r g ,   1 2 0 0 0 ) , 
 	               s h o w   ( t x t l i n . r m a r g ,   1 2 0 0 0 ) ,   s h o w   ( t x t l i n . n e t ,   1 2 0 0 0 ) , 
 	               ( t x t l i n . q u a d   =   q u a d i ) ,   ( t x t l i n . q u a d   =   q u a d o ) , 
 	               ( t x t l i n . q u a d   =   q u a d l ) ,   ( t x t l i n . q u a d   =   q u a d c ) , 
 	               ( t x t l i n . q u a d   =   q u a d r ) ,   ( t x t l i n . q u a d   =   j u s t ) , 
 	               ( t x t l i n . q u a d   =   " 0 " b ) ,   c o m p _ u t i l _ $ d i s p l a y   ( t x t s t r ,   0 ,   " 0 " b ) ) ; 
 	     c a l l   i o a _   ( " ^ - o p e n - v ^ d   l ^ d   r ^ d   d ^ d = ^ d " ,   c t b . v o p e n ,   c t b . l o p e n , 
 	               c t b . r o p e n ,   c t b . d o p e n ,   c t b . o p e n ) ; 
 	 e n d ; 
 
                 t m p s t r   =   t x t s t r ; 	 	 / *   c o p y   t h e   l i n e   * / 
                 u n s p e c   ( c t b )   =   " 0 " b ; 	 	 / *   s e t   u p   c u r r e n t   t a b l e   * / 
                 c t b . d e p t h   =   t x t l i n . d e p t h ; 
 
                 c t b . o p e n   =   p t b . o p e n ; 	 	 / *   p r o p a g a t e   o p e n   c o u n t s   * / 
                 c t b . v o p e n   =   p t b . v o p e n ; 
                 c t b . l o p e n   =   p t b . l o p e n ; 
                 c t b . r o p e n   =   p t b . r o p e n ; 
                 c t b . d o p e n   =   p t b . d o p e n ; 
 
                 c t b . l m a r g   =   p t b . l m a r g ; 	 / *   p r o p a g a t e   m a r g i n   s e t t i n g   * / 
                 i f   t x t l i n . l m a r g   ^ =   c t b . l m a r g   &   p t b . o p e n   =   0 
                 t h e n 
 	 d o ; 
 	     i f   d e t a i l _ s w 
 	     t h e n   c a l l   i o a _   ( " ^ -   0 -   L e f t   m a r g i n   s h i f t   -   ^ f   t o   ^ f " , 
 	 	     s h o w   ( c t b . l m a r g ,   1 2 0 0 0 ) ,   s h o w   ( t x t l i n . l m a r g ,   1 2 0 0 0 ) ) ; 
 
 	     c t b . l m a r g   =   t x t l i n . l m a r g ; 
 	 e n d ; 
 
 / *   l o o k   f o r   a   s y m b o l   * / 
                 c r x ,   c r s   =   1 ; 	 	 / *   s e t   u p   f o r   s c a n   * / 
                 c p t r   =   a d d r   ( c t b . e   ( c r s ) ) ; 	 / *   p o i n t   t o   t a b l e   e n t r y   * / 
                 b a s e ,   p r x ,   s c n d x ,   c r s _ p o s ,   p r s _ w i d t h ,   p a d _ a d j ,   z e r _ a d j   =   0 ; 
                 p r s _ p o s   =   t x t l i n . l m a r g   -   c t b . l m a r g ; 
 
 / *   i f   a n y   B S P s ,   t h e n   s c a n   f o r   s y m b o l s   * / 
                 i f   i n d e x   ( t m p s t r ,   B S P )   >   0 
                 t h e n 
 	 d o ; 	 	 	 / *   f i n d   B S P   o r   D C 1   * / 
 f i n d : 
 	     j   =   s e a r c h   ( s u b s t r   ( t m p s t r ,   c r x ) ,   B S P   | |   D C 1 ) ; 
 
 	     i f   j   =   0 	 	 / *   n o t h i n g   i n t e r e s t i n g ?   * / 
 	     t h e n   c r x   =   l e n g t h   ( t m p s t r )   +   1 ; 
 
 	     e l s e 
 	         d o ; 
 	             i f   s u b s t r   ( t m p s t r ,   c r x   +   j   -   1 ,   1 )   =   D C 1 
 	             t h e n 
 	                 d o ; 	 	 / *   s t e p   o v e r   d e v   c t l   s t r i n g   * / 
 	 	 c r x   =   c r x   +   r a n k   ( s u b s t r   ( t m p s t r ,   c r x   +   j   +   1 ,   1 ) )   +   j   +   2 ; 
 	 	 g o t o   f i n d ; 	 / *   a n d   k e e p   l o o k i n g   * / 
 	                 e n d ; 
 
 	             c r x   =   c r x   +   j   -   2 ; 	 / *   s e t   c r x   t o   f i r s t   a r t w o r k   c h a r   * / 
 
 	             i f   c r x   =   0 	 	 / *   i f   B S P   s t a r t s   t h e   l i n e   * / 
 	             t h e n 
 	                 d o ; 
 	 	 c r x   =   2 ; 	 	 / *   s t a r t   a g a i n   w i t h   2 n d   l i n e   c h a r   * / 
 	 	 g o t o   f i n d ; 
 	                 e n d ; 
 	         e n d ; 
 
 s c a n _ l o o p : 
 	     d o   w h i l e   ( c r x   < =   l e n g t h   ( t m p s t r )   &   c t b . s c n t   <   1 0 0 ) ; 
 	         t r a n s _ s t r   =   B S P   | |   " ' " " " ;   / *   i n i t i a l i z e   t r a n s l a t i o n   s t r i n g   * / 
 	         s i z e _ c h a r   =   N U L ; 
 	         l a s t _ s y m b   =   " 0 " b ; 	 / * * / 
 	 	 	 	 / *   s k i p   c o n t r o l   s e q u e n c e s   * / 
 	         i f   i n d e x   ( s u b s t r   ( t m p s t r ,   c r x ) ,   D C 1 )   =   1 
 	         t h e n 
 	             d o ; 
 	                 D C x x _ p   =   a d d r   ( s u b s t r   ( t m p s t r ,   c r x ) ) ; 
 	                 s c n d x   =   c r x   +   3   +   d c x x . l e n g ; 
 	                 g o t o   s c a n _ c o n t i n u e ; 
 	             e n d ; 	 	 / * * / 
 	 	 	 	 / *   i g n o r e   u n d e r s c o r e s   * / 
 	 	 	 	 / *   a n d   s l a s h e d   s y m b o l s   * / 
 ( n o s t r g ) : 
 	         i f   i n d e x   ( s u b s t r   ( t m p s t r ,   c r x ) ,   " _ " )   =   1 
 	                   |   i n d e x   ( s u b s t r   ( t m p s t r ,   c r x ) ,   " _ " )   =   3 
 	                   |   ( s u b s t r   ( t m p s t r ,   c r x ,   1 )   =   " / " 
 	                   &   i n d e x   ( " 0 O o c s b = " ,   s u b s t r   ( t m p s t r ,   c r x   +   2 ,   1 ) )   ^ =   0 ) 
 	                   |   ( s u b s t r   ( t m p s t r ,   c r x   +   2 ,   1 )   =   " / " 
 	                   &   i n d e x   ( " 0 O o c s b = " ,   s u b s t r   ( t m p s t r ,   c r x ,   1 ) )   ^ =   0 ) 
 	         t h e n 
 	             d o ; 
 	                 s c n d x   =   c r x   +   2 ; 	 / *   s t e p   o v e r   i t   * / 
 	                 g o t o   s c a n _ c o n t i n u e ; 	 / *   a n d   c o n t i n u e   * / 
 	             e n d ; 
 
 o v e r s t r i k e _ l o o p : 	 	 	 / *   d o   a l l   B S P   c h a r s   * / 
 	         d o   s c n d x   =   c r x   b y   2 
 	                   w h i l e   ( s c n d x   <   l e n g t h   ( t m p s t r )   &   ^ l a s t _ s y m b 
 	                   &   s u b s t r   ( t m p s t r ,   s c n d x   +   1 ,   1 )   =   B S P ) ; 
 
 l a s t _ s y m b _ : 
 	             i f   s u b s t r   ( t m p s t r ,   s c n d x ,   1 )   =   " 1 " 
 	             t h e n   s i z e _ c h a r   =   " 1 " ; 	 / *   o n e - h i g h s   a r e   s p e c i a l   * / 
 
 	             e l s e 
 	                 d o ; 	 	 / *   w h i c h   s y m b o l ?   * / 
 	 	 i s y m   = 
 	 	           i n d e x   ( c o n s t . a r t _ s y m b o l s ,   s u b s t r   ( t m p s t r ,   s c n d x ,   1 ) ) ; 
 
 	 	 i f   i s y m   >   0 	 / *   i f   f o u n d ,   s e t   s y m b o l   f l a g   * / 
 	 	 t h e n 
 	 	     d o ; 
 	 	         s y m b n d x   =   i s y m ; 
 	 	         s u b s t r   ( c f l a g s ,   s y m b n d x ,   1 )   =   " 1 " b ; 
 
 	 	         i f   s i z e _ c h a r   =   N U L 
 	 	 	 	 / *   c o u l d   i t   a l s o   b e   a   v a l i d   s i z e ?   * / 
 	 	                   & 
 	 	                   i n d e x   ( 
 	 	                   " 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z " 
 	 	                   ,   s u b s t r   ( t m p s t r ,   s c n d x ,   1 ) )   ^ =   0 
 	 	         t h e n   s i z e _ c h a r   =   s u b s t r   ( t m p s t r ,   s c n d x ,   1 ) ; 
 	 	     e n d ; 
 
 	 	 e l s e   i f   i s y m   =   0 	 / *   n o t   i n   a r t   s y m b o l   s e t   * / 
 	 	 t h e n 
 	 	     d o ; 
 	 	         i f   s i z e _ c h a r   =   N U L 
 	 	 	 	 / *   c o u l d   i t   a l s o   b e   a   v a l i d   s i z e ?   * / 
 	 	                   & 
 	 	                   i n d e x   ( 
 	 	                   " 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z " 
 	 	                   ,   s u b s t r   ( t m p s t r ,   s c n d x ,   1 ) )   ^ =   0 
 	 	         t h e n   s i z e _ c h a r   =   s u b s t r   ( t m p s t r ,   s c n d x ,   1 ) ; 
 
 	 	         e l s e 
 	 	             d o ; 
 	 	                 c a l l   i o a _ $ r s n n l   ( " \ ^ 3 . 3 b " ,   b a d _ c h a r ,   0 , 
 	 	 	       u n s p e c   ( s u b s t r   ( t m p s t r ,   s c n d x ,   1 ) ) ) ; 
 	 	                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	 	       " B a d   o v e r s t r i k e ,   "   | |   b a d _ c h a r 
 	 	 	       | |   " ,   a t   c h a r a c t e r   " 
 	 	 	       | |   l t r i m   ( c h a r   ( s c n d x ) )   | |   "   o f   i n p u t   l i n e . " , 
 	 	 	       a d d r   ( t x t l i n . i n f o ) ,   t x t s t r ) ; 
 	 	                 s y n t a x _ e r r o r   =   " 1 " b ; 
 	 	                 i f   s u b s t r   ( t m p s t r ,   s c n d x   +   1 ,   1 )   =   B S P 
 	 	                 t h e n   s c n d x   =   s c n d x   +   2 ; 
 	 	 	 	 / *   s t e p   o v e r   b a d   p a i r   * / 
 	 	                 g o t o   s c a n _ c o n t i n u e ; 
 	 	             e n d ; 
 	 	     e n d ; 
 	                 e n d ; 
 	         e n d   o v e r s t r i k e _ l o o p ; 
 
 	         i f   ^ l a s t _ s y m b 	 	 / *   o n c e   m o r e   f o r   l a s t   s y m b o l   * / 
 	         t h e n 
 	             d o ; 
 	                 l a s t _ s y m b   =   " 1 " b ; 
 	                 g o t o   l a s t _ s y m b _ ; 
 	             e n d ; 
 	         e l s e   s c n d x   =   s c n d x   -   2 ; 	 / *   b a c k   o u t   l a s t   s c a n   * / 
 
 	         i f   d e t a i l _ s w 	 	 / *   m a k e   d e b u g   s t r i n g   * / 
 	         t h e n   s y m b s t r   = 	 	 / *   t r a n s l a t i n g   B S ' s   t o   , ' s   * / 
 	 	         t r a n s l a t e   ( s u b s t r   ( t m p s t r ,   c r x ,   s c n d x   -   c r x   +   1 ) ,   " , " , 
 	 	         B S P ) ; 	 	 / *   i s   s y m b o l   m u l t i l i n e   m a t h ?   * / 
 	         i f   i n d e x   ( c f l a g s ,   " 1 " b )   < =   l a s t _ m l _ m a t h 
 	         t h e n   i f   ( s u b s t r   ( c f l a g s ,   l a s t _ m l _ m a t h   +   1 ) 
 	 	         &   " 0 1 0 1 0 0 0 1 0 1 1 1 1 0 0 0 0 1 1 1 " b )   =   " 0 " b 
 	                   t h e n   c t b e . s i z e   =   r a n k   ( s i z e _ c h a r ) ; 
 	                   e l s e   ; 	 	 / *   s e t   s y m b o l   s i z e   * / 
 	 	 	 	 / *   i s   i t   a n o t h e r   1 - h i g h ?   * / 
 	         e l s e   i f   i n d e x   ( c f l a g s ,   " 1 " b )   < =   l a s t _ m a t h 
 	                   &   s u b s t r   ( c f l a g s ,   l a s t _ m a t h   +   1 )   =   " 0 " b 
 	         t h e n   c t b e . s i z e   =   4 9 ; 	 / *   s e t   s y m b o l   s i z e   * / 
 
 	         e l s e 
 	             d o ; 	 	 	 / *   a l l   o t h e r   f l a g s   * / 
 	                 i ,   j   =   1 ; 
 	                 d o   w h i l e   ( j   ^ =   0 ) ; 
 	 	 j   =   i n d e x   ( s u b s t r   ( c f l a g s ,   i ) ,   " 1 " b ) ; 
 	 	 i f   j   >   0 
 	 	 t h e n 
 	 	     d o ; 
 	 	         i   =   i   +   j ; 
 	 	         t r a n s _ s t r   = 
 	 	                   t r a n s _ s t r   | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   i   -   1 ,   1 ) ; 
 	 	     e n d ; 
 	                 e n d ; 
 	             e n d ; 
 / * * * *   a n y   p r e c e d i n g   t e x t ?   s c a n   f o r   1 s t   n o n - b l a n k   s i n c e   l a s t   s y m b o l   * / 
 	         j   =   v e r i f y   ( s u b s t r   ( t m p s t r ,   p r x   +   1 ,   c r x   -   p r x   -   1 ) ,   "   "   | |   P A D ) ; 
 
 	         i f   j   >   0 	 	 / *   f o u n d   o n e   * / 
 	         t h e n 
 	             d o ; 	 	 	 / *   m o v e   t o   i n s e r t   t e x t   * / 
 	                 c t b . e   ( c r s   +   1 )   =   c t b . e   ( c r s ) ; 
 	 	 	 	 / *   c l e a r   v a c a t e d   e n t r y   * / 
 	                 u n s p e c   ( c t b . e   ( c r s ) )   =   " " b ; 
 	                 c t b e . b a s e   =   b a s e ; 	 / *   b a s e l i n e   o f f s e t   * / 
 	                 c t b e . t e x t   =   " 1 " b ; 	 / *   t e x t   e n t r y   f l a g   * / 
 	 	 	 	 / *   i n p u t   t e x t   s t a r t   * / 
 	                 p r x ,   c t b e . t s t r t   =   p r x   +   j ; 
 	                 c t b e . l e n ,   k   =   c r x   -   p r x ; 
 	 	 	 	 / *   i n p u t   l e n g t h   * / 
 	                 p r s _ p o s ,   c t b e . p o s   = 	 / *   o u t p u t   p o s i t i o n   * / 
 	 	       p r s _ p o s   +   p r s _ w i d t h 
 	 	       +   o n e E N   *   ( j   -   1   +   z e r _ a d j   -   p a d _ a d j ) ; 
 	                 z e r _ a d j ,   p a d _ a d j ,   p r s _ w i d t h   =   0 ; 
 
 	                 u n s p e c   ( m e a s 1 )   =   " 0 " b ; 
 	                 c a l l   c o m p _ m e a s u r e _   ( r t r i m   ( s u b s t r   ( t m p s t r ,   p r x ,   k ) ) , 
 	 	       a d d r   ( t x t l i n . f o n t ) ,   ( t x t l i n . q u a d   =   j u s t ) ,   " 1 " b , 
 	 	       t x t l i n . q u a d ,   b i n   ( t x t l i n . q u a d   =   j u s t )   *   t x t l i n . n e t , 
 	 	       a d d r   ( m e a s 1 ) ,   a d d r   ( m e a s 2 ) ,   a d d r   ( t x t l i n . i n f o ) ) ; 
 	 	 	 	 / *   o u t p u t   w i d t h   * / 
 	                 c t b e . w i d t h   =   m e a s 1 . w i d t h ; 
 	                 c t b e . w s p   =   m e a s 1 . a v g ; 
 	                 c t b e . l e n ,   k   =   m e a s 1 . c h r c t ; 
 	                 p r x   =   p r x   +   k   -   1 ; 	 / *   s t e p   t o   e n d   o f   t e x t   * / 
 	 	 	 	 / *   n e w   p o s i t i o n   * / 
 	                 p r s _ p o s   =   p r s _ p o s   +   c t b e . w i d t h   +   c t b e . w s p ; 
 
 	                 i f   d e t a i l _ s w 
 	                 t h e n 
 	 	 d o ; 
 	 	     c a l l   i o a _   ( " ^ - ^ 2 d -   ^ f   ( b ^ f   w ^ f )   ^ d   " " ^ a " " " ,   c r s , 
 	 	               s h o w   ( c t b e . p o s ,   1 2 0 0 0 ) ,   s h o w   ( c t b e . b a s e ,   1 2 0 0 0 ) , 
 	 	               s h o w   ( c t b e . w i d t h ,   1 2 0 0 0 ) ,   c t b e . l e n , 
 	 	               c o m p _ u t i l _ $ d i s p l a y   ( 
 	 	               s u b s t r   ( t m p s t r ,   c t b e . t s t r t ,   c t b e . l e n ) ,   0 ,   " 0 " b ) ) ; 
 	 	 e n d ; 
 
 	                 c r s   =   c r s   +   1 ; 	 / *   w e   h a v e   a   v a l i d   t e x t   e n t r y   * / 
 	 	 	 	 / *   p o i n t   t o   s y m b o l   j u s t   m o v e d   * / 
 	                 c p t r   =   a d d r   ( c t b . e   ( c r s ) ) ; 
 	             e n d ; 
 
 / *   s e t   p o s i t i o n   * / 
 	         c t b e . p o s   = 
 	                   p r s _ p o s   +   p r s _ w i d t h   +   o n e E N   *   ( c r x   -   p r x   -   1   +   z e r _ a d j ) ; 
 	         c t b e . b a s e   =   b a s e ; 
 	         z e r _ a d j   =   0 ; 
 % p a g e ; 
 / *   C H E C K   S Y N T A X   O F   G I V E N   S Y M B O L S   * / 
 
 / *   M A T H   S Y M B O L S   * / 
 	         i f   c t b e . s i z e   ^ =   0 
 	         t h e n 
 	             d o ; 
 	                 i f   c t b e . s i z e   =   4 8 	 / *   n o r m a l i z e   s y m b o l   s i z e   * / 
 	                 t h e n   c t b e . s i z e   =   1 0 ; 
 	                 e l s e   i f   c t b e . s i z e   >   9 6 
 	                 t h e n   c t b e . s i z e   =   c t b e . s i z e   -   8 6 ; 
 	                 e l s e   i f   c t b e . s i z e   >   6 4 
 	                 t h e n   c t b e . s i z e   =   c t b e . s i z e   -   3 4 ; 
 	                 e l s e   c t b e . s i z e   =   c t b e . s i z e   -   4 8 ; 
 
 	                 i f   s u b s t r   ( c f l a g s ,   1 ,   l a s t _ m l _ m a t h )   ^ =   " 0 " b 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c t b e . s i z e   >   5 6   / *   s y m b o l   s i z e   t o o   b i g ?   * / 
 	 	     t h e n 
 	 	         d o ; 
 b a d _ m a t h _ s i z e : 
 	 	             c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	 	   " M a t h   s y m b o l   s i z e   t o o   b i g   a t   c o l u m n   " 
 	 	 	   | | 
 	 	 	   l t r i m   ( c h a r   ( d i v i d e   ( c t b e . p o s ,   7 2 0 0 ,   1 7 ,   0 ) ) ) , 
 	 	 	   a d d r   ( t x t l i n . i n f o ) ,   t x t s t r ) ; 
 	 	             s y n t a x _ e r r o r   =   " 1 " b ; 
 	 	             g o t o   s c a n _ c o n t i n u e ; 
 	 	         e n d ; 
 	 	 e n d ; 
 
 	                 e l s e   i f   s u b s t r   ( c f l a g s ,   1 ,   l a s t _ m a t h )   ^ =   " 0 " b 
 	                 t h e n   i f   c t b e . s i z e   >   1 
 	 	       t h e n   g o t o   b a d _ m a t h _ s i z e ; 
 	 	 	 	 / *   w h i c h   s y m b o l   * / 
 	                 i   =   i n d e x   ( c f l a g s ,   " 1 " b ) ; 
 	 	 	 	 / *   a d d   t o   t r a n s l a t e   s t r i n g   * / 
 	                 t r a n s _ s t r   =   t r a n s _ s t r   | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   i ,   1 ) ; 
 	 	 	 	 / *   s i z e   c h a r ,   t o o   * / 
 	                 t r a n s _ s t r   =   t r a n s _ s t r   | |   s i z e _ c h a r ; 
 	 	 	 	 / *   a l l   M L   m a t h   a r e   f i x e d   w i d t h   * / 
 	                 c t b e . w i d t h   =   a r t _ s y m b o l _ w i d t h ; 
 
 	                 i f   c t b e . s i z e   >   1 	 / *   p o s i t i o n   a c c o r d i n g   * / 
 	                 t h e n 	 	 / *   t o   s y m b o l   s i z e   * / 
 	 	 d o ; 	 	 / *   o d d s   m o v e   d o w n   * / 
 	 	     i f   m o d   ( c t b e . s i z e ,   2 )   ^ =   0 
 	 	     t h e n   c t b e . b a s e   =   b a s e   +   3 0 0 0 ; 
 	 	 	 	 / *   e v e n s   m o v e   u p   * / 
 	 	     e l s e   c t b e . b a s e   =   b a s e   -   3 0 0 0 ; 
 	 	 e n d ; 	 	 / * * / 
 	 	 	 	 / *   s e t   s y m b o l ' s   l i n e   i n d e x   * / 
 	                 i f   c r l   =   1   |   c t b e . s i z e   =   1 
 	                 t h e n   c t b e . l n d x   =   1 ; 	 / *   f i r s t   l i n e   o r   o n e - h i g h   * / 
 	 	 	 	 / *   s e a r c h   p r e v i o u s   l i n e   f o r   t h i s   * / 
 	                 e l s e   i f   c r l   >   1 	 / *   s y m b o l   i n   t h i s   p o s i t i o n   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     d o   i   =   1   t o   p t b . s c n t 
 	 	               w h i l e   ( 
 	 	               ^ ( s u b s t r   ( a d d r   ( p t b . e   ( i ) )   - >   p f l a g s ,   s y m b n d x ,   1 ) 
 	 	               =   " 1 " b   &   p t b . p o s   ( i )   =   c t b e . p o s 
 	 	               &   p t b . s i z e   ( i )   =   c t b e . s i z e 
 	 	               &   p t b . l n d x   ( i )   ^ =   p t b . s i z e   ( i ) ) ) ; 
 	 	     e n d ; 
 	 	     i f   i   >   p t b . s c n t 	 / *   i f   n o t   f o u n d ,   t h e n   t h i s   i s   a   t o p   * / 
 	 	     t h e n   c t b e . l n d x   =   1 ; 
 	 	     e l s e 
 	 	         d o ; 	 	 / *   r e c o r d   s y m b o l   c o n t i n u a t i o n   * / 
 	 	             c t b e . l n d x   =   p t b . l n d x   ( i )   +   1 ; 
 	 	         e n d ; 
 	 	 e n d ; 
 	                 e l s e   c t b e . l n d x   =   1 ; 	 / *   n o   s y m b o l s   i n   p r e v i o u s   l i n e   * / 
 	             e n d ; 	 	 / *   m a t h   s y m b o l   s y n t a x   c h e c k   * / 
 
 / *   S U B / S U P E R S C R I P T S   * / 
 	         e l s e   i f   c t b e . s u p s c r 	 / *   s u p e r s c r i p t ?   * / 
 	         t h e n 
 	             d o ; 
 	                 i f   c t b e . d a r o 	 / *   i f   s u b s c r i p t   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     c t b e . s u p s c r   =   " 0 " b ; 
 	 	 	 	 / *   c h a n g e   f l a g   * / 
 	 	     c t b e . s u b s c r   =   " 1 " b ; 
 	 	     c t b e . d a r o   =   " 0 " b ;   / *   r e s e t   d a r o   f l a g   * / 
 	 	     b a s e   =   b a s e   +   4 5 0 0 ; 
 	 	 	 	 / *   d r o p   b a s e l i n e   b y   a   t h i r d   * / 
 	 	 e n d ; 
 
 	                 e l s e 
 	 	 d o ; 
 	 	     c t b e . u p a r o   =   " 0 " b ; / *   r e s e t   u p a r o   f l a g   * / 
 	 	     b a s e   =   b a s e   -   4 5 0 0 ; 
 	 	 	 	 / *   r a i s e   b a s e l i n e   b y   a   t h i r d   * / 
 	 	 e n d ; 
 
 / * 	                 z e r _ a d j   =   1 ; 	 / *   a c c o u n t   f o r   z e r o   w i d t h   s y m b o l   * / 
 	             e n d ; 
 
 	         e l s e   i f   c t b e . s u b s c r 	 / *   s u b s c r i p t ?   * / 
 	         t h e n 
 	             d o ; 
 	                 i f   c t b e . u p a r o 
 	                 t h e n 
 	 	 d o ; 	 	 / *   i f   s u p e r s c r i p t   * / 
 	 	     c t b e . s u p s c r   =   " 1 " b ; 
 	 	 	 	 / *   c h a n g e   f l a g   * / 
 	 	     c t b e . s u b s c r   =   " 0 " b ; 
 	 	     c t b e . u p a r o   =   " 0 " b ; / *   r e s e t   u p a r o   f l a g   * / 
 	 	     b a s e   =   b a s e   -   4 5 0 0 ; 
 	 	 	 	 / *   r a i s e   b a s e l i n e   b y   a   t h i r d   * / 
 	 	 e n d ; 
 
 	                 e l s e 
 	 	 d o ; 
 	 	     c t b e . d a r o   =   " 0 " b ;   / *   r e s e t   d a r o   f l a g   * / 
 	 	     b a s e   =   b a s e   +   4 5 0 0 ; 
 	 	 	 	 / *   d r o p   b a s e l i n e   b y   a   t h i r d   * / 
 	 	 e n d ; 
 
 / * 	                 z e r _ a d j   =   1 ; 	 / *   a c c o u n t   f o r   z e r o   w i d t h   s y m b o l   * / 
 	             e n d ; 
 
 / *   H A L F   L I N E S   * / 
 	         e l s e   i f   c t b e . h l u p 	 / *   u p ?   * / 
 	         t h e n 
 	             d o ; 
 	                 i f   c t b e . d a r o 	 / *   i f   h l i n e   d o w n   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     c t b e . h l u p   =   " 0 " b ;   / *   c h a n g e   f l a g   * / 
 	 	     c t b e . h l d n   =   " 1 " b ; 
 	 	     c t b e . d a r o   =   " 0 " b ;   / *   r e s e t   d a r o   f l a g   * / 
 	 	     b a s e   =   b a s e   +   6 0 0 0 ; 
 	 	 	 	 / *   d r o p   b a s e l i n e   b y   a   h a l f   * / 
 	 	 e n d ; 
 
 	                 e l s e 
 	 	 d o ; 
 	 	     c t b e . u p a r o   =   " 0 " b ; / *   r e s e t   u p a r o   f l a g   * / 
 	 	     b a s e   =   b a s e   -   6 0 0 0 ; 
 	 	 	 	 / *   r a i s e   b a s e l i n e   b y   a   h a l f   * / 
 	 	 e n d ; 
 
 / * 	                 z e r _ a d j   =   1 ; 	 / *   a c c o u n t   f o r   z e r o   w i d t h   s y m b o l   * / 
 	             e n d ; 
 
 	         e l s e   i f   c t b e . h l d n 	 / *   d o w n ?   * / 
 	         t h e n 
 	             d o ; 
 	                 i f   c t b e . u p a r o 	 / *   i f   h l i n e   u p   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     c t b e . h l u p   =   " 1 " b ;   / *   c h a n g e   f l a g   * / 
 	 	     c t b e . h l d n   =   " 0 " b ; 
 	 	     c t b e . u p a r o   =   " 0 " b ; / *   r e s e t   u p a r o   f l a g   * / 
 	 	     b a s e   =   b a s e   -   6 0 0 0 ; 
 	 	 	 	 / *   r a i s e   b a s e l i n e   b y   a   h a l f   * / 
 	 	 e n d ; 
 
 	                 e l s e 
 	 	 d o ; 
 	 	     c t b e . d a r o   =   " 0 " b ;   / *   r e s e t   d a r o   f l a g   * / 
 	 	     b a s e   =   b a s e   +   6 0 0 0 ; 
 	 	 	 	 / *   d r o p   b a s e l i n e   b y   a   h a l f   * / 
 	 	 e n d ; 
 	             e n d ; 
 
 / *   M I N I P O S I T I O N I N G   * / 
 	         e l s e   i f   i n d e x   ( c f l a g s ,   " 1 " b )   > =   f i r s t _ m i n i _ p o s 
 	                   &   i n d e x   ( c f l a g s ,   " 1 " b )   < =   l a s t _ m i n i _ p o s 
 	                   &   s u b s t r   ( c f l a g s ,   l a s t _ m i n i _ p o s   +   1 )   =   " 0 " b 
 	         t h e n 
 	             d o ; 
 	                 c t b e . s i z e   =   r a n k   ( s i z e _ c h a r )   -   4 8 ; 
 	                 t r a n s _ s t r   =   t r a n s _ s t r   | |   s i z e _ c h a r ; 
 	 	 	 	 / *   b a d   c o u n t ?   * / 
 	                 i f   c t b e . s i z e   <   0   |   c t b e . s i z e   >   9 
 	                 t h e n 
 	 	 d o ; 
 	 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " I n v a l i d   m i n i p o s i t i o n   c o u n t . " , 
 	 	               a d d r   ( t x t l i n . i n f o ) ,   t x t s t r ) ; 
 	 	     s y n t a x _ e r r o r   =   " 1 " b ; 
 	 	     g o t o   s c a n _ c o n t i n u e ; 
 	 	 e n d ; 
 
 	                 i f   c t b e . u p a r o 
 	                 t h e n   b a s e   =   b a s e   -   1 5 0 0   *   c t b e . s i z e ; 
 	                 e l s e   i f   c t b e . d a r o 
 	                 t h e n   b a s e   =   b a s e   +   1 5 0 0   *   c t b e . s i z e ; 
 	                 e l s e   i f   c t b e . r a r o 
 	                 t h e n   c t b e . h a d j   =   c t b e . h a d j   +   1 2 0 0   *   c t b e . s i z e ; 
 	                 e l s e   i f   c t b e . l a r o 
 	                 t h e n   c t b e . h a d j   =   c t b e . h a d j   -   1 2 0 0   *   c t b e . s i z e ; 
 	 	 	 	 / *   w h a t   d i r e c t i o n ?   * / 
 	 	 	 	 / * 	             i   =   i n d e x   ( s u b s t r   ( c f l a g s ,   f i r s t _ m i n i _ p o s ,   4 ) ,   " 1 " b ) ; 
 	 	 	 	 / *   a d d   t o   t r a n s   s t r   * / 
 	 	 	 	 / * 	             t r a n s _ s t r   =   t r a n s _ s t r   | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   i ,   1 ) ; 
 	 	 	 	 / *   c l e a r   f l a g s   * / 
 	                 s u b s t r   ( c f l a g s ,   f i r s t _ m i n i _ p o s ,   4 )   =   " 0 0 0 0 " b ; 
 	             e n d ; 
 
 / *   L I N E   A R T   S Y N T A X   * / 
 
 	         e l s e 
 	             d o ; 
 	                 i f   c t b e . h o r i z 	 / *   i f   h o r i z   s t a r t   * / 
 	                 t h e n 
 	 	 d o ; 
 
 / *   s t a r t i n g   h o r i z o n t a l   r u l e s ,   b o x e s ,   a n d   l o z e n g e s   * / 
 	 	     t r a n s _ s t r   = 
 	 	               t r a n s _ s t r 
 	 	               | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   h o r i z _ n d x ,   1 ) ; 
 
 	 	     i f   ^ c t b e . s t a r 	 / *   i f   N O T   a l s o   h o r i z   t e r m   * / 
 	 	     t h e n 
 	 	         d o ; 
 
 / *   c h e c k   a l l   b o x   l e f t   p a r t s   * / 
 	 	             i f   c t b e . v e r t 	 / *   f i r s t ,   t o p s   &   i n t e r i o r   T s   * / 
 	 	             t h e n 
 	 	                 d o ; 
 	 	 	 t r a n s _ s t r   = 
 	 	 	           t r a n s _ s t r 
 	 	 	           | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   v e r t _ n d x ,   1 ) ; 
 
 	 	 	 i f   c r l   >   1 / *   s y m b o l   c o u n t   o f   p r e v i o u s   l i n e   * / 
 	 	 	 t h e n   p r l c t   =   p t b . s c n t ; 
 	 	 	 e l s e   p r l c t   =   0 ; 
 	 	 	 	 / *   f i n d   p t b e   h a v i n g   a   v e r t i c a l ,   a   * / 
 	 	 	 	 / *   b o x   p a r t ,   o r   a   c o n t i n u e d   * / 
 	 	 	 	 / *   v e r t i c a l   i n   t h i s   c o l   * / 
 	 	 	 d o   s s y m   =   1   t o   p r l c t 
 	 	 	           w h i l e   ( 
 	 	 	           ^ 
 	 	 	           ( ( p t b . v e r t   ( s s y m ) 
 	 	 	           | 
 	 	 	           s u b s t r   ( a d d r   ( p t b . e   ( s s y m ) )   - >   p f l a g s , 
 	 	 	           b o x t l _ n d x ,   6 )   ^ =   " 0 " b )   &   ^ p t b . v t e r m   ( s s y m ) 
 	 	 	           &   p t b . p o s   ( s s y m )   =   c t b e . p o s ) ) ; 
 	 	 	 e n d ; 
 
 / *   b o x   t o p   l e f t   c o r n e r s   * / 
 	 	 	 i f   s s y m   >   p r l c t 
 	 	 	 t h e n 	 / *   c a n t   b e   a n   i n t e r i o r   c o r n e r ,   * / 
 	 	 	     d o ; 	 / *   s o   o p e n   a   n e w   r u l e   * / 
 	 	 	         c t b . v o p e n   =   c t b . v o p e n   +   1 ; 
 	 	 	         c t b . o p e n   =   c t b . o p e n   +   1 ; 
 
 	 	 	         i f   h o p e n 
 	 	 	 	 / *   i f   t h e r e ' s   a l r e a d y   a   r u l e ,   * / 
 	 	 	         t h e n 	 / *   i t s   a   t o p   i n t e r s e c t i o n   * / 
 	 	 	                   c t b e . b o x t   =   " 1 " b ; 
 
 	 	 	         e l s e 	 / *   i t s   a   t o p   l e f t   c o r n e r   * / 
 	 	 	                   c t b e . b o x t l   =   " 1 " b ; 
 
 	 	 	         c t b e . w i d t h   =   o n e E N ; 
 	 	 	     e n d ; 
 
 / *   b o x   i n t e r i o r   l e f t   c o r n e r s   * / 
 	 	 	 e l s e 
 	 	 	     d o ; 
 	 	 	         i f   h o p e n 
 	 	 	 	 / *   a   b o x   +   * / 
 	 	 	         t h e n   c t b e . b o x x   =   " 1 " b ; 
 	 	 	 	 / *   e l s e   a   l e f t   T   * / 
 	 	 	         e l s e   c t b e . b o x l   =   " 1 " b ; 
 	 	 	         c t b e . w i d t h   =   o n e E N ; 
 	 	 	     e n d ; 
 	 	 	 c t b e . v e r t ,   c t b e . h o r i z   =   " 0 " b ; 
 	 	                 e n d ; 
 
 / *   b o x   b o t t o m   l e f t   c o r n e r s   * / 
 	 	             i f   c t b e . v t e r m   &   ^ ( c t b e . l s l n t   |   c t b e . r s l n t ) 
 	 	             t h e n 
 	 	                 d o ; 
 	 	 	 t r a n s _ s t r   = 
 	 	 	           t r a n s _ s t r 
 	 	 	           | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   v t e r m _ n d x ,   1 ) ; 
 	 	 	 	 / *   g e t   s y m b o l   c o u n t   o f   p r e v i o u s   l i n e   * / 
 	 	 	 i f   c r l   >   1 
 	 	 	 t h e n   p r l c t   =   p t b . s c n t ; 
 	 	 	 e l s e   p r l c t   =   0 ; 
 	 	 	 	 / *   s k i p   p t b e   h a v i n g   a   v e r t i c a l ,   a   b o x   * / 
 	 	 	 	 / *   p a r t   o r   a   c o n t i n u e d   v e r t i c a l   * / 
 	 	 	 	 / *   i n   t h i s   c o l   * / 
 	 	 	 d o   s s y m   =   1   t o   p r l c t 
 	 	 	           w h i l e   ( 
 	 	 	           ^ 
 	 	 	           ( ( p t b . v e r t   ( s s y m ) 
 	 	 	           | 
 	 	 	           s u b s t r   ( a d d r   ( p t b . e   ( s s y m ) )   - >   p f l a g s , 
 	 	 	           b o x t l _ n d x ,   6 )   ^ =   " 0 " b )   &   ^ p t b . v t e r m   ( s s y m ) 
 	 	 	           &   a b s   ( p t b . p o s   ( s s y m )   -   c t b e . p o s ) 
 	 	 	           <   c o m p _ d v t . m i n _ W S ) ) ; 
 	 	 	 e n d ; 	 / *   o o p s !   a n   o r p h a n   * / 
 	 	 	 i f   s s y m   >   p r l c t 
 	 	 	 t h e n   c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   0 , 
 	 	 	 	 a d d r   ( t x t l i n . i n f o ) ,   t x t s t r , 
 	 	 	 	 " O r p h a n   b o x   c o r n e r   a t   c o l u m n   ^ d " , 
 	 	 	 	 d i v i d e   ( c t b e . p o s ,   1 2 0 0 0 ,   1 7 ,   0 ) ) ; 
 
 	 	 	 e l s e 	 / *   w e   h a v e   a   m a t c h i n g   b o x   p a r t   * / 
 	 	 	     d o ; 	 / *   c l o s e   a   r u l e   * / 
 	 	 	         c t b . v o p e n   =   c t b . v o p e n   -   1 ; 
 	 	 	         c t b . o p e n   =   c t b . o p e n   -   1 ; 
 
 	 	 	         i f   h o p e n 
 	 	 	 	 / *   i f   t h e r e s   a l r e a d y   a   r u l e   * / 
 	 	 	         t h e n   c t b e . b o x b   =   " 1 " b ; 
 	 	 	 	 / *   b o t t o m   i n t e r s e c t i o n   * / 
 	 	 	         e l s e   c t b e . b o x b l   =   " 1 " b ; 
 	 	 	 	 / *   b o t t o m   l e f t   c o r n e r   * / 
 	 	 	         c t b e . w i d t h   =   o n e E N ; 
 
 	 	 	         c t b e . v t e r m ,   c t b e . h o r i z   =   " 0 " b ; 
 	 	 	     e n d ; 
 	 	                 e n d ; 
 
 / *   u p p e r   l e f t   l o z e n g e   c o r n e r ?   * / 
 	 	             i f   c t b e . r s l n t   &   ^ c t b e . v t e r m 
 	 	             t h e n 
 	 	                 d o ; 
 	 	 	 t r a n s _ s t r   = 
 	 	 	           t r a n s _ s t r 
 	 	 	           | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   r s l n t _ n d x ,   1 ) ; 
 	 	 	 c t b e . l o z t l ,   l o z t o p   =   " 1 " b ; 
 	 	 	 c t b e . r s l n t ,   c t b e . h o r i z   =   " 0 " b ; 
 	 	 	 c t b . r o p e n   =   c t b . r o p e n   +   1 ; 
 	 	 	 c t b . o p e n   =   c t b . o p e n   +   1 ; 
 	 	 	 c t b e . w i d t h   =   o n e E N ; 
 	 	                 e n d ; 
 
 / *   l o w e r   l e f t   l o z e n g e   c o r n e r ?   * / 
 	 	             i f   c t b e . l s l n t   &   c t b e . v t e r m   &   ^ c t b e . r s l n t 
 	 	             t h e n 
 	 	                 d o ; 	 / *   s c a n   p r e v i o u s   l i n e   f o r   . . .   * / 
 	 	 	 d o   s s y m   =   1   t o   p t b . s c n t 
 	 	 	 	 / *   l o z   l e f t   . . .   * / 
 	 	 	           w h i l e   ( ^ ( ( ( p t b . l s l n t   ( s s y m ) 
 	 	 	 	 / *   s l a n t   . . .   * / 
 	 	 	           &   p t b . p o s   ( s s y m )   =   c t b e . p o s   -   t w o E N ) 
 	 	 	           |   ( p t b . l o z l   ( s s y m ) 
 	 	 	 	 / *   o r   l e f t   v e r t e x   . . .   * / 
 	 	 	           &   p t b . p o s   ( s s y m )   =   c t b e . p o s   -   o n e E N ) ) 
 	 	 	           &   ^ p t b . l t e r m   ( s s y m ) ) ) ; 
 	 	 	 	 / *   w i t h o u t   a   t e r m i n a t o r   * / 
 	 	 	 e n d ; 
 
 	 	 	 i f   s s y m   < =   p t b . s c n t 
 	 	 	 	 / *   i f   f o u n d ,   i t s   a   l o w e r   l e f t   * / 
 	 	 	 t h e n 
 	 	 	     d o ; 
 	 	 	         t r a n s _ s t r   = 
 	 	 	                   t r a n s _ s t r 
 	 	 	                   | | 
 	 	 	                   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   l s l n t _ n d x ,   1 ) 
 	 	 	                   ; 
 	 	 	         c t b e . l o z b l   =   " 1 " b ; 
 	 	 	         c t b e . l s l n t ,   c t b e . h o r i z ,   c t b e . v t e r m   =   " 0 " b ; 
 	 	 	         c t b . l o p e n   =   c t b . l o p e n   -   1 ; 
 	 	 	         c t b e . w i d t h   =   o n e E N ; 
 	 	 	         c t b . o p e n   =   c t b . o p e n   -   1 ; 
 	 	 	     e n d ; 
 	 	                 e n d ; 
 
 	 	             h o p e n   =   " 1 " b ;   / *   r u l e   i s   o p e n   * / 
 	 	             i f   c t b e . h o r i z 
 	 	 	   &   ^ ( c t b e . l s l n t   &   c t b e . v t e r m   &   c t b e . r s l n t ) 
 	 	             t h e n   z e r _ a d j   =   1 ; 
 	 	 	 	 / *   j u s t   a   p l a i n   h r u l e   s t a r t e r   * / 
 	 	         e n d ; 
 	 	 e n d ; 
 
 	                 i f   c t b e . s t a r 	 / *   i f   h o r i z   t e r m   * / 
 	 	       &   ( h o p e n   |   c t b e . h o r i z ) 
 	 	 	 	 / *   a n d   t h e r e   i s   a   r u l e   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     t r a n s _ s t r   = 
 	 	               t r a n s _ s t r 
 	 	               | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   s t a r _ n d x ,   1 ) ; 
 
 / *   c h e c k   a l l   b o x   r i g h t   p a r t s   * / 
 	 	     i f   c t b e . v e r t 	 / *   f i r s t ,   c h e c k   t o p s   a n d   i n t e r i o r s   * / 
 	 	     t h e n 
 	 	         d o ; 
 	 	             t r a n s _ s t r   = 
 	 	 	   t r a n s _ s t r 
 	 	 	   | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   v e r t _ n d x ,   1 ) ; 
 
 	 	             i f   c r l   >   1 	 / *   s y m b o l   c o u n t   o f   p r e v i o u s   l i n e   * / 
 	 	             t h e n   p r l c t   =   p t b . s c n t ; 
 	 	             e l s e   p r l c t   =   0 ; 
 	 	 	 	 / * * / 
 	 	 	 	 / *   s k i p   p t b e   h a v i n g   a   v e r t i c a l ,   * / 
 	 	 	 	 / *   a   b o x   p a r t ,   o r   a   c o n t i n u e d   * / 
 	 	 	 	 / *   v e r t i c a l   i n   t h i s   c o l   * / 
 	 	             d o   s s y m   =   1   t o   p r l c t 
 	 	 	   w h i l e   ( 
 	 	 	   ^ 
 	 	 	   ( ( p t b . v e r t   ( s s y m ) 
 	 	 	   | 
 	 	 	   s u b s t r   ( a d d r   ( p t b . e   ( s s y m ) )   - >   p f l a g s , 
 	 	 	   b o x t l _ n d x ,   6 )   ^ =   " 0 " b )   &   ^ p t b . v t e r m   ( s s y m ) 
 	 	 	   &   p t b . p o s   ( s s y m )   =   c t b e . p o s ) ) ; 
 	 	             e n d ; 
 
 / *   b o x   t o p   r i g h t   c o r n e r s   * / 
 	 	             i f   s s y m   >   p r l c t 
 	 	             t h e n 
 	 	                 d o ; 
 	 	 	 c t b . v o p e n   =   c t b . v o p e n   +   1 ; 
 	 	 	 c t b . o p e n   =   c t b . o p e n   +   1 ; 
 	 	 	 c t b e . b o x t r   =   " 1 " b ; 
 	 	 	 z e r _ a d j   =   1 ; 
 	 	 	 c t b e . v e r t ,   c t b e . h o r i z ,   h o p e n   =   " 0 " b ; 
 	 	                 e n d ; 
 
 / *   b o x   i n t e r i o r   r i g h t   c o r n e r s   * / 
 	 	             e l s e 
 	 	                 d o ; 
 	 	 	 c t b e . b o x r   =   " 1 " b ; 
 	 	 	 z e r _ a d j   =   1 ; 
 	 	 	 c t b e . v e r t ,   c t b e . s t a r ,   h o p e n   =   " 0 " b ; 
 	 	                 e n d ; 
 	 	         e n d ; 
 
 / *   b o x   b o t t o m   r i g h t   c o r n e r s   * / 
 	 	     e l s e   i f   c t b e . v t e r m   &   ^ ( c t b e . l s l n t   |   c t b e . r s l n t ) 
 	 	     t h e n 
 	 	         d o ; 
 	 	             t r a n s _ s t r   = 
 	 	 	   t r a n s _ s t r 
 	 	 	   | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   v t e r m _ n d x ,   1 ) ; 
 	 	 	 	 / *   s y m b o l   c o u n t   o f   p r e v i o u s   l i n e   * / 
 	 	             i f   c r l   >   1 
 	 	             t h e n   p r l c t   =   p t b . s c n t ; 
 	 	             e l s e   p r l c t   =   0 ; 
 
 	 	             d o   s s y m   =   1   t o   p r l c t 
 	 	 	   w h i l e   ( 
 	 	 	   ^ 
 	 	 	   ( ( p t b . v e r t   ( s s y m ) 
 	 	 	   |   s u b s t r   ( a d d r   ( p t b . e   ( s s y m ) )   - > 
 	 	 	 	 / *   b o x   p a r t . .   * / 
 	 	 	   p f l a g s ,   b o x t l _ n d x ,   6 )   ^ =   " 0 " b ) 
 	 	 	   &   ^ p t b . v t e r m   ( s s y m ) 
 	 	 	   &   a b s   ( p t b . p o s   ( s s y m )   -   c t b e . p o s ) 
 	 	 	   <   c o m p _ d v t . m i n _ W S ) ) ; 
 	 	             e n d ; 	 / * * / 
 	 	 	 	 / *   o o p s !   a n   o r p h a n   * / 
 	 	             i f   s s y m   >   p r l c t 
 	 	             t h e n   c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   0 , 
 	 	 	             a d d r   ( t x t l i n . i n f o ) ,   t x t s t r , 
 	 	 	             " O r p h a n   b o x   c o r n e r   a t   c o l u m n   ^ d " , 
 	 	 	             d i v i d e   ( c t b e . p o s ,   1 2 0 0 0 ,   1 7 ,   0 ) ) ; 
 	 	 	 	 / *   w e   h a v e   a   m a t c h i n g   b o x   p a r t   * / 
 	 	             e l s e 
 	 	                 d o ; 
 	 	 	 c t b . v o p e n   =   c t b . v o p e n   -   1 ; 
 	 	 	 c t b . o p e n   =   c t b . o p e n   -   1 ; 
 	 	 	 c t b e . b o x b r   =   " 1 " b ; 
 	 	 	 z e r _ a d j   =   1 ; 
 	 	 	 c t b e . v t e r m ,   c t b e . h o r i z ,   h o p e n   =   " 0 " b ; 
 	 	                 e n d ; 
 	 	         e n d ; 
 
 / *   u p p e r   r i g h t   l o z e n g e   c o r n e r ?   * / 
 	 	     e l s e   i f   c t b e . l s l n t   &   l o z t o p 
 	 	     t h e n 
 	 	         d o ; 
 	 	             c t b e . l s l n t ,   c t b e . s t a r ,   l o z t o p   =   " 0 " b ; 
 	 	             c t b e . l o z t r   =   " 1 " b ; 
 	 	             z e r _ a d j   =   1 ; 
 	 	             c t b . o p e n   =   c t b . o p e n   +   1 ; 
 	 	             c t b . l o p e n   =   c t b . l o p e n   +   1 ; 
 	 	         e n d ; 
 
 / *   l o w e r   r i g h t   l o z e n g e   c o r n e r ?   * / 
 	 	     e l s e   i f   c t b e . r s l n t   &   c t b e . v t e r m 
 	 	     t h e n 
 	 	         d o ; 
 	 	             d o   s s y m   =   1   t o   p t b . s c n t   w h i l e 
 	 	 	 	 / *   l o o k   f o r   . . .   * / 
 	 	 	   ( ^ ( ( ( p t b . r s l n t   ( s s y m )   & 
 	 	 	 	 / *   r i g h t   s l a n t   * / 
 	 	 	   p t b . p o s   ( s s y m )   -   t w o E N   =   c t b e . p o s ) 
 	 	 	   |   ( p t b . l o z r   ( s s y m )   & 
 	 	 	 	 / *   o r   r i g h t   v e r t e x   * / 
 	 	 	   p t b . p o s   ( s s y m )   -   o n e E N   =   c t b e . p o s ) ) 
 	 	 	   &   ^ p t b . r t e r m   ( s s y m ) ) ) ; 
 	 	             e n d ; 
 
 	 	             i f   s s y m   < =   p t b . s c n t 
 	 	 	 	 / *   i f   f o u n d   * / 
 	 	             t h e n 
 	 	                 d o ; 	 / *   i t s   a   l o w e r   r i g h t   * / 
 	 	 	 t r a n s _ s t r   = 
 	 	 	           t r a n s _ s t r 
 	 	 	           | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   r s l n t _ n d x ,   1 ) ; 
 	 	 	 c t b e . l o z b r   =   " 1 " b ; 
 	 	 	 z e r _ a d j   =   1 ; 
 	 	 	 c t b e . r s l n t ,   c t b e . s t a r ,   c t b e . v t e r m   =   " 0 " b ; 
 	 	 	 c t b . r o p e n   =   c t b . r o p e n   -   1 ; 
 	 	 	 c t b . o p e n   =   c t b . o p e n   -   1 ; 
 	 	                 e n d ; 
 	 	         e n d ; 	 	 / * * / 
 	 	 	 	 / *   i f   n o n e   o f   t h e   a b o v e   * / 
 	 	     e l s e 
 	 	         d o ; 
 	 	             i f   c t b e . s t a r 
 	 	             t h e n   i f   c t b e . r a r o 
 	 	 	   t h e n   c t b e . w i d t h   =   o n e E N ; 
 	 	 	   e l s e   z e r _ a d j   =   1 ; 
 	 	         e n d ; 	 	 / * * / 
 	 	 	 	 / *   c l o s e   t h e   r u l e   * / 
 	 	     h o p e n   =   " 0 " b ; 
 	 	 e n d ; 
 
 / *   l e f t   s l a n t s   * / 
 	                 i f   c t b e . l s l n t 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c t b e . p o s   =   0 
 	 	     t h e n 	 	 / *   c a n t   b e   i n   c o l u m n   1   * / 
 	 	         d o ; 
 	 	             c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	 	   " L e f t   s l a n t   l i n e   v i o l a t e s   l e f t   m a r g i n . " , 
 	 	 	   a d d r   ( t x t l i n . i n f o ) ,   t x t s t r ) ; 
 	 	             s y n t a x _ e r r o r   =   " 1 " b ; 
 	 	             g o t o   s c a n _ c o n t i n u e ; 
 	 	         e n d ; 
 
 / *   l o z e n g e   v e r t i c e s   * / 
 	 	     i f   c r l   >   1   &   c t b e . r s l n t   &   c t b e . v t e r m 
 	 	     t h e n 
 	 	         d o ; 	 	 / * * / 
 	 	 	 	 / *   f i r s t   t r y   l e f t   v e r t e x   * / 
 	 	             d o   s s y m   =   1   t o   p t b . s c n t 
 	 	 	   w h i l e   ( 
 	 	 	   ^ ( ( p t b . r s l n t   ( s s y m )   |   p t b . l o z t l   ( s s y m ) ) 
 	 	 	   &   p t b . p o s   ( s s y m )   -   o n e E N   =   c t b e . p o s ) ) ; 
 	 	             e n d ; 	 / * * / 
 	 	 	 	 / *   i f   f o u n d   * / 
 	 	             i f   s s y m   < =   p t b . s c n t 
 	 	             t h e n 
 	 	                 d o ; 
 	 	 	 p p t r   =   a d d r   ( p t b . e   ( s s y m ) ) ; 
 	 	 	 	 / *   s e t   a d j u s t m e n t   * / 
 	 	 	 i f   p t b e . l o z t l 
 	 	 	 t h e n   c t b e . h a d j   =   p t b e . h a d j   -   E N 6 ; 
 	 	 	 e l s e   c t b e . h a d j   =   p t b e . h a d j   -   E N 3 ; 
 	 	 	 	 / *   c h a n g e   f l a g s   * / 
 	 	 	 c t b e . l s l n t ,   c t b e . v t e r m ,   c t b e . r s l n t   =   " 0 " b ; 
 	 	 	 c t b e . l o z l   =   " 1 " b ; 
 	 	 	 c t b e . w i d t h   =   a r t _ s y m b o l _ w i d t h ; 
 	 	 	 z e r _ a d j   =   0 ; 
 	 	 	 c t b . r o p e n   =   c t b . r o p e n   -   1 ; 
 	 	 	 c t b . l o p e n   =   c t b . l o p e n   +   1 ; 
 	 	 	 	 / *   N o t e   t h a t   A L L   r i g h t   s l a n t   * / 
 	 	 	 	 / *   l o g i c   i s   s k i p p e d   * / 
 	 	 	 g o t o   e n d _ g i v e n _ r s ; 
 	 	                 e n d ; 	 / *   t r y   r i g h t   v e r t e x   * / 
 	 	             d o   s s y m   =   1   t o   p t b . s c n t 
 	 	 	   w h i l e   ( 
 	 	 	   ^ ( ( p t b . l s l n t   ( s s y m )   |   p t b . l o z t r   ( s s y m ) ) 
 	 	 	   &   p t b . p o s   ( s s y m )   +   o n e E N   =   c t b e . p o s ) ) ; 
 	 	             e n d ; 	 / * * / 
 	 	 	 	 / *   i f   f o u n d   * / 
 	 	             i f   s s y m   < =   p t b . s c n t 
 	 	             t h e n 
 	 	                 d o ; 	 / *   s e t   a d j u s t m e n t   * / 
 	 	 	 c t b e . h a d j   =   p t b . h a d j   ( s s y m )   +   E N 3 ; 
 	 	 	 	 / *   c h a n g e   f l a g s   * / 
 	 	 	 c t b e . r s l n t ,   c t b e . l s l n t ,   c t b e . v t e r m   =   " 0 " b ; 
 	 	 	 c t b e . l o z r   =   " 1 " b ; 
 	 	 	 c t b e . w i d t h   =   o n e E N ; 
 	 	 	 	 / *   a d j u s t   o p e n   s l a n t   c o u n t s   * / 
 	 	 	 c t b . l o p e n   =   c t b . l o p e n   -   1 ; 
 	 	 	 c t b . r o p e n   =   c t b . r o p e n   +   1 ; 
 	 	 	 	 / *   N o t e   t h a t   A L L   r i g h t   s l a n t   l o g i c   * / 
 	 	 	 	 / *   i s   s k i p p e d   * / 
 	 	 	 g o t o   e n d _ g i v e n _ r s ; 
 	 	                 e n d ; 
 	 	         e n d ; 
 
 / *   l o z e n g e   c o r n e r s   * / 
 
 	 	     e l s e   i f   c r l   =   1 	 / *   f i r s t   l i n e ?   * / 
 	 	     t h e n 
 	 	         d o ; 
 	 	             c t b . l o p e n   =   c t b . l o p e n   +   1 ; 
 	 	 	 	 / *   o p e n   a   l e f t   s l a n t   r u l e   * / 
 	 	             c t b . o p e n   =   c t b . o p e n   +   1 ; 
 	 	             g o t o   c h e c k _ l s _ t e r m ; 
 	 	         e n d ; 	 	 / *   l o o k   f o r   a   c o n t i n u e d   r u l e   * / 
 	 	     d o   s s y m   =   1   t o   p t b . s c n t 
 	 	               w h i l e   ( 
 	 	               ^ ( ( p t b . l s l n t   ( s s y m )   |   p t b . l s t r t   ( s s y m ) ) 
 	 	               &   p t b . p o s   ( s s y m )   +   o n e E N   =   c t b e . p o s ) ) ; 
 	 	     e n d ; 
 
 	 	     i f   s s y m   < =   p t b . s c n t 
 	 	 	 	 / *   f o u n d   o n e ?   * / 
 	 	     t h e n 
 	 	         d o ; 
 	 	             c t b e . l o z   =   p t b . l o z   ( s s y m ) ; 
 	 	             c t b e . h a d j   =   p t b . h a d j   ( s s y m )   +   E N 3 ; 
 	 	             g o t o   c h e c k _ l s _ t e r m ; 
 	 	         e n d ; 
 
 	 	     c t b . l o p e n   =   c t b . l o p e n   +   1 ; 
 	 	 	 	 / *   c o u n t   a   n e w   s l a n t   r u l e   * / 
 	 	     c t b . o p e n   =   c t b . o p e n   +   1 ; 
 
 c h e c k _ l s _ t e r m : 
 	 	     c t b e . w i d t h   =   o n e E N ; 
 
 	 	     i f   c t b . l o p e n   >   0   &   c t b e . v t e r m 
 	 	     t h e n 
 	 	         d o ; 
 	 	             c t b . o p e n   =   c t b . o p e n   -   1 ; 
 	 	 	 	 / *   i f   a   t e r m i n a t o r ,   a d j u s t   r u l e   c o u n t   * / 
 	 	             c t b . l o p e n   =   c t b . l o p e n   -   1 ; 
 	 	             c t b e . v t e r m   =   " 0 " b ; 
 	 	 	 	 / *   c h a n g e   f l a g   * / 
 	 	             c t b e . l t e r m   =   " 1 " b ; 
 	 	         e n d ; 
 e n d _ g i v e n _ l s : 	 	 	 / *   e n d   g i v e n   l e f t   s l a n t   s y n t a x   * / 
 	 	 e n d ; 
 
 / *   r i g h t   s l a n t s   * / 
 	                 i f   c t b e . r s l n t 
 	                 t h e n 
 	 	 d o ; 
 
 	 	     i f   c t b e . p o s   =   0 	 / *   i f   i n   c o l u m n   1   * / 
 	 	     t h e n 
 	 	         d o ; 
 	 	             c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	 	   " R i g h t   s l a n t   l i n e   v i o l a t e s   l e f t   m a r g i n . " , 
 	 	 	   a d d r   ( t x t l i n . i n f o ) ,   t x t s t r ) ; 
 	 	             s y n t a x _ e r r o r   =   " 1 " b ; 
 	 	             g o t o   s c a n _ c o n t i n u e ; 
 	 	         e n d ; 
 
 	 	     i f   c r l   =   1 	 / *   i f   f i r s t   l i n e   o f   a n   a r t   b l o c k   * / 
 	 	     t h e n 
 	 	         d o ; 
 	 	             c t b . r o p e n   =   c t b . r o p e n   +   1 ; 
 	 	 	 	 / *   o p e n   a   r i g h t   s l a n t   r u l e   * / 
 	 	             c t b . o p e n   =   c t b . o p e n   +   1 ; 
 	 	             g o t o   c h e c k _ r s _ t e r m ; 
 	 	         e n d ; 
 
 	 	     d o   s s y m   =   1   t o   p t b . s c n t 
 	 	 	 	 / *   l o o k   f o r   a   c o n t i n u e d   r u l e   * / 
 	 	               w h i l e   ( 
 	 	               ^ ( ( p t b . r s l n t   ( s s y m )   |   p t b . r s t r t   ( s s y m ) ) 
 	 	               &   p t b . s i z e   ( s s y m )   =   0 
 	 	               &   p t b . p o s   ( s s y m )   -   o n e E N   =   c t b e . p o s ) ) ; 
 	 	     e n d ; 
 
 	 	     i f   s s y m   < =   p t b . s c n t 
 	 	 	 	 / *   f o u n d   o n e ?   * / 
 	 	     t h e n 
 	 	         d o ; 
 	 	             c t b e . l o z   =   p t b . l o z   ( s s y m ) ; 
 	 	             c t b e . h a d j   =   p t b . h a d j   ( s s y m )   -   E N 3 ; 
 	 	             g o t o   c h e c k _ r s _ t e r m ; 
 	 	         e n d ; 
 
 	 	     c t b . r o p e n   =   c t b . r o p e n   +   1 ; 
 	 	 	 	 / *   c o u n t   a   n e w   r i g h t   s l a n t   r u l e   * / 
 	 	     c t b . o p e n   =   c t b . o p e n   +   1 ; 
 
 c h e c k _ r s _ t e r m : 
 	 	     i f   c t b . r o p e n   >   0   &   c t b e . v t e r m 
 	 	     t h e n 
 	 	         d o ; 
 	 	             c t b . o p e n   =   c t b . o p e n   -   1 ; 
 	 	 	 	 / *   i f   a   t e r m i n a t o r ,   a d j u s t   r u l e   c o u n t   * / 
 	 	             c t b . r o p e n   =   c t b . r o p e n   -   1 ; 
 	 	             c t b e . v t e r m   =   " 0 " b ; 
 	 	 	 	 / *   c h a n g e   f l a g   * / 
 	 	             c t b e . r t e r m   =   " 1 " b ; 
 	 	         e n d ; 
 e n d _ g i v e n _ r s : 	 	 	 / *   e n d   g i v e n   r i g h t   s l a n t   s y n t a x   * / 
 	 	 e n d ; 
 
 / *   v e r t i c a l   r u l e s   * / 
 	                 i f   c t b e . v e r t 	 / *   i f   a   v e r t i c a l   r u l e   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     t r a n s _ s t r   = 
 	 	               t r a n s _ s t r 
 	 	               | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   v e r t _ n d x ,   1 ) ; 
 
 	 	     i f   c r l   =   1 	 / *   i f   f i r s t   l i n e   o f   a n   a r t   b l o c k   * / 
 	 	     t h e n 
 	 	         d o ; 	 	 / *   o p e n   a   v e r t i c a l   r u l e   * / 
 	 	             c t b . v o p e n   =   c t b . v o p e n   +   1 ; 
 	 	             c t b . o p e n   =   c t b . o p e n   +   1 ; 
 	 	         e n d ; 
 
 	 	     e l s e 
 	 	         d o ; 	 	 / *   c h e c k   f o r   a   r e d u n d a n t   s y m b o l   * / 
 	 	             d o   s s y m   =   1   t o   p t b . s c n t 
 	 	 	   w h i l e   ( 
 	 	 	   ^ 
 	 	 	   ( ( p t b . v e r t   ( s s y m ) 
 	 	 	   | 
 	 	 	   s u b s t r   ( a d d r   ( p t b . e   ( s s y m ) )   - >   p f l a g s , 
 	 	 	   b o x t l _ n d x ,   6 )   ^ =   " 0 " b )   &   ^ p t b . v t e r m   ( s s y m ) 
 	 	 	   &   p t b . p o s   ( s s y m )   =   c t b e . p o s ) ) ; 
 	 	             e n d ; 	 / * * / 
 	 	 	 	 / *   i f   n o t   r e d u n d a n t   * / 
 	 	             i f   s s y m   >   p t b . s c n t 
 	 	             t h e n 
 	 	                 d o ; 	 / *   o p e n   a   n e w   r u l e   * / 
 	 	 	 c t b . v o p e n   =   c t b . v o p e n   +   1 ; 
 	 	 	 c t b . o p e n   =   c t b . o p e n   +   1 ; 
 	 	                 e n d ; 
 	 	         e n d ; 
 
 	 	     c t b e . w i d t h   =   0 ; 
 	 	     z e r _ a d j   =   1 ; 
 
 	 	     i f   c t b e . d a r o 
 	 	     t h e n   t r a n s _ s t r   = 
 	 	 	     t r a n s _ s t r 
 	 	 	     | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   d a r o _ n d x ,   1 ) ; 
 	 	     i f   c t b e . u p a r o 
 	 	     t h e n   t r a n s _ s t r   = 
 	 	 	     t r a n s _ s t r 
 	 	 	     | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   u p a r o _ n d x ,   1 ) ; 
 	 	 e n d ; 
 
 	                 i f   c t b e . v t e r m   &   ^ c t b e . l s l n t   &   ^ c t b e . r s l n t 
 	                 t h e n 
 	 	 d o ; 
 	 	     t r a n s _ s t r   = 
 	 	               t r a n s _ s t r 
 	 	               | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   v t e r m _ n d x ,   1 ) ; 
 	 	 	 	 / *   c h e c k   f o r   a n   o v e r p r i n t   * / 
 	 	     i f   c r l   >   1   &   c t b . v o p e n   >   0   &   c t b . d e p t h   =   p t b . d e p t h 
 	 	     t h e n 
 	 	         d o ; 
 	 	             d o   s s y m   =   1   t o   p t b . s c n t 
 	 	 	   w h i l e   ( 
 	 	 	   ^ 
 	 	 	   ( ( p t b . v e r t   ( s s y m ) 
 	 	 	   | 
 	 	 	   s u b s t r   ( a d d r   ( p t b . e   ( s s y m ) )   - >   p f l a g s , 
 	 	 	   b o x b l _ n d x ,   3 )   =   " 0 " b )   &   ^ p t b . v t e r m   ( s s y m ) 
 	 	 	   &   p t b . p o s   ( s s y m )   =   c t b e . p o s ) ) ; 
 	 	             e n d ; 
 	 	             i f   s s y m   < =   p t b . s c n t 
 	 	 	 	 / *   i f   i t   o v e r p r i n t s   * / 
 	 	             t h e n   c t b e . b l i n d   =   " 1 " b ; 
 	 	 	 	 / *   m a k e   t h i s   o n e   b l i n d   * / 
 	 	         e n d ; 
 
 	 	     c t b . o p e n   =   c t b . o p e n   -   1 ; 
 	 	     c t b . v o p e n   =   c t b . v o p e n   -   1 ; 
 	 	     c t b e . w i d t h   =   0 ; 
 	 	     z e r _ a d j   =   1 ; 
 	 	     c t b e . v e r t   =   " 1 " b ;   / *   a s s u r e   v e r t   i s   s e t   * / 
 	 	 e n d ; 
 
 / *   c i r c l e s   * / 
 	                 i f   ( c t b e . l p r n   |   c t b e . r p r n )   &   c t b e . s i z e   =   0 
 	 	 	 	 / *   n o t   a   m a t h   s y m b o l   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c o p e n   =   0   &   c t b e . l p r n   &   ^ c t b e . r p r n 
 	 	     t h e n   c o p e n   =   c o p e n   +   1 ; 
 
 	 	     i f   c o p e n   >   0   &   c t b e . r p r n 
 	 	     t h e n   c o p e n   =   c o p e n   -   1 ; 
 	 	     c t b e . w i d t h   =   o n e E N ; 
 	 	     i f   c t b e . l p r n 
 	 	     t h e n   t r a n s _ s t r   = 
 	 	 	     t r a n s _ s t r 
 	 	 	     | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   l p r n _ n d x ,   1 ) ; 
 	 	     i f   c t b e . r p r n 
 	 	     t h e n   t r a n s _ s t r   = 
 	 	 	     t r a n s _ s t r 
 	 	 	     | |   s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   r p r n _ n d x ,   1 ) ; 
 	 	 e n d ; 
 
 / *   d i a m o n d s   * / 
 	                 i f   c t b e . u p a r o   &   ^ c t b e . v e r t 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c t b e . p o s   =   0 	 / *   i f   c o l u m n   1   * / 
 	 	     t h e n 
 	 	         d o ; 
 	 	             c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	 	   " D i a m o n d   t o p   v e r t e x   i n   c o l u m n   1 " , 
 	 	 	   a d d r   ( t x t l i n . i n f o ) ,   t x t s t r ) ; 
 	 	             s y n t a x _ e r r o r   =   " 1 " b ; 
 	 	         e n d ; 
 
 	 	     e l s e 
 	 	         d o ; 	 	 / *   o p e n   a   n e w   d i a m o n d   * / 
 	 	             c t b e . d i a m   =   " 1 " b ; 
 	 	             c t b . o p e n   =   c t b . o p e n   +   1 ; 
 	 	             c t b . d o p e n   =   c t b . d o p e n   +   1 ; 
 	 	             c t b e . w i d t h   =   o n e E N ; 
 	 	         e n d ; 
 	 	 e n d ; 
 
 	                 i f   c t b . d o p e n   >   0 	 / *   o t h e r   d i a m o n d   p a r t s   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c t b e . l a r o 	 / *   i f   a   l e f t   a r r o w   * / 
 	 	               &   ^ ( c t b e . s t a r   |   c t b e . h o r i z 
 	 	 	 	 / *   a n d   n o t   h o r i z   * / 
 	 	               |   c t b e . r a r o )   / *   o r   p o i n t - t o - p o i n t   a r r o w s   * / 
 	 	     t h e n 
 	 	         d o ; 	 	 / *   t h e n   a   d i a m o n d   l e f t   v e r t e x   * / 
 	 	             c t b e . d i a m   =   " 1 " b ; 
 
 	 	             i f   c t b . d o p e n   >   0 
 	 	 	 	 / *   i f   a n y   o p e n ,     * / 
 	 	 	   &   c r l   >   1 / *   a n d   t h i s   n o t   t h e   f i r s t   l i n e ,   * / 
 	 	             t h e n 
 	 	                 d o ; 	 / *   s c a n   p r e v i o u s   l i n e   f o r   a   * / 
 	 	 	 	 / *   d i a m o n d   r i g h t   s l a n t   * / 
 	 	 	 d o   s s y m   =   1   t o   p t b . s c n t 
 	 	 	           w h i l e   ( 
 	 	 	           ^ ( p t b . r s l n t   ( s s y m )   &   p t b . d i a m   ( s s y m ) 
 	 	 	           &   c t b e . p o s   =   p t b . p o s   ( s s y m )   -   o n e E N ) ) ; 
 	 	 	 e n d ; 	 / * * / 
 	 	 	 	 / *   i f   a   r i g h t   s l a n t   w a s   f o u n d   * / 
 	 	 	 i f   s s y m   < =   p t b . s c n t 
 	 	 	 t h e n   c t b e . h a d j   =   p t b . h a d j   ( s s y m )   -   E N 6 ; 
 	 	                 e n d ; 
 	 	             c t b e . w i d t h   =   o n e E N ; 
 	 	         e n d ; 	 	 / * * 
 	 	 	 	 / *   i f   a   r i g h t   a r r o w   * / 
 	 	     i f   c t b e . r a r o 	 / *   &   n o t   h o r i z   * / 
 	 	               &   ^ c t b e . s t a r   &   ^ c t b e . h o r i z 
 	 	     t h e n 
 	 	         d o ; 	 	 / *   i t s   a   d i a m o n d   r i g h t   v e r t e x   * / 
 	 	             c t b e . d i a m   =   " 1 " b ; 
 	 	 	 	 / *   i f   a n y   d i a m o n d s   o p e n ,   a n d   * / 
 	 	 	 	 / *   t h i s   i s n t   t h e   f i r s t   l i n e ,   * / 
 	 	 	 	 / *   s c a n   p r e v i o u s   l i n e   f o r   a   * / 
 	 	 	 	 / *   f o r   a   d i a m o n d   l e f t   s l a n t   * / 
 	 	             i f   c t b . d o p e n   >   0   &   c r l   >   1 
 	 	             t h e n 
 	 	                 d o ; 
 	 	 	 d o   s s y m   =   1   t o   p t b . s c n t 
 	 	 	           w h i l e   ( 
 	 	 	           ^ ( ( p t b . l s l n t   ( s s y m ) )   &   p t b . d i a m   ( s s y m ) 
 	 	 	           &   c t b e . p o s   =   p t b . p o s   ( s s y m )   +   o n e E N ) ) ; 
 	 	 	 e n d ; 	 / * * / 
 	 	 	 	 / *   i f   o n e   w a s   f o u n d   * / 
 	 	 	 i f   s s y m   < =   p t b . s c n t 
 	 	 	 t h e n   c t b e . h a d j   =   p t b . h a d j   ( s s y m )   -   E N 6 ; 
 	 	                 e n d ; 
 	 	             c t b e . w i d t h   =   o n e E N ; 
 	 	         e n d ; 
 
 	 	     i f   c t b . d o p e n   >   0   &   c t b e . d a r o   &   ^ c t b e . v e r t 
 	 	     t h e n 
 	 	         d o ; 
 	 	             c t b e . d i a m   =   " 1 " b ; 
 	 	             c t b e . w i d t h   =   o n e E N ; 
 	 	             c t b . o p e n   =   c t b . o p e n   -   1 ; 
 	 	             c t b . d o p e n   =   c t b . d o p e n   -   1 ; 
 	 	         e n d ; 
 	 	 e n d ; 
 	             e n d ; 	 	 / *   l i n e   a r t   s y n t a x   c h e c k   * / 
 
 d b _ p r : 	 	 	 	 / *   i t s   a   v a l i d   s y m b o l   * / 
 	         p r s _ p o s   =   c t b e . p o s ; 	 / *   +   c t b e . h a d j ; * / 
 	         p r s _ w i d t h   =   c t b e . w i d t h ; 	 / * * / 
 	 	 	 	 / *   t r a n s l a t e   a r t   c o n s t r u c t   t o   P A D s   * / 
 	         s u b s t r   ( t m p s t r ,   c r x ,   s c n d x   -   c r x   +   1 )   = 
 	                   t r a n s l a t e   ( s u b s t r   ( t m p s t r ,   c r x ,   s c n d x   -   c r x   +   1 ) , 
 	                   h i g h   ( l e n g t h   ( t r a n s _ s t r ) ) ,   t r a n s _ s t r ) ; 
 	 	 	 	 / *   i s   t h e r e   a n   o v e r s t r i k e ?   * / 
 	         i f   s u b s t r   ( t m p s t r ,   c r x ,   s c n d x   -   c r x   +   1 ) 
 	                   ^ =   h i g h   ( s c n d x   -   c r x   +   1 ) 
 	         t h e n   p a d _ a d j   =   1 ; 
 	         i f   v e r i f y   ( s u b s t r   ( t m p s t r ,   c r x ) ,   P A D )   >   0 
 	         t h e n   p r x   =   c r x   +   v e r i f y   ( s u b s t r   ( t m p s t r ,   c r x ) ,   P A D )   -   2 ; 
 
 	         i f   d e t a i l _ s w 
 	         t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   ^ f   ( h ^ f   b ^ f   w ^ f   z ^ d   p ^ d )   ^ a " ,   c r s , 
 	 	         s h o w   ( p r s _ p o s ,   1 2 0 0 0 ) ,   s h o w   ( c t b e . h a d j ,   1 2 0 0 0 ) , 
 	 	         s h o w   ( c t b e . b a s e ,   1 2 0 0 0 ) ,   s h o w   ( c t b e . w i d t h ,   1 2 0 0 0 ) , 
 	 	         z e r _ a d j ,   p a d _ a d j ,   s y m b s t r ) ; 
 	         c t b . s c n t   =   c r s ; 
 	         c r s   =   c r s   +   1 ; 	 	 / *   a d v a n c e   t o   n e x t   e n t r y   * / 
 	         c p t r   =   a d d r   ( c t b . e   ( c r s ) ) ; 
 	         u n s p e c   ( c t b . e   ( c r s ) )   =   " " b ; 
 
 s c a n _ c o n t i n u e : 	 	 	 / *   f i n d   n e x t   B S P   o r   D C 1   * / 
 	         j   =   s e a r c h   ( s u b s t r   ( t m p s t r ,   s c n d x   +   1 ) ,   B S P   | |   D C 1 ) ; 
 
 	         i f   j   >   0 	 	 / *   i f   t h e r e   i s   o n e   * / 
 	         t h e n 
 	             d o ; 	 	 	 / * * / 
 	 	 	 	 / *   i f   i t s   D C 1   * / 
 	                 i f   s u b s t r   ( t m p s t r ,   s c n d x   +   j ,   1 )   =   D C 1 
 	                 t h e n 
 	 	 d o ; 	 	 / *   s t e p   o v e r   d e v   c t l   s t r i n g   * / 
 	 	     s c n d x   =   s c n d x 
 	 	               +   r a n k   ( s u b s t r   ( t m p s t r ,   s c n d x   +   j   +   2 ,   1 ) )   +   j   +   2 ; 
 	 	     g o t o   s c a n _ c o n t i n u e ; 
 	 	 e n d ; 
 
 	                 s c n d x ,   c r x   =   s c n d x   +   j   -   1 ; 
 	 	 	 	 / *   s e t   i n d e x   t o   n e x t   a r t w o r k   c h a r   * / 
 	             e n d ; 
 
 	         e l s e   c r x   =   l e n g t h   ( t m p s t r )   +   1 ; 
 	 	 	 	 / *   a i n t   n o   m o r e   * / 
 	     e n d   s c a n _ l o o p ; 
 	 e n d ; 
 
                 i f   c r x   >   1   &   c r x   <   l e n g t h   ( t m p s t r ) 
 	 	 	 	 / *   c h e c k   s y m b o l   c o u n t   l i m i t   * / 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	               " I m p l e m e n t a t i o n   r e s t r i c t i o n .   " 
 	               | |   " N o   m o r e   t h a n   1 0 0   s y m b o l s   i n   a   l i n e . " ,   a d d r   ( t x t l i n . i n f o ) , 
 	               t x t s t r ) ; 
 	     s y n t a x _ e r r o r   =   " 1 " b ; 
 	     g o t o   b u i l d ; 	 	 / *   g o   b u i l d   w h a t   w e   h a v e   * / 
 	 e n d ; 
 
 / *   a n y   t r a i l i n g   t e x t ?   * / 
                 i f   l e n g t h   ( t m p s t r )   >   p r x 	 / *   a n y t h i n g   a f t e r   t h e   l a s t   s y m b o l ?   * / 
                 t h e n 
 	 d o ; 
 	     j   =   v e r i f y   ( s u b s t r   ( t m p s t r ,   / *   s c a n   f o r   1 s t   n o n - b l a n k   s i n c e   * / 
 	               p r x   +   1 ) ,   "   "   | |   P A D ) ;   / *   l a s t   s y m b o l   * / 
 
 	     i f   j   >   0 
 	     t h e n 
 	         d o ; 	 	 	 / *   a d d   e n t r y   f o r   t r a i l i n g   t e x t   * / 
 	             c r s ,   c t b . s c n t   =   c t b . s c n t   +   1 ; 
 	             c p t r   =   a d d r   ( c t b . e   ( c r s ) ) ; 
 	             u n s p e c   ( c t b . e   ( c r s ) )   =   " " b ; 
 	 	 	 	 / *   a n d   c l e a r   i t   * / 
 	             c t b e . t e x t   =   " 1 " b ; 	 / *   s e t   t e x t   e n t r y   f l a g   * / 
 	             c t b e . b a s e   =   b a s e ; 	 / *   s e t   b a s e l i n e   o f f s e t   * / 
 
 	             c t b e . t s t r t   =   p r x   +   j ; 	 / *   i n p u t   s t a r t   * / 
 	             c t b e . l e n   =   l e n g t h   ( t m p s t r )   -   p r x   -   j   +   1 ; 
 
 	             i f   ^ ( c t b . s c n t   =   1   &   c t b e . t e x t )   |   c t b e . w i d t h   =   0 
 	             t h e n 
 	                 d o ; 
 	 	 u n s p e c   ( m e a s 1 )   =   " 0 " b ; 
 	 	 c a l l   c o m p _ m e a s u r e _   ( s u b s t r   ( t m p s t r ,   c t b e . t s t r t ) , 
 	 	           a d d r   ( t x t l i n . f o n t ) ,   ( t x t l i n . q u a d   =   j u s t ) ,   " 1 " b , 
 	 	           t x t l i n . q u a d ,   b i n   ( t x t l i n . q u a d   =   j u s t )   *   t x t l i n . n e t , 
 	 	           a d d r   ( m e a s 1 ) ,   a d d r   ( m e a s 2 ) ,   a d d r   ( t x t l i n . i n f o ) ) ; 
 	 	 c t b e . w i d t h   =   m e a s 1 . w i d t h   +   m e a s 1 . a v g ; 
 	                 e n d ; 
 	             e l s e   m e a s 1   =   t x t l i n . c u r ; 
 
 	             c t b e . w i d t h   =   m e a s 1 . w i d t h ; 
 	 	 	 	 / *   e f f e c t i v e   t e x t   w i d t h   * / 
 	             c t b e . w s p   =   m e a s 1 . a v g ; 	 / * * / 
 	 	 	 	 / *   s e t   o u t p u t   p o s i t i o n   * / 
 	             i f   t x t l i n . q u a d   =   q u a d r 	 / *   s e t t i n g   r i g h t   * / 
 	             t h e n   c t b e . p o s   =   p r s _ p o s   +   t x t l i n . n e t   -   c t b e . w i d t h   -   c t b e . w s p ; 
 	 	 	 	 / *   s e t t i n g   c e n t e r   * / 
 	             e l s e   i f   t x t l i n . q u a d   =   q u a d c 
 	             t h e n   c t b e . p o s   = 
 	 	             p r s _ p o s 
 	 	             +   c o m p _ d v t . m i n _ W S 
 	 	             * 
 	 	             r o u n d   ( 
 	 	             d i v i d e   ( t x t l i n . n e t   -   m e a s 1 . w i d t h   -   c t b e . w s p , 
 	 	             2   *   c o m p _ d v t . m i n _ W S ,   1 7 ,   1 ) ,   0 ) ; 
 
 	             e l s e   c t b e . p o s   = 	 / *   s e t t i n g   l e f t   o r   j u s t f i f y i n g   * / 
 	 	             p r s _ p o s   +   p r s _ w i d t h 
 	 	             +   o n e E N   *   ( j   -   1   +   z e r _ a d j   -   p a d _ a d j ) ; 
 
 	             i f   c t b . s c n t   >   1   |   c t b . o p e n   >   0 
 	             t h e n   i f   t x t l i n . q u a d   ^ =   j u s t 
 	 	   t h e n   t x t l i n . q u a d   =   q u a d l ; 
 
 	             i f   d e t a i l _ s w 
 	             t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   ^ f   ( h ^ f   w ^ f )   ^ d   " " ^ a " " " ,   c r s , 
 	 	             s h o w   ( c t b e . p o s ,   1 2 0 0 0 ) ,   s h o w   ( c t b e . h a d j ,   1 2 0 0 0 ) , 
 	 	             s h o w   ( c t b e . w i d t h ,   1 2 0 0 0 ) ,   c t b e . l e n , 
 	 	             c o m p _ u t i l _ $ d i s p l a y   ( 
 	 	             s u b s t r   ( t m p s t r ,   c t b e . t s t r t ,   c t b e . l e n ) ,   0 ,   " 0 " b ) ) ; 
 	         e n d ; 
 	 e n d ; 
 % p a g e ; 
 / *   F I N A L   S Y N T A X   C H E C K   F O R   L I N E   A R T   * / 
 
 / *   h o r i z o n t a l s   * / 
                 i f   h o p e n 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " U n t e r m i n a t e d   h o r i z o n a l   l i n e . " , 
 	               a d d r   ( t x t l i n . i n f o ) ,   t x t s t r ) ; 
 	     c t b e . s t a r   =   " 1 " b ; 	 	 / *   t e r m   i t   * / 
 	     s y n t a x _ e r r o r   =   " 1 " b ; 
 	     h o p e n   =   " 0 " b ; 	 	 / *   c l o s e   t h e   o p e n   l i n e   * / 
 	 e n d ; 
 
 / *   c i r c l e s   * / 
                 i f   c o p e n   >   0 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " M i s s i n g   r i g h t   s e m i - c i r c l e ( s ) . " , 
 	               a d d r   ( t x t l i n . i n f o ) ,   t x t s t r ) ; 
 	     s y n t a x _ e r r o r   =   " 1 " b ; 
 	     c o p e n   =   0 ; 	 	 / *   c l o s e   i t   * / 
 	 e n d ; 
 
 / *   e m p t y   l i n e   -   a l l   l i n e s   c o n t i n u e d   * / 
                 i f   c t b . s c n t   =   0 
                 t h e n 
 	 d o ; 
 	     c p t r   =   a d d r   ( c t b . e   ( 1 ) ) ; 	 / *   c l e a r   1 s t   t e x t   e n t r y   * / 
 	     u n s p e c   ( c t b e )   =   " 0 " b ; 
 
 	     i f   d e t a i l _ s w 
 	     t h e n   c a l l   i o a _   ( " ^ - 1 -   ^ f   B l a n k   l i n e " ,   s h o w   ( c t b e . p o s ,   1 2 0 0 0 ) ) ; 
 	 e n d ; 
 
 / *   i f   a n y   o p e n   l i n e a r t   s t u f f   * / 
                 i f   c t b . o p e n   >   0   &   c r l   >   1 
                 t h e n 
 	 d o ; 
 
 / *   v e r t i c a l s   * / 
 	     i f   c t b . v o p e n   >   0 	 	 / *   i f   t h e r e   a r e   s t i l l   s o m e   o p e n   * / 
 	     t h e n 
 	         d o   s s y m   =   1   t o   p t b . s c n t ; 	 / *   s c a n   p r e v i o u s   l i n e   * / 
 
 	             i f   ( p t b . v e r t   ( s s y m ) 
 	 	   |   s u b s t r   ( a d d r   ( p t b . e   ( s s y m ) )   - >   p f l a g s ,   b o x t l _ n d x ,   6 ) 
 	 	   ^ =   " 0 " b )   &   ^ p t b . v t e r m   ( s s y m ) 
 	             t h e n 
 	                 d o ; 	 	 / *   f o r   e a c h   o n e   f o u n d ,   l o o k   f o r   a   * / 
 	 	 	 	 / *   m a t c h i n g   o n e   i n   c u r r e n t   l i n e   * / 
 	 	 d o   i   =   1   t o   c t b . s c n t 
 	 	           w h i l e   ( 
 	 	           ^ 
 	 	           ( ( c t b . v e r t   ( i ) 
 	 	           |   s u b s t r   ( a d d r   ( c t b . e   ( i ) )   - >   c f l a g s ,   b o x l _ n d x ,   6 ) 
 	 	           ^ =   " 0 " b )   &   c t b . p o s   ( i )   =   p t b . p o s   ( s s y m ) ) ) ; 
 	 	 e n d ; 
 
 	 	 i f   i   >   c t b . s c n t 	 / *   i f   n o   m a t c h ,   a d d   a   v e r t i c a l   * / 
 	 	 t h e n 
 	 	     d o ; 
 	 	         c r s ,   c t b . s c n t   =   i ; 
 	 	         c p t r   =   a d d r   ( c t b . e   ( c r s ) ) ; 
 	 	         u n s p e c   ( c t b . e   ( c r s ) )   =   " " b ; 
 	 	 	 	 / *   c l e a r   a n   e n t r y   * / 
 	 	         c t b e . v e r t   =   " 1 " b ; 
 	 	         c t b e . p o s   =   p t b . p o s   ( s s y m ) ; 
 	 	         c t b e . b a s e   =   p t b . b a s e   ( s s y m ) ; 
 	 	         c t b e . b l i n d   = 	 / *   m a k e   i t   b l i n d   i f   i t   o v e r p r i n t s   * / 
 	 	                   c t b . d e p t h   =   p t b . d e p t h ; 
 	 	     e n d ; 
 	                 e n d ; 
 	         e n d ; 
 
 / *   d i a m o n d s   * / 
 	     i f   c t b . d o p e n   >   0 	 	 / *   i f   t h e r e   a r e   s t i l l   d i a m o n d s   o p e n   * / 
 	     t h e n 
 	         d o   s s y m   =   1   t o   p t b . s c n t ; 	 / *   s e a r c h   p r e v i o u s   l i n e   f o r   * / 
 	             i f   p t b . d i a m   ( s s y m ) 	 / *   d i a m o n d   p a r t s   * / 
 	             t h e n 
 	                 d o ; 
 
 / *   d i a m o n d   t o p   v e r t i c e s   * / 
 	 	 i f   p t b . u p a r o   ( s s y m )   &   ^ p t b . d a r o   ( s s y m ) 
 	 	 t h e n 
 	 	     d o ; 
 	 	         i f   c t b . s c n t   >   0   / *   l o o k   f o r   r e d u n d a n t   * / 
 	 	         t h e n 	 	 / *   l e f t   s i d e   s y m b o l   * / 
 	 	             d o   i   =   1   t o   c t b . s c n t 
 	 	 	   w h i l e   ( 
 	 	 	   ^ ( ( c t b . r s l n t   ( i )   |   c t b . l a r o   ( i ) ) 
 	 	 	   &   c t b . p o s   ( i )   =   p t b . p o s   ( s s y m )   -   o n e E N ) 
 	 	 	   & 
 	 	 	   ^ ( c t b . d a r o   ( i )   &   c t b . p o s   ( i )   =   p t b . p o s   ( s s y m ) ) ) ; 
 	 	             e n d ; 
 	 	         e l s e   i   =   1 ; 
 
 	 	         i f   i   >   c t b . s c n t   / *   i f   a   n e w   s y m b o l   i s   n e e d e d   * / 
 	 	         t h e n 
 	 	             d o ; 
 	 	                 c r s ,   c t b . s c n t   =   i ; 
 	 	                 c p t r   =   a d d r   ( c t b . e   ( c r s ) ) ; 
 	 	                 u n s p e c   ( c t b e )   =   " " b ; 
 
 	 	                 i f   t x t l i n . l i n e s p a c e   =   0 
 	 	                 t h e n 
 	 	 	 d o ; 
 	 	 	     c t b e   =   p t b . e   ( s s y m ) ; 
 	 	 	     c t b e . b l i n d   =   " 1 " b ; 
 	 	 	 e n d ; 
 
 	 	                 e l s e 
 	 	 	 d o ; 	 / *   u p p e r   l e f t   s i d e   * / 
 	 	 	     c t b e . r s l n t ,   c t b e . d i a m   =   " 1 " b ; 
 	 	 	     c t b e . p o s   =   p t b . p o s   ( s s y m )   -   o n e E N ; 
 	 	 	     c t b e . h a d j   =   p t b . h a d j   ( s s y m )   -   E N 6 ; 
 	 	 	 e n d ; 
 	 	             e n d ; 	 / * * / 
 	 	 	 	 / *   l o o k   f o r   r e d u n d a n t   * / 
 	 	         i f   c t b . s c n t   >   0   / *   r i g h t   s i d e   s y m b o l   * / 
 	 	         t h e n 
 	 	             d o   i   =   1   t o   c t b . s c n t 
 	 	 	   w h i l e   ( 
 	 	 	   ^ ( ( c t b . l s l n t   ( i )   |   c t b . r a r o   ( i ) ) 
 	 	 	   &   c t b . p o s   ( i )   =   p t b . p o s   ( s s y m )   +   o n e E N ) 
 	 	 	   & 
 	 	 	   ^ ( c t b . d a r o   ( i )   &   c t b . p o s   ( i )   =   p t b . p o s   ( s s y m ) ) ) ; 
 	 	             e n d ; 
 	 	         e l s e   i   =   1 ; 
 
 	 	         i f   i   >   c t b . s c n t   / *   i f   a   n e w   s y m b o l   i s   n e e d e d   * / 
 	 	         t h e n 
 	 	             d o ; 
 	 	                 c r s ,   c t b . s c n t   =   i ; 
 	 	                 c p t r   =   a d d r   ( c t b . e   ( c r s ) ) ; 
 	 	                 u n s p e c   ( c t b e )   =   " " b ; 
 
 	 	                 i f   t x t l i n . l i n e s p a c e   =   0 
 	 	                 t h e n 
 	 	 	 d o ; 
 	 	 	     c t b e   =   p t b . e   ( s s y m ) ; 
 	 	 	     c t b e . b l i n d   =   " 1 " b ; 
 	 	 	 e n d ; 
 
 	 	                 e l s e 
 	 	 	 d o ; 	 / *   u p p e r   r i g h t   s i d e   * / 
 	 	 	     c t b e . l s l n t ,   c t b e . d i a m   =   " 1 " b ; 
 	 	 	     c t b e . p o s   =   p t b . p o s   ( s s y m )   +   o n e E N ; 
 	 	 	     c t b e . h a d j   =   p t b . h a d j   ( s s y m )   +   E N 3 ; 
 	 	 	 e n d ; 
 	 	             e n d ; 
 	 	     e n d ; 
 
 / *   d i a m o n d   r i g h t   s l a n t s   * / 
 	 	 i f   p t b . r s l n t   ( s s y m ) 
 	 	 t h e n 
 	 	     d o ; 
 	 	         i f   c t b . s c n t   >   0 
 	 	         t h e n 
 	 	             d o   i   =   1   t o   c t b . s c n t 
 	 	 	   w h i l e   ( 
 	 	 	   ^ ( ( c t b e . r s l n t   |   c t b . l a r o   ( i )   |   c t b . d a r o   ( i ) ) 
 	 	 	   &   c t b . p o s   ( i )   =   p t b . p o s   ( s s y m )   -   o n e E N ) ) ; 
 	 	             e n d ; 
 	 	         e l s e   i   =   1 ; 
 
 	 	         i f   i   >   c t b . s c n t   / *   n e w   s y m b o l   * / 
 	 	         t h e n 
 	 	             d o ; 
 	 	                 c r s ,   c t b . s c n t   =   i ; 
 	 	                 c p t r   =   a d d r   ( c t b . e   ( c r s ) ) ; 
 
 	 	                 i f   t x t l i n . l i n e s p a c e   =   0 
 	 	                 t h e n 
 	 	 	 d o ; 
 	 	 	     c t b e   =   p t b . e   ( s s y m ) ; 
 	 	 	     c t b e . b l i n d   =   " 1 " b ; 
 	 	 	 e n d ; 
 
 	 	                 e l s e 
 	 	 	 d o ; 
 	 	 	     u n s p e c   ( c t b . e   ( c r s ) )   =   " " b ; 
 	 	 	 	 / *   c l e a r   a n   e n t r y   * / 
 	 	 	     i f   p t b . p o s   ( s s y m )   =   0 
 	 	 	     t h e n 
 	 	 	         d o ; 
 	 	 	             c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	 	 	   " D i a m o n d   v i o l a t e s   l e f t   m a r g i n . " , 
 	 	 	 	   a d d r   ( t x t l i n . i n f o ) ,   t x t s t r ) ; 
 	 	 	             c t b . d o p e n   =   c t b . d o p e n   -   1 ; 
 	 	 	             c t b . o p e n   =   c t b . o p e n   -   1 ; 
 	 	 	             s y n t a x _ e r r o r   =   " 1 " b ; 
 	 	 	         e n d ; 
 
 	 	 	     e l s e 
 	 	 	         d o ; 
 	 	 	             c t b e . r s l n t ,   c t b e . d i a m   =   " 1 " b ; 
 	 	 	             c t b e . p o s   =   p t b . p o s   ( s s y m )   -   o n e E N ; 
 	 	 	             c t b e . h a d j   =   p t b . h a d j   ( s s y m )   -   E N 3 ; 
 	 	 	             c t b e . b a s e   =   p t b . b a s e   ( s s y m ) ; 
 	 	 	         e n d ; 
 	 	 	 e n d ; 
 	 	             e n d ; 
 	 	     e n d ; 
 
 / *   d i a m o n d   l e f t   s l a n t s   * / 
 	 	 i f   p t b . l s l n t   ( s s y m ) 
 	 	 t h e n 
 	 	     d o ; 
 
 	 	         i f   c t b . s c n t   >   0 
 	 	         t h e n 	 	 / *   l o o k   f o r   p r e v i o u s   l e f t   s l a n t   * / 
 	 	             d o   i   =   1   t o   c t b . s c n t 
 	 	 	   w h i l e   ( 
 	 	 	   ^ ( ( c t b . l s l n t   ( i )   |   c t b . r a r o   ( i )   |   c t b . d a r o   ( i ) ) 
 	 	 	   &   c t b . p o s   ( i )   =   p t b . p o s   ( s s y m )   +   o n e E N ) ) ; 
 	 	             e n d ; 
 	 	         e l s e   i   =   1 ; 
 
 	 	         i f   i   >   c t b . s c n t   / *   n e w   s y m b o l   * / 
 	 	         t h e n 
 	 	             d o ; 
 	 	                 c r s ,   c t b . s c n t   =   i ; 
 	 	                 c p t r   =   a d d r   ( c t b . e   ( c r s ) ) ; 
 
 	 	                 i f   t x t l i n . l i n e s p a c e   =   0 
 	 	                 t h e n 
 	 	 	 d o ; 
 	 	 	     c t b e   =   p t b . e   ( s s y m ) ; 
 	 	 	     c t b e . b l i n d   =   " 1 " b ; 
 	 	 	 e n d ; 
 
 	 	                 e l s e 
 	 	 	 d o ; 
 	 	 	     u n s p e c   ( c t b . e   ( c r s ) )   =   " " b ; 
 	 	 	 	 / *   c l e a r   a n   e n t r y   * / 
 	 	 	     c t b e . l s l n t ,   c t b e . d i a m   =   " 1 " b ; 
 	 	 	     c t b e . p o s   =   p t b . p o s   ( s s y m )   +   o n e E N ; 
 	 	 	     c t b e . h a d j   =   p t b . h a d j   ( s s y m )   +   E N 3 ; 
 	 	 	     c t b e . b a s e   =   p t b . b a s e   ( s s y m ) ; 
 	 	 	 e n d ; 
 	 	             e n d ; 
 	 	     e n d ; 
 
 / *   d i a m o n d   l e f t   v e r t i c e s   * / 
 	 	 i f   s s y m   <   p t b . s c n t 
 	 	 t h e n   i f   p t b . l a r o   ( s s y m )   &   ^ p t b . h o r i z   ( s s y m ) 
 	 	 	 & 
 	 	 	 ^ ( p t b . r a r o   ( s s y m   +   1 ) 
 	 	 	 &   p t b . p o s   ( s s y m )   =   p t b . p o s   ( s s y m   +   1 )   -   o n e E N ) 
 	 	           t h e n 
 	 	               d o ; 
 	 	                   i f   c t b . s c n t   >   0 
 	 	                   t h e n 	 / *   l o o k   f o r   b o t t o m   v e r t e x   * / 
 	 	 	 	 / *   i n   t h i s   l i n e   * / 
 	 	 	   d o   i   =   1   t o   c t b . s c n t 
 	 	 	             w h i l e   ( 
 	 	 	             ^ ( c t b . d a r o   ( i ) 
 	 	 	             &   c t b . p o s   ( i )   =   p t b . p o s   ( s s y m )   +   o n e E N ) ) ; 
 	 	 	   e n d ; 
 	 	                   e l s e   i   =   1 ; / * * / 
 	 	 	 	 / *   n o   b o t t o m ,   a d d   a   l e f t   s l a n t   * / 
 	 	                   i f   i   >   c t b . s c n t 
 	 	                   t h e n 
 	 	 	   d o ; 
 	 	 	       c r s ,   c t b . s c n t   =   i ; 
 	 	 	       c p t r   =   a d d r   ( c t b . e   ( c r s ) ) ; 
 	 	 	       u n s p e c   ( c t b e )   =   " " b ; 
 
 	 	 	       i f   t x t l i n . l i n e s p a c e   =   0 
 	 	 	       t h e n 
 	 	 	           d o ; 
 	 	 	               c t b e   =   p t b . e   ( s s y m ) ; 
 	 	 	               c t b e . b l i n d   =   " 1 " b ; 
 	 	 	           e n d ; 
 
 	 	 	       e l s e 
 	 	 	           d o ; 
 	 	 	               c t b e . l s l n t ,   c t b e . d i a m   =   " 1 " b ; 
 	 	 	               c t b e . p o s   =   p t b . p o s   ( s s y m )   +   o n e E N ; 
 	 	 	               c t b e . h a d j   =   p t b . h a d j   ( s s y m )   +   E N 3 ; 
 	 	 	               c t b e . b a s e   =   p t b . b a s e   ( s s y m ) ; 
 	 	 	           e n d ; 
 	 	 	   e n d ; 
 	 	               e n d ; 
 
 / *   d i a m o n d   r i g h t   v e r t i c e s   * / 
 	 	 i f   s s y m   >   1 	 / *   m u s t   b e   l e f t   v e r t e x   o n   s a m e   l i n e   * / 
 	 	 t h e n   i f   p t b . r a r o   ( s s y m )   &   ^ p t b . h o r i z   ( s s y m ) 
 	 	 	 & 
 	 	 	 ^ ( p t b . l a r o   ( s s y m   -   1 ) 
 	 	 	 &   p t b . p o s   ( s s y m )   =   p t b . p o s   ( s s y m   -   1 )   +   o n e E N ) 
 	 	           t h e n 
 	 	               d o ; 	 / * * / 
 	 	 	 	 / *   l o o k   f o r   b o t t o m   v e r t e x   * / 
 	 	 	 	 / *   o n   t h i s   l i n e   * / 
 	 	                   i f   c t b . s c n t   >   0 
 	 	                   t h e n 
 	 	 	   d o   i   =   1   t o   c t b . s c n t 
 	 	 	             w h i l e   ( 
 	 	 	             ^ ( c t b . d a r o   ( i ) 
 	 	 	             &   c t b . p o s   ( i )   =   p t b . p o s   ( s s y m )   -   o n e E N ) ) ; 
 	 	 	   e n d ; 
 	 	                   e l s e   i   =   1 ; / * * / 
 	 	 	 	 / *   i f   n o   b o t t o m   a d d   a   r i g h t   s l a n t   * / 
 	 	                   i f   i   >   c t b . s c n t 
 	 	                   t h e n 
 	 	 	   d o ; 
 	 	 	       c r s ,   c t b . s c n t   =   i ; 
 	 	 	       c p t r   =   a d d r   ( c t b . e   ( c r s ) ) ; 
 	 	 	       u n s p e c   ( c t b . e   ( c r s ) )   =   " " b ; 
 
 	 	 	       i f   t x t l i n . l i n e s p a c e   =   0 
 	 	 	       t h e n 
 	 	 	           d o ; 
 	 	 	               c t b e   =   p t b . e   ( s s y m ) ; 
 	 	 	               c t b e . b l i n d   =   " 1 " b ; 
 	 	 	           e n d ; 
 
 	 	 	       e l s e 
 	 	 	           d o ; 
 	 	 	               c t b e . r s l n t ,   c t b e . d i a m   =   " 1 " b ; 
 	 	 	               c t b e . p o s   =   p t b . p o s   ( s s y m )   -   o n e E N ; 
 	 	 	               c t b e . h a d j   =   p t b . h a d j   ( s s y m )   -   E N 6 ; 
 	 	 	               c t b e . b a s e   =   p t b . b a s e   ( s s y m ) ; 
 	 	 	           e n d ; 
 	 	 	   e n d ; 
 	 	               e n d ; 
 	                 e n d ; 
 	         e n d ; 
 
 / *   l e f t   s l a n t s   * / 
 	     i f   c t b . l o p e n   >   0 	 	 / *   i f   t h e r e   a r e   s t i l l   s o m e   o p e n   * / 
 	     t h e n 
 	         d o   s s y m   =   1   t o   p t b . s c n t ; 	 / *   s c a n   p r e v i o u s   l i n e   * / 
 	             i f   ( p t b . l s l n t   ( s s y m )   |   p t b . l o z t r   ( s s y m )   |   p t b . l o z l   ( s s y m ) ) 
 	 	   &   ^ p t b . l t e r m   ( s s y m )   &   ^ p t b . d i a m   ( s s y m ) 
 	             t h e n 
 	                 d o ; 
 
 	 	 i f   c t b . s c n t   >   0 	 / *   l o o k   f o r   a   r e d u n d a n t   s y m b o l   * / 
 	 	 t h e n 
 	 	     d o   i   =   1   t o   c t b . s c n t 
 	 	               w h i l e   ( 
 	 	               ^ 
 	 	               ( ( c t b . l s l n t   ( i )   |   c t b . l o z r   ( i ) 
 	 	               |   c t b . l o z b l   ( i )   &   p t b . l o z l   ( s s y m ) ) 
 	 	               &   c t b . p o s   ( i )   =   p t b . p o s   ( s s y m )   +   o n e E N 
 	 	               |   c t b . l o z b l   ( i )   &   p t b . l s l n t   ( s s y m ) 
 	 	               &   c t b . p o s   ( i )   =   p t b . p o s   ( s s y m )   +   2   *   o n e E N ) ) ; 
 	 	     e n d ; 
 	 	 e l s e   i   =   1 ; 
 
 	 	 i f   i   >   c t b . s c n t 	 / *   n e e d   a n   a d d e d   s y m b o l   * / 
 	 	 t h e n 
 	 	     d o ; 
 	 	         c r s ,   c t b . s c n t   =   i ; 
 	 	 	 	 / *   c o u n t   t h e   n e w   s y m b o l   * / 
 	 	         c p t r   =   a d d r   ( c t b . e   ( c r s ) ) ; 
 
 	 	         i f   t x t l i n . l i n e s p a c e   =   0 
 	 	         t h e n 
 	 	             d o ; 
 	 	                 c t b e   =   p t b . e   ( s s y m ) ; 
 	 	                 c t b e . b l i n d   =   " 1 " b ; 
 	 	             e n d ; 
 
 	 	         e l s e 
 	 	             d o ; 
 	 	                 u n s p e c   ( c t b . e   ( c r s ) )   =   " " b ; 
 	 	 	 	 / *   c l e a r   a n   e n t r y   * / 
 	 	                 c t b e . l s l n t   =   " 1 " b ; 
 	 	 	 	 / *   s e t   f l a g s   * / 
 	 	                 c t b e . l o z   =   p t b . l o z   ( s s y m ) ; 
 
 	 	                 i f   p t b . l o z l   ( s s y m ) 
 	 	 	 	 / *   a   l o z e n g e   v e r t e x ?   * / 
 	 	                 t h e n 
 	 	 	 d o ; 
 	 	 	     c t b e . p o s   =   p t b . p o s   ( s s y m ) ; 
 	 	 	 	 / *   v e r t e x   * / 
 	 	 	     c t b e . h a d j   =   p t b . h a d j   ( s s y m )   +   E N 6 ; 
 	 	 	 e n d ; 
 
 	 	                 e l s e 
 	 	 	 d o ; 
 	 	 	     c t b e . p o s   =   p t b . p o s   ( s s y m )   +   o n e E N ; 
 	 	 	     c t b e . h a d j   =   p t b . h a d j   ( s s y m )   +   E N 3 ; 
 	 	 	 e n d ; 
 	 	                 c t b e . b a s e   =   p t b . b a s e   ( s s y m ) ; 
 	 	 	 	 / *   s e t   b a s e l i n e   * / 
 	 	             e n d ; 
 	 	     e n d ; 
 	                 e n d ; 
 	         e n d ; 
 
 / *   r i g h t   s l a n t s   * / 
 	     i f   c t b . r o p e n   >   0 	 	 / *   i f   t h e r e   a r e   s t i l l   s o m e   o p e n   * / 
 	     t h e n 
 	         d o   s s y m   =   1   t o   p t b . s c n t ; 	 / *   s e a r c h   p r e v i o u s   l i n e   * / 
 	             i f   ( p t b . r s l n t   ( s s y m )   |   p t b . l o z t l   ( s s y m )   |   p t b . l o z r   ( s s y m ) ) 
 	 	   &   ^ ( p t b . r t e r m   ( s s y m )   |   p t b . d i a m   ( s s y m ) ) 
 	             t h e n 
 	                 d o ; 
 
 	 	 i f   c t b . s c n t   >   0 	 / *   c h e c k   f o r   r e d u n d a n t   s y m b o l s   * / 
 	 	 t h e n 
 	 	     d o   i   =   1   t o   c t b . s c n t 
 	 	               w h i l e   ( 
 	 	               ^ 
 	 	               ( ( c t b . r s l n t   ( i )   |   c t b . l o z b r   ( i )   &   p t b . l o z r   ( s s y m ) 
 	 	               |   c t b . l o z l   ( i ) ) 
 	 	               &   c t b . p o s   ( i )   =   p t b . p o s   ( s s y m )   -   o n e E N 
 	 	               |   c t b . l o z b r   ( i )   &   p t b . r s l n t   ( s s y m ) 
 	 	               &   c t b . p o s   ( i )   =   p t b . p o s   ( s s y m )   -   2   *   o n e E N ) ) ; 
 	 	     e n d ; 
 	 	 e l s e   i   =   1 ; 
 
 	 	 i f   i   >   c t b . s c n t 	 / *   i f   a   n e w   e n t r y   i s   n e e d e d   * / 
 	 	 t h e n 
 	 	     d o ; 
 	 	         i f   p t b . p o s   ( s s y m )   < =   o n e E N 
 	 	         t h e n 
 	 	             d o ; 
 	 	                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	 	       " R i g h t   s l a n t   l i n e   v i o l a t e s   " 
 	 	 	       | |   " l e f t   m a r g i n . " ,   a d d r   ( t x t l i n . i n f o ) ,   t x t s t r ) 
 	 	 	       ; 
 	 	                 c t b . r o p e n   =   c t b . r o p e n   -   1 ; 
 	 	                 c t b . o p e n   =   c t b . o p e n   -   1 ; 
 	 	                 s y n t a x _ e r r o r   =   " 1 " b ; 
 	 	                 g o t o   s y n c h k _ c o n t i n u e ; 
 	 	             e n d ; 
 
 	 	         c r s ,   c t b . s c n t   =   i ; 
 	 	 	 	 / *   c o u n t   n e w   s y m b o l   * / 
 	 	         c p t r   =   a d d r   ( c t b . e   ( c r s ) ) ; 
 
 	 	         i f   t x t l i n . l i n e s p a c e   =   0 
 	 	         t h e n 
 	 	             d o ; 
 	 	                 c t b e   =   p t b . e   ( s s y m ) ; 
 	 	                 c t b e . b l i n d   =   " 1 " b ; 
 	 	             e n d ; 
 
 	 	         e l s e 
 	 	             d o ; 
 	 	                 u n s p e c   ( c t b . e   ( c r s ) )   =   " " b ; 
 	 	 	 	 / *   c l e a r   n e w   e n t r y   * / 
 	 	                 c t b e . r s l n t   =   " 1 " b ; 
 	 	 	 	 / *   s e t   f l a g s   * / 
 	 	                 c t b e . l o z   =   p t b . l o z   ( s s y m ) ; 
 
 	 	                 i f   p t b . l o z r   ( s s y m ) 
 	 	 	 	 / *   l o z   r i g h t   v e r t e x ?   * / 
 	 	                 t h e n 
 	 	 	 d o ; 
 	 	 	     c t b e . p o s   =   p t b . p o s   ( s s y m ) ; 
 	 	 	     c t b e . h a d j   =   p t b . h a d j   ( s s y m )   -   E N 6 ; 
 	 	 	 e n d ; 
 
 	 	                 e l s e 
 	 	 	 d o ; 
 	 	 	     c t b e . p o s   =   p t b . p o s   ( s s y m )   -   o n e E N ; 
 	 	 	     i f   p t b . l o z t l   ( s s y m ) 
 	 	 	     t h e n   c t b e . h a d j   =   p t b . h a d j   ( s s y m )   -   E N 6 ; 
 	 	 	     e l s e   c t b e . h a d j   =   p t b . h a d j   ( s s y m )   -   E N 3 ; 
 	 	 	 e n d ; 
 	 	                 c t b e . b a s e   =   p t b . b a s e   ( s s y m ) ; 
 	 	             e n d ; 
 	 	     e n d ; 
 	                 e n d ; 
 	         e n d ; 
 s y n c h k _ c o n t i n u e : 
 	 e n d ; 	 	 	 / *   v e r t i c a l   s t u f f   * / 
 % p a g e ; 
 / *   P R E P A R E   O U T P U T   F R O M   L I N E S   G A T H E R E D   * / 
 
 b u i l d : 
                 i f   c t b . s c n t   >   0 	 	 / *   i f   t h e r e   a r e   a n y   s y m b o l s   * / 
                 t h e n 
 b u i l d _ l o o p : 
 	 d o ; 
 	     c t b . l i n e _ w i d t h   =   0 ; 	 / *   p r e s e t   w i d t h   * / 
 
 / *   s o r t   s y m b o l s   * / 
 	     i   =   0 ; 
 	     d o   j   =   1   t o   c t b . s c n t ; 	 / *   g o   t h r u   a l l   s y m b o l s   * / 
 	         i f   a d d r   ( c t b . e   ( j ) )   - >   c f l a g s 
 	 	 	 	 / *   i f   t h e   e n t r y   d o e s   * / 
 	         t h e n 
 	             d o ; 	 	 	 / *   s o m e t h i n g ,   t h e n   k e e p   i t   * / 
 	                 i   =   i   +   1 ; 
 	                 c t b . e   ( i )   =   c t b . e   ( j ) ; 
 	             e n d ; 
 	     e n d ; 
 	     c t b . s c n t   =   i ; 	 	 / *   n e w   s y m b o l   c o u n t   * / 
 
 p a s s : 
 	     s w a p s   =   0 ; 
 	     d o   j   =   1   t o   c t b . s c n t   -   1 ; 	 / *   l i n e a r   s o r t   s o   t h a t   o r d e r 
 	 	 	 	       w i t h i n   a   c o l u m n   i s   n o t   l o s t   * / 
 	         i f   c t b . p o s   ( j )   >   c t b . p o s   ( j   +   1 ) 
 	         t h e n 
 	             d o ; 
 	                 s w a p s   =   s w a p s   +   1 ; 
 	                 t e m p _ e n t r y   =   c t b . e   ( j ) ; 
 	                 c t b . e   ( j )   =   c t b . e   ( j   +   1 ) ; 
 	                 c t b . e   ( j   +   1 )   =   t e m p _ e n t r y ; 
 	             e n d ; 
 	     e n d ; 
 	     i f   s w a p s   >   0 
 	     t h e n   g o t o   p a s s ; 
 
 	     i f   d e t a i l _ s w 
 	     t h e n   c a l l   i o a _   ( " ^ 5 x B U I L D   ( l i n = ^ d / ^ d , # s y m = ^ d ) " ,   c r l ,   t x t l i n . l i n e n o , 
 	 	     c t b . s c n t ) ; 
 
 	     t e x t _ p o s   =   0 ; 	 	 / *   s t a r t   a t   l e f t   m a r g i n   * / 
 	     b a s e   =   0 ; 	 	 / *   r e s e t   b a s e l i n e   o f f s e t   * / 
 	     a r t _ s t r   =   " " ; 	 	 / *   c l e a r   t h e   t a r g e t   l i n e   * / 
 
 	     i f   c t b . s c n t   =   1   &   c t b . e   ( 1 ) . t e x t 
 	     t h e n 
 	         d o ; 
 	             i f   d e t a i l _ s w 
 	             t h e n   c a l l   i o a _   ( " ^ -   1 -   ^ f   T e x t   o n l y   l i n e " , 
 	 	             s h o w   ( c t b e . p o s ,   1 2 0 0 0 ) ) ; 
 	             g o t o   e n d _ l i n e _ l o o p ; 
 	         e n d ; 
 
 	     d o   c r s   =   1   t o   c t b . s c n t ; 	 / *   s c a n   l i n e   t a b l e   * / 
 	         c p t r   =   a d d r   ( c t b . e   ( c r s ) ) ; / *   s e t   e n t r y   p o i n t e r   * / 
 	 	 	 	 / *   s y m b o l   p o s i t i o n   * / 
 	         c r s _ p o s   =   c t b e . p o s   +   c t b e . h a d j ; 
 
 / *   p o s i t i o n   a d j u s t m e n t s   * / 
 	         i f   c t b e . b a s e   ^ =   b a s e 	 / *   b a s e l i n e   c h a n g e   n e e d e d ?   * / 
 	         t h e n   c a l l   v t a b _   ( c t b e . b a s e ) ; 
 
 / *   t e x t   * / 
 	         i f   c t b e . t e x t 
 	         t h e n 
 	             d o ; 
 	                 i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	                 t h e n   c a l l   h t a b _ ; 
 
 	                 i f   d e t a i l _ s w 
 	                 t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   T e x t   a t   ^ f   b ^ f   w ^ f   ( ^ d )   " " ^ a ^ v x " " " , 
 	 	                 c r s ,   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ,   s h o w   ( b a s e ,   1 2 0 0 0 ) , 
 	 	                 s h o w   ( c t b e . w i d t h ,   1 2 0 0 0 ) ,   c t b e . l e n , 
 	 	                 c o m p _ u t i l _ $ d i s p l a y   ( 
 	 	                 s u b s t r   ( t m p s t r ,   c t b e . t s t r t ,   c t b e . l e n ) ,   0 ,   " 0 " b ) , 
 	 	                 c t b e . l e n 
 	 	                 - 
 	 	                 l e n g t h   ( 
 	 	                 r t r i m   ( s u b s t r   ( t m p s t r ,   c t b e . t s t r t ,   c t b e . l e n ) ) ) ) ; 
 
 	                 i f   s h a r e d . t r a n s . i n   ^ =   " " 
 	                 t h e n   a r t _ s t r   = 
 	 	                 a r t _ s t r 
 	 	                 | | 
 	 	                 c o m p _ u t i l _ $ t r a n s l a t e   ( 
 	 	                 s u b s t r   ( t m p s t r ,   c t b e . t s t r t ,   c t b e . l e n ) ) ; 
 	                 e l s e   a r t _ s t r   = 
 	 	                 a r t _ s t r   | |   s u b s t r   ( t m p s t r ,   c t b e . t s t r t ,   c t b e . l e n ) ; 
 
 	                 i f   t x t l i n . q u a d   =   j u s t   / *   a   j u s t i f i e d   l i n e ?   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s   =   c t b . s c n t   / *   t r a i l i n g   t e x t ?   * / 
 	 	     t h e n   t e x t _ p o s   =   t x t l i n . r m a r g ; 
 
 	 	     e l s e 	 	 / *   e m b e d d e d   t e x t   * / 
 	 	         d o ; 
 	 	             i f   c t b e . w s p   >   0 
 	 	             t h e n   t e x t _ p o s   = 
 	 	 	             m i n   ( t x t l i n . r m a r g ,   c t b . e   ( c r s   +   1 ) . p o s ) ; 
 	 	             e l s e   t e x t _ p o s   = 
 	 	 	             m i n   ( c r s _ p o s   +   c t b e . w i d t h , 
 	 	 	             c t b . e   ( c r s   +   1 ) . p o s ) ; 
 	 	         e n d ; 
 
 	 	     c t b . l i n e _ w i d t h   =   c t b . l i n e _ w i d t h   +   c t b e . w i d t h ; 
 	 	 e n d ; 
 
 	                 e l s e 	 	 / *   n o t   j u s t i f i e d   * / 
 	 	 d o ; 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   c t b e . w i d t h   +   c t b e . w s p ; 
 	 	     c t b . l i n e _ w i d t h   =   c t b . l i n e _ w i d t h   +   c t b e . w i d t h   +   c t b e . w s p ; 
 	 	 e n d ; 
 	             e n d ; 
 
 / *   S Y M B O L S   * / 
 	         i f   c t b e . s i z e   >   0 	 / *   r e s e t   m i n i p o s   f l a g s   * / 
 	         t h e n   s u b s t r   ( c f l a g s ,   f i r s t _ m i n i _ p o s ,   4 )   =   " 0 0 0 0 " b ; 
 
 / *   m a t h   s y m b o l s   * / 
 	         i f   s u b s t r   ( c f l a g s ,   1 ,   l a s t _ m a t h )   ^ =   " 0 " b   &   c t b e . s i z e   >   0 
 	 	 	 	 / *   w i t h   a   v a l i d   s i z e   * / 
 	                   &   ^ o p t i o n . n o a r t _ o p t 
 	         t h e n 
 	             d o ; 	 	 	 / *   s y m b o l   h a l f   s i z e   * / 
 	                 h a l f _ s i z e   =   d i v i d e   ( c t b e . s i z e ,   2 ,   1 7 ,   0 )   +   1 ; 
 	                 s y m b n d x   =   i n d e x   ( c f l a g s ,   " 1 " b ) ; 
 	 	 	 	 / *   s e t   s y m b o l   i n d e x   * / 
 	                 i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	                 t h e n   c a l l   h t a b _ ; 
 
 / *   t o p s   &   o n e - h i g h s   * / 
 	                 i f   c t b e . l n d x   =   1 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c t b e . s i z e   =   1 
 	 	     t h e n 
 	 	         d o ; 
 	 	             a r t _ s t r   =   a r t _ s t r   | |   a r t . o n e   ( s y m b n d x ) ; 
 	 	             c t b . l i n e _ w i d t h   =   c t b . l i n e _ w i d t h   +   c t b e . w i d t h ; 
 
 	 	             i f   d e t a i l _ s w 
 	 	             t h e n   c a l l   i o a _   ( 
 	 	 	             " ^ - ^ 2 d -   ^ a ^ i   1 - h i g h   a t   ^ f   b ^ f   w ^ f   ^ a " ,   c r s , 
 	 	 	             s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   s y m b n d x ,   1 ) , 
 	 	 	             c t b e . s i z e ,   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	             s h o w   ( b a s e ,   1 2 0 0 0 ) , 
 	 	 	             s h o w   ( c t b e . w i d t h ,   1 2 0 0 0 ) , 
 	 	 	             c o m p _ u t i l _ $ d i s p l a y   ( ( a r t . o n e   ( s y m b n d x ) ) ,   0 , 
 	 	 	             " 0 " b ) ) ; 
 	 	         e n d ; 
 
 	 	     e l s e 
 	 	         d o ; 
 	 	             i f   m o d   ( c t b e . s i z e ,   2 )   =   1 
 	 	             t h e n 
 	 	                 d o ; 
 	 	 	 a r t _ s t r   =   a r t _ s t r   | |   c h a r   ( a r t . t o p   ( s y m b n d x ) ) ; 
 
 	 	 	 i f   d e t a i l _ s w 
 	 	 	 t h e n   c a l l   i o a _   ( 
 	 	 	 	 " ^ - ^ 2 d -   ^ a ^ i   t o p   a t   ^ f   ( b ^ f   w ^ f ) " ,   c r s , 
 	 	 	 	 s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   s y m b n d x ,   1 ) , 
 	 	 	 	 c t b e . s i z e ,   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	 	 s h o w   ( b a s e ,   1 2 0 0 0 ) , 
 	 	 	 	 s h o w   ( c t b e . w i d t h ,   1 2 0 0 0 ) ) ; 
 	 	                 e n d ; 
 
 	 	             e l s e 
 	 	                 d o ; 
 	 	 	 a r t _ s t r   = 
 	 	 	           a r t _ s t r   | |   c h a r   ( a r t . h a l f _ t o p   ( s y m b n d x ) ) ; 
 	 	 	 i f   d e t a i l _ s w 
 	 	 	 t h e n   c a l l   i o a _   ( 
 	 	 	 	 " ^ - ^ 2 d -   ^ a ^ i   h a l f - t o p   a t   ^ f   ( ^ f ) " ,   c r s , 
 	 	 	 	 s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   s y m b n d x ,   1 ) , 
 	 	 	 	 c t b e . s i z e ,   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	 	 s h o w   ( b a s e ,   1 2 0 0 0 ) ) ; 
 	 	                 e n d ; 
 	 	         e n d ; 
 	 	 e n d ; 
 
 / *   m i d d l e s   * / 
 	                 e l s e   i f   ( c t b e . l n d x   =   h a l f _ s i z e ) 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c t b e . l n d x   =   c t b e . s i z e 
 	 	     t h e n 	 	 / *   i f   t w o - h i g h   * / 
 	 	         d o ; 
 	 	             a r t _ s t r   = 
 	 	 	   a r t _ s t r   | |   c h a r   ( a r t . h a l f _ b o t t o m   ( s y m b n d x ) ) 
 	 	 	   | |   c h a r   ( a r t . m i d d l e   ( s y m b n d x ) ) ; 
 	 	             i f   d e t a i l _ s w 
 	 	             t h e n   c a l l   i o a _   ( 
 	 	 	             " ^ - ^ 2 d -   ^ a ^ d   h a l f - b o t t o m   &   m i d d l e   a t   ^ f   ( ^ f ) " 
 	 	 	             ,   c r s , 
 	 	 	             s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   s y m b n d x ,   1 ) , 
 	 	 	             c t b e . s i z e ,   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	             s h o w   ( b a s e ,   1 2 0 0 0 ) ) ; 
 	 	         e n d ; 
 
 	 	     e l s e 
 	 	         d o ; 
 	 	             a r t _ s t r   =   a r t _ s t r   | |   c h a r   ( a r t . m i d d l e   ( s y m b n d x ) ) ; 
 	 	             i f   d e t a i l _ s w 
 	 	             t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   ^ a ^ d   m i d d l e   a t   ^ d   ( ^ d ) " ,   c r s , 
 	 	 	             s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   s y m b n d x ,   1 ) , 
 	 	 	             c t b e . s i z e ,   c r s _ p o s ,   b a s e ) ; 
 	 	         e n d ; 
 	 	 e n d ; 
 
 / *   b o t t o m s   * / 
 	                 e l s e   i f   c t b e . l n d x   =   c t b e . s i z e 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   m o d   ( c t b e . s i z e ,   2 )   =   1 
 	 	     t h e n 
 	 	         d o ; 
 	 	             a r t _ s t r   =   a r t _ s t r   | |   c h a r   ( a r t . b o t t o m   ( s y m b n d x ) ) ; 
 	 	             i f   d e t a i l _ s w 
 	 	             t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   ^ a   b o t t o m   a t   ^ d   ( ^ d ) " ,   c r s , 
 	 	 	             s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   s y m b n d x ,   1 ) , 
 	 	 	             c r s _ p o s ,   b a s e ) ; 
 	 	         e n d ; 
 
 	 	     e l s e   i f   c t b e . s i z e   >   2 
 	 	     t h e n 
 	 	         d o ; 
 	 	             a r t _ s t r   = 
 	 	 	   a r t _ s t r   | |   c h a r   ( a r t . h a l f _ b o t t o m   ( s y m b n d x ) ) 
 	 	 	   | |   c h a r   ( a r t . o t h e r _ p a r t   ( s y m b n d x ) ) ; 
 	 	             i f   d e t a i l _ s w 
 	 	             t h e n   c a l l   i o a _   ( 
 	 	 	             " ^ - ^ 2 d -   ^ a   h a l f - b o t t o m   &   o t h e r   p a r t   a t   ^ f   ( ^ f ) " 
 	 	 	             ,   c r s , 
 	 	 	             s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   s y m b n d x ,   1 ) , 
 	 	 	             s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ,   s h o w   ( b a s e ,   1 2 0 0 0 ) ) ; 
 	 	         e n d ; 
 	 	 e n d ; 
 
 / *   o t h e r   p a r t s   * / 
 	                 e l s e   i f   c t b e . l n d x   >   1 
 	                 t h e n 
 	 	 d o ; 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   c h a r   ( a r t . o t h e r _ p a r t   ( s y m b n d x ) ) ; 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   ^ a   o t h e r   p a r t   a t   ^ d   ( ^ d ) " ,   c r s , 
 	 	 	     s u b s t r   ( c o n s t . a r t _ s y m b o l s ,   s y m b n d x ,   1 ) , 
 	 	 	     c r s _ p o s ,   b a s e ) ; 
 	 	 e n d ; 
 	                 e l s e   a r t _ s t r   =   a r t _ s t r   | |   E N ; 
 	 	 	 	 / *   a l l   m a t h   s y m b o l s   t a k e   o n e   c o l u m n   * / 
 	                 t e x t _ p o s   =   c r s _ p o s   +   o n e E N ; 
 	             e n d ; 
 
 / *   B u i l d   l i n e   a r t   * / 
 
 	         e l s e   i f   ^ o p t i o n . n o a r t _ o p t 
 	         t h e n 
 	             d o ; 
 
 / *   l o z e n g e   t o p s   * / 
 	                 i f   c t b e . l o z t l 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 	 / *   s e a r c h   f o r   t e r m i n a t o r   * / 
 	 	     d o   i   =   c r s   t o   c t b . s c n t   w h i l e   ( ^ c t b . l o z t r   ( i ) ) ; 
 	 	     e n d ; 
 	 	     h c n t   =   c t b . e   ( i ) . p o s   -   c r s _ p o s ; 
 	 	     h o r _ v e c . v 1   =   h c n t   -   o n e E N ; 
 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   l o z e n g e   t o p   l e f t   c o r n e r   a t   ^ f " 
 	 	 	     | |   " ^ / ^ - ^ 4 x l o z e n g e   t o p   f r o m   ^ f   t o   ^ f   ^ a " 
 	 	 	     | |   " ^ / ^ - ^ 2 d -   l o z e n g e   t o p   r i g h t   c o r n e r   a t   ^ f " , 
 	 	 	     c r s ,   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	     s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	     s h o w   ( c r s _ p o s   +   h c n t ,   1 2 0 0 0 ) , 
 	 	 	     c o m p _ u t i l _ $ d i s p l a y   ( ( h o r _ v e c _ s t r ) ,   0 ,   " 0 " b ) ,   i , 
 	 	 	     s h o w   ( c r s _ p o s   +   h c n t ,   1 2 0 0 0 ) ) ; 
 
 	 	     a r t _ s t r   = 
 	 	               a r t _ s t r   | |   a r t . l o z . t l   | |   h o r _ v e c _ s t r   | |   a r t . l o z . t r ; 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   h c n t ; 
 	 	 	 	 / *   u p d a t e   t e x t   p o s i t i o n   * / 
 	 	 e n d ; 
 
 / *   l o z e n g e   v e r t i c e s   * / 
 	                 i f   c t b e . l o z l 	 / *   l e f t   v e r t e x   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   l o z e n g e   l e f t   v e r t e x   a t   ^ f " ,   c r s , 
 	 	 	     s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   a r t . l o z . l ; 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   c t b e . w i d t h ; 
 	 	     c t b . l i n e _ w i d t h   =   c t b . l i n e _ w i d t h   +   c t b e . w i d t h ; 
 	 	 e n d ; 
 
 	                 i f   c t b e . l o z r 	 / *   r i g h t   v e r t e x   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   l o z e n g e   r i g h t   v e r t e x   a t   ^ f " ,   c r s , 
 	 	 	     s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   a r t . l o z . r ; 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   c t b e . w i d t h ; 
 	 	     c t b . l i n e _ w i d t h   =   c t b . l i n e _ w i d t h   +   c t b e . w i d t h ; 
 
 	 	     i f   c t b e . h o r i z 	 / *   a l s o   s t a r t i n g   h r u l e ?   * / 
 	 	     t h e n   g o t o   h r u l e ; 
 	 	 e n d ; 
 
 / *   l o z e n g e   b o t t o m s   * / 
 	                 i f   c t b e . l o z b l 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 	 / *   s e a r c h   f o r   t e r m i n a t o r   * / 
 	 	     d o   i   =   c r s   t o   c t b . s c n t   w h i l e   ( ^ c t b . l o z b r   ( i ) ) ; 
 	 	     e n d ; 
 	 	     h c n t   =   c t b . e   ( i ) . p o s   -   c r s _ p o s ; 
 	 	     h o r _ v e c . v 1   =   h c n t   -   o n e E N ; 
 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   l o z e n g e   b o t t o m   l e f t   c o r n e r   a t   ^ f " 
 	 	 	     | |   " ^ / ^ - ^ 4 x l o z e n g e   b o t t o m   f r o m   ^ f   t o   ^ f   ^ a " 
 	 	 	     | | 
 	 	 	     " ^ / ^ - ^ 2 d -   l o z e n g e   b o t t o m   r i g h t   c o r n e r   a t   ^ f " , 
 	 	 	     c r s ,   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	     s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	     s h o w   ( c r s _ p o s   +   h c n t ,   1 2 0 0 0 ) , 
 	 	 	     c o m p _ u t i l _ $ d i s p l a y   ( ( h o r _ v e c _ s t r ) ,   0 ,   " 0 " b ) ,   i , 
 	 	 	     s h o w   ( c r s _ p o s   +   h c n t ,   1 2 0 0 0 ) ) ; 
 
 	 	     a r t _ s t r   = 
 	 	               a r t _ s t r   | |   a r t . l o z . b l   | |   h o r _ v e c _ s t r   | |   a r t . l o z . b r ; 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   h c n t ; 
 	 	 	 	 / *   u p d a t e   t e x t   p o s i t i o n   * / 
 	 	 e n d ; 
 
 / *   v e r t i c a l s   * / 
 	                 i f   c t b e . v e r t   &   c t b e . s i z e   =   0   &   ^ c t b e . b l i n d 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   a r t . v p a r t ; 
 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( 
 	 	 	     " ^ - ^ 2 d -   v e r t i c a l   a t   ^ f   ( w ^ f   b ^ f )     " " ^ a " " " ,   c r s , 
 	 	 	     s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	     s h o w   ( c t b e . w i d t h ,   1 2 0 0 0 ) ,   s h o w   ( b a s e ,   1 2 0 0 0 ) , 
 	 	 	     c o m p _ u t i l _ $ d i s p l a y   ( ( a r t . v p a r t ) ,   0 ,   " 0 " b ) ) ; 
 	 	 e n d ; 
 
 / *   d o w n   a r r o w s   * / 
 	                 i f   c t b e . d a r o   &   ^ c t b e . d i a m   &   ^ c t b e . b l i n d 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   c h a r   ( a r t . d a r o ) ; 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   d o w n   a r r o w   a t   ^ f " ,   c r s , 
 	 	 	     s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 	 	 e n d ; 
 
 / *   u p   a r r o w s   * / 
 	                 i f   c t b e . u p a r o   &   ^ c t b e . d i a m   &   ^ c t b e . b l i n d 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   c h a r   ( a r t . u p a r o ) ; 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   u p   a r r o w   a t   ^ d " ,   c r s , 
 	 	 	     s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 	 	 e n d ; 
 
 / *   d i a m o n d   p a r t s   * / 
 	                 i f   c t b e . d i a m   &   ^ c t b e . b l i n d 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 
 / *   d i a m o n d   t o p s   * / 
 	 	     i f   c t b e . u p a r o 
 	 	     t h e n 
 	 	         d o ; 
 	 	             a r t _ s t r   =   a r t _ s t r   | |   a r t . d i a m . t o p ; 
 	 	             i f   d e t a i l _ s w 
 	 	             t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   d i a m o n d   t o p   a t   ^ f " ,   c r s , 
 	 	 	             s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 	 	             t e x t _ p o s   =   c r s _ p o s   +   o n e E N ; 
 	 	         e n d ; 
 
 / *   d i a m o n d   l e f t   v e r t i c e s   * / 
 	 	     i f   c t b e . l a r o 
 	 	     t h e n 
 	 	         d o ; 
 	 	             a r t _ s t r   =   a r t _ s t r   | |   a r t . d i a m . l v e r t ; 
 	 	             i f   d e t a i l _ s w 
 	 	             t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   d i a m o n d   l e f t   v e r t e x   a t   ^ f " , 
 	 	 	             c r s ,   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 	 	             t e x t _ p o s   =   c r s _ p o s   +   o n e E N ; 
 	 	         e n d ; 
 
 / *   d i a m o n d   r i g h t   v e r t i c e s   * / 
 	 	     i f   c t b e . r a r o 
 	 	     t h e n 
 	 	         d o ; 
 	 	             a r t _ s t r   =   a r t _ s t r   | |   a r t . d i a m . r v e r t ; 
 	 	             i f   d e t a i l _ s w 
 	 	             t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   d i a m o n d   r i g h t   v e r t e x   a t   ^ f " , 
 	 	 	             c r s ,   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 	 	             t e x t _ p o s   =   c r s _ p o s   +   o n e E N ; 
 	 	         e n d ; 
 
 / *   d i a m o n d   l e f t   s l a n t s   * / 
 	 	     i f   c t b e . l s l n t 
 	 	     t h e n 
 	 	         d o ; 
 	 	             a r t _ s t r   =   a r t _ s t r   | |   a r t . l s l n t ; 
 	 	             i f   d e t a i l _ s w 
 	 	             t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   d i a m o n d   l e f t   s l a n t   a t   ^ f " , 
 	 	 	             c r s ,   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 	 	             t e x t _ p o s   =   c r s _ p o s   +   o n e E N ; 
 	 	         e n d ; 
 
 / *   d i a m o n d   r i g h t   s l a n t s   * / 
 	 	     i f   c t b e . r s l n t 
 	 	     t h e n 
 	 	         d o ; 
 	 	             a r t _ s t r   =   a r t _ s t r   | |   a r t . r s l n t ; 
 	 	             i f   d e t a i l _ s w 
 	 	             t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   d i a m o n d   r i g h t   s l a n t   a t   ^ f " , 
 	 	 	             c r s ,   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 	 	             t e x t _ p o s   =   c r s _ p o s   +   o n e E N ; 
 	 	         e n d ; 
 
 / *   d i a m o n d   b o t t o m s   * / 
 	 	     i f   c t b e . d a r o 
 	 	     t h e n 
 	 	         d o ; 
 	 	             a r t _ s t r   =   a r t _ s t r   | |   a r t . d i a m . b o t t o m ; 
 	 	             i f   d e t a i l _ s w 
 	 	             t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   d i a m o n d   b o t t o m   a t   ^ f " ,   c r s , 
 	 	 	             s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 	 	             t e x t _ p o s   =   c r s _ p o s   +   o n e E N ; 
 	 	         e n d ; 
 	 	 e n d ; 
 
 / *   l e f t   s l a n t s   * / 
 	                 i f   c t b e . l s l n t   &   ^ c t b e . d i a m   &   ^ c t b e . b l i n d 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   a r t . l s l n t ; 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   l e f t   s l a n t   a t   ^ f " ,   c r s , 
 	 	 	     s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   o n e E N ; 
 	 	 e n d ; 
 
 / *   r i g h t   s l a n t s   * / 
 	                 i f   c t b e . r s l n t   &   ^ c t b e . d i a m   &   c t b e . s i z e   =   0   &   ^ c t b e . b l i n d 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   a r t . r s l n t ; 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   r i g h t   s l a n t   a t   ^ f " ,   c r s , 
 	 	 	     s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   o n e E N ; 
 	 	 e n d ; 
 
 / *   l e f t   a r r o w s   * / 
 	                 i f   c t b e . l a r o   &   ^ c t b e . d i a m 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   a r t . l a r o ; 
 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   l e f t   a r r o w   a t   ^ d " ,   c r s , 
 	 	 	     s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 
 	 	     i f   c t b e . h o r i z 	 / *   a l s o   s t a r t i n g   h r u l e ?   * / 
 	 	     t h e n   g o t o   h r u l e ; 
 	 	 e n d ; 
 
 / *   r i g h t   a r r o w s   * / 
 	                 i f   c t b e . r a r o   &   ^ c t b e . d i a m 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   c h a r   ( a r t . r a r o ) ; 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   r i g h t   a r r o w   a t   ^ f " ,   c r s , 
 	 	 	     s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   o n e E N ; 
 	 	 e n d ; 
 
 / *   c i r c l e s   * / 
 	                 i f   c t b e . l p r n 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   a r t . l c i r c ; 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   l e f t   c i r c l e   a t   ^ d " ,   c r s ,   c r s _ p o s ) 
 	 	 	     ; 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   o n e E N ; 
 	 	 e n d ; 
 
 	                 i f   c t b e . r p r n 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   a r t . r c i r c ; 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   r i g h t   c i r c l e   a t   ^ d " ,   c r s , 
 	 	 	     c r s _ p o s ) ; 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   o n e E N ; 
 	 	 e n d ; 
 
 / *   b o x   t o p s   * / 
 	                 i f   c t b e . b o x t l 	 / *   c o r n e r s   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 	 / *   s e a r c h   f o r   t e r m i n a t o r   * / 
 	 	     d o   i   =   c r s   t o   c t b . s c n t 
 	 	               w h i l e   ( 
 	 	               ^ ( c t b . b o x b r   ( i )   |   c t b . b o x r   ( i )   |   c t b . b o x t r   ( i ) 
 	 	               |   c t b . s t a r   ( i ) ) ) ; 
 	 	     e n d ; 
 	 	     h c n t   =   c t b . e   ( i ) . p o s   +   c t b . e   ( i ) . h a d j   -   c r s _ p o s ; 
 	 	     h o r _ v e c . v 1   =   h c n t   -   o n e E N ; 
 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n 
 	 	         d o ; 
 	 	             i f   c t b . b o x t r   ( i ) 
 	 	             t h e n   j   =   1 ; 
 	 	             e l s e   i f   c t b . b o x r   ( i ) 
 	 	             t h e n   j   =   2 ; 
 	 	             e l s e   i f   c t b . b o x b r   ( i ) 
 	 	             t h e n   j   =   3 ; 
 	 	             e l s e   j   =   4 ; 
 
 	 	             c a l l   i o a _   ( " ^ - ^ 2 d -   b o x   t o p   l e f t   c o r n e r   a t   ^ f   " " ^ a " " " 
 	 	 	   | |   " ^ / ^ - ^ 4 x b o x   t o p   f r o m   ^ f   t o   ^ f   " " ^ a " " " 
 	 	 	   | | 
 	 	 	   " ^ / ^ - ^ 2 d -   ^ [ b o x   t o p   r i g h t   c o r n e r ^ ; b o x   r i g h t   T ^ ; " 
 	 	 	   | | 
 	 	 	   " b o x   b o t t o m   r i g h t   c o r n e r ^ ; h o r i z   t e r m i n a t o r ^ ]   " 
 	 	 	   | |   " a t   ^ f   " " ^ [ ^ a ^ ; ^ s ^ a ^ ; ^ 2 s ^ a ^ ; ^ 3 s ^ a ^ ] " " " ,   c r s , 
 	 	 	   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	   c o m p _ u t i l _ $ d i s p l a y   ( ( a r t . b o x . t l ) ,   0 ,   " 0 " b ) , 
 	 	 	   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	   s h o w   ( c r s _ p o s   +   h c n t ,   1 2 0 0 0 ) , 
 	 	 	   c o m p _ u t i l _ $ d i s p l a y   ( ( h o r _ v e c _ s t r ) ,   0 ,   " 0 " b ) ,   i , 
 	 	 	   j ,   s h o w   ( c r s _ p o s   +   h c n t ,   1 2 0 0 0 ) ,   j , 
 	 	 	   c o m p _ u t i l _ $ d i s p l a y   ( ( a r t . b o x . t r ) ,   0 ,   " 0 " b ) , 
 	 	 	   c o m p _ u t i l _ $ d i s p l a y   ( ( a r t . b o x . r ) ,   0 ,   " 0 " b ) , 
 	 	 	   c o m p _ u t i l _ $ d i s p l a y   ( ( a r t . b o x . b r ) ,   0 ,   " 0 " b ) , 
 	 	 	   c o m p _ u t i l _ $ d i s p l a y   ( ( a r t . h o r i z . t e r m ) ,   0 ,   " 0 " b ) ) ; 
 	 	         e n d ; 
 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . t l   | |   h o r _ v e c _ s t r ; 
 	 	     i f   c t b . b o x t r   ( i ) 
 	 	     t h e n   a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . t r ; 
 	 	     e l s e   i f   c t b . b o x r   ( i ) 
 	 	     t h e n   a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . r ; 
 	 	     e l s e   i f   c t b . b o x b r   ( i ) 
 	 	     t h e n   a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . b r ; 
 	 	     e l s e   a r t _ s t r   =   a r t _ s t r   | |   a r t . h o r i z . t e r m ; 
 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   h c n t ; 
 	 	 	 	 / *   u p d a t e   t e x t   p o s i t i o n   * / 
 	 	 e n d ; 
 
 	                 i f   c t b e . b o x t 	 / *   t o p   T s   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   b o x   t o p   T   a t   ^ f " ,   c r s , 
 	 	 	     s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . t ; 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   c t b e . w i d t h ; 
 	 	     c t b . l i n e _ w i d t h   =   c t b . l i n e _ w i d t h   +   c t b e . w i d t h ; 
 	 	 	 	 / *   u p d a t e   t e x t   p o s i t i o n   * / 
 	 	 e n d ; 
 
 / *   b o x   l e f t   T s   * / 
 	                 i f   c t b e . b o x l 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 	 / *   s e a r c h   f o r   t e r m i n a t o r   * / 
 	 	     d o   i   =   c r s   t o   c t b . s c n t 
 	 	               w h i l e   ( 
 	 	               ^ ( c t b . b o x t r   ( i )   |   c t b . b o x r   ( i )   |   c t b . b o x b r   ( i ) 
 	 	               |   c t b . s t a r   ( i ) ) ) ; 
 	 	     e n d ; 
 	 	     h c n t   =   c t b . e   ( i ) . p o s   -   c r s _ p o s ; 
 	 	     h o r _ v e c . v 1   =   h c n t   -   o n e E N ; 
 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n 
 	 	         d o ; 
 	 	             i f   c t b . b o x t r   ( i ) 
 	 	             t h e n   j   =   1 ; 
 	 	             e l s e   i f   c t b . b o x r   ( i ) 
 	 	             t h e n   j   =   2 ; 
 	 	             e l s e   i f   c t b . b o x b r   ( i ) 
 	 	             t h e n   j   =   3 ; 
 	 	             e l s e   j   =   4 ; 
 
 	 	             c a l l   i o a _   ( " ^ - ^ 2 d -   b o x   l e f t   T   a t   ^ f " 
 	 	 	   | |   " ^ / ^ - ^ 4 x b o x   l i n e   f r o m   ^ f   t o   ^ f   ^ a " 
 	 	 	   | |   " ^ / ^ - ^ 2 d -   b o x   ^ [ t o p   r i g h t   c o r n e r ^ ; r i g h t   T ^ ; " 
 	 	 	   | | 
 	 	 	   " b o t t o m   r i g h t   c o r n e r ^ ; h o r i z   t e r m i n a t o r ^ ]   a t   ^ f " , 
 	 	 	   c r s ,   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	   s h o w   ( c r s _ p o s   +   h c n t ,   1 2 0 0 0 ) , 
 	 	 	   c o m p _ u t i l _ $ d i s p l a y   ( ( h o r _ v e c _ s t r ) ,   0 ,   " 0 " b ) ,   i , 
 	 	 	   j ,   s h o w   ( c r s _ p o s   +   h c n t ,   1 2 0 0 0 ) ) ; 
 	 	         e n d ; 
 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . l   | |   h o r _ v e c _ s t r ; 
 	 	     i f   c t b . b o x t r   ( i ) 
 	 	     t h e n   a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . t r ; 
 	 	     e l s e   i f   c t b . b o x r   ( i ) 
 	 	     t h e n   a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . r ; 
 	 	     e l s e   i f   c t b . b o x b r   ( i ) 
 	 	     t h e n   a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . b r ; 
 	 	     e l s e   a r t _ s t r   =   a r t _ s t r   | |   a r t . h o r i z . t e r m ; 
 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   h c n t ; 
 	 	 	 	 / *   u p d a t e   t e x t   p o s i t i o n   * / 
 	 	 e n d ; 
 
 / *   b o x   i n t e r i o r   + s   * / 
 	                 i f   c t b e . b o x x 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n 
 	 	         d o ; 
 	 	             c a l l   i o a _   ( " ^ - ^ 2 d -   b o x   i n t e r i o r   +   a t   ^ f " ,   c r s , 
 	 	 	   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) ) ; 
 	 	         e n d ; 
 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . x ; 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   c t b e . w i d t h ; 
 	 	     c t b . l i n e _ w i d t h   =   c t b . l i n e _ w i d t h   +   c t b e . w i d t h ; 
 	 	 e n d ; 
 
 / *   b o x   b o t t o m s   * / 
 	                 i f   c t b e . b o x b l 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 	 / *   s e a r c h   f o r   t e r m i n a t o r   * / 
 	 	     d o   i   =   c r s   t o   c t b . s c n t 
 	 	               w h i l e   ( 
 	 	               ^ ( c t b . b o x b r   ( i )   |   c t b . b o x r   ( i )   |   c t b . b o x t r   ( i ) 
 	 	               |   c t b . s t a r   ( i ) ) ) ; 
 	 	     e n d ; 
 	 	     h c n t   =   c t b . e   ( i ) . p o s   -   c r s _ p o s ; 
 	 	     h o r _ v e c . v 1   =   h c n t   -   o n e E N ; 
 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n 
 	 	         d o ; 
 	 	             i f   c t b . b o x t r   ( i ) 
 	 	             t h e n   j   =   1 ; 
 	 	             e l s e   i f   c t b . b o x r   ( i ) 
 	 	             t h e n   j   =   2 ; 
 	 	             e l s e   i f   c t b . b o x b r   ( i ) 
 	 	             t h e n   j   =   3 ; 
 	 	             e l s e   j   =   4 ; 
 
 	 	             c a l l   i o a _   ( 
 	 	 	   " ^ - ^ 2 d -   b o x   b o t t o m   l e f t   c o r n e r   a t   ^ f   " " ^ a " " " 
 	 	 	   | |   " ^ / ^ - ^ 4 x b o x   b o t t o m   f r o m   ^ f   t o   ^ f   " " ^ a " " " 
 	 	 	   | |   " ^ / ^ - ^ 2 d -   b o x   ^ [ t o p   r i g h t   c o r n e r ^ ; r i g h t   T ^ ; " 
 	 	 	   | | 
 	 	 	   " b o t t o m   r i g h t   c o r n e r ^ ; h o r i z   t e r m i n a t o r ^ ]   a t   ^ f   " 
 	 	 	   | |   " " " ^ [ ^ a ^ ; ^ s ^ a ^ ; ^ 2 s ^ a ^ ; ^ 3 s ^ a ^ ] " " " ,   c r s , 
 	 	 	   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	   c o m p _ u t i l _ $ d i s p l a y   ( ( a r t . b o x . b l ) ,   0 ,   " 0 " b ) , 
 	 	 	   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	   s h o w   ( c r s _ p o s   +   h c n t ,   1 2 0 0 0 ) , 
 	 	 	   c o m p _ u t i l _ $ d i s p l a y   ( ( h o r _ v e c _ s t r ) ,   0 ,   " 0 " b ) ,   i , 
 	 	 	   j ,   s h o w   ( c r s _ p o s   +   h c n t ,   1 2 0 0 0 ) ,   j , 
 	 	 	   c o m p _ u t i l _ $ d i s p l a y   ( ( a r t . b o x . t r ) ,   0 ,   " 0 " b ) , 
 	 	 	   c o m p _ u t i l _ $ d i s p l a y   ( ( a r t . b o x . r ) ,   0 ,   " 0 " b ) , 
 	 	 	   c o m p _ u t i l _ $ d i s p l a y   ( ( a r t . b o x . b r ) ,   0 ,   " 0 " b ) , 
 	 	 	   c o m p _ u t i l _ $ d i s p l a y   ( ( a r t . h o r i z . t e r m ) ,   0 ,   " 0 " b ) ) ; 
 	 	         e n d ; 
 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . b l   | |   h o r _ v e c _ s t r ; 
 	 	     i f   c t b . b o x t r   ( i ) 
 	 	     t h e n   a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . t r ; 
 	 	     e l s e   i f   c t b . b o x r   ( i ) 
 	 	     t h e n   a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . r ; 
 	 	     e l s e   i f   c t b . b o x b r   ( i ) 
 	 	     t h e n   a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . b r ; 
 	 	     e l s e   a r t _ s t r   =   a r t _ s t r   | |   a r t . h o r i z . t e r m ; 
 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   h c n t ; 
 	 	 	 	 / *   u p d a t e   t e x t   p o s i t i o n   * / 
 	 	 e n d ; 
 
 	                 i f   c t b e . b o x b 	 / *   b o t t o m   T s   * / 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . b ; 
 	 	 	 	 / *   u p d a t e   t e x t   p o s i t i o n   * / 
 	 	     t e x t _ p o s   =   c r s _ p o s   +   c t b e . w i d t h ; 
 	 	     c t b . l i n e _ w i d t h   =   c t b . l i n e _ w i d t h   +   c t b e . w i d t h ; 
 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n   c a l l   i o a _   ( " ^ - ^ 2 d -   b o x   b o t t o m   T ^ 3 (   ^ f ^ ) " ,   c r s , 
 	 	 	     s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	 	 	     s h o w   ( c t b e . w i d t h ,   1 2 0 0 0 ) , 
 	 	 	     s h o w   ( t e x t _ p o s ,   1 2 0 0 0 ) ) ; 
 	 	 e n d ; 
 
 / *   h o r i z o n t a l   r u l e s   * / 
 	                 i f   c t b e . h o r i z 
 	                 t h e n 
 	 	 d o ; 
 	 	     i f   c r s _ p o s   ^ =   t e x t _ p o s 
 	 	     t h e n   c a l l   h t a b _ ; 
 
 h r u l e : 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   a r t . h o r i z . s t a r t ; 
 	 	 	 	 / *   s t a r t   t h e   r u l e   * / 
 
 	 	     d o   i   =   c r s   t o   c t b . s c n t   w h i l e 
 	 	 	 	 / *   s e a r c h   f o r   t e r m i n a t o r   * / 
 	 	               ( 
 	 	               ^ ( c t b . s t a r   ( i )   |   ( c t b . r a r o   ( i )   &   ^ c t b . l a r o   ( i ) ) 
 	 	               |   c t b . b o x t r   ( i )   |   c t b . b o x r   ( i )   |   c t b . b o x b r   ( i ) ) ) ; 
 	 	     e n d ; 
 	 	     c t b . s t a r   ( i ) ,   c t b . h o r i z   ( i )   =   " 0 " b ; 
 	 	 	 	 / *   r e s e t   f l a g s   * / 
 
 	 	     i f   i   >   c t b . s c n t 	 / *   i f   n o   t e r m i n a t o r ,   r u l e   t o   m e a s u r e   * / 
 	 	     t h e n   h t e r m _ p o s   =   b l o c k . p a r m s . m e a s u r e ; 
 	 	 	 	 / *   o t h e r w i s e ,   r u l e   t o   t h e   t e r m i n a t o r   * / 
 	 	     e l s e   h t e r m _ p o s   =   c t b . e   ( i ) . p o s ; 
 
 	 	     h o r _ v e c . v 1   =   h t e r m _ p o s   -   t e x t _ p o s ; 
 	 	     a r t _ s t r   =   a r t _ s t r   | |   h o r _ v e c _ s t r ; 
 	 	     i f   c t b . b o x t r   ( i ) 
 	 	     t h e n   a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . t r ; 
 	 	     e l s e   i f   c t b . b o x r   ( i ) 
 	 	     t h e n   a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . r ; 
 	 	     e l s e   i f   c t b . b o x b r   ( i ) 
 	 	     t h e n   a r t _ s t r   =   a r t _ s t r   | |   a r t . b o x . b r ; 
 	 	     e l s e   a r t _ s t r   =   a r t _ s t r   | |   a r t . h o r i z . t e r m ; 
 
 	 	     i f   d e t a i l _ s w 
 	 	     t h e n 
 	 	         d o ; 
 	 	             i f   c t b . b o x t r   ( i ) 
 	 	             t h e n   j   =   1 ; 
 	 	             e l s e   i f   c t b . b o x r   ( i ) 
 	 	             t h e n   j   =   2 ; 
 	 	             e l s e   i f   c t b . b o x b r   ( i ) 
 	 	             t h e n   j   =   3 ; 
 	 	             e l s e   j   =   4 ; 
 
 	 	             c a l l   i o a _   ( " ^ - ^ 2 d -   h o r i z o n t a l   f r o m   ^ f   t o   ^ f   ^ a " 
 	 	 	   | | 
 	 	 	   " ^ [ ^ / ^ - ^ 2 d -   ^ [ b o x   t o p   r i g h t   c o r n e r ^ ; b o x   r i g h t   T ^ ; b o x   " 
 	 	 	   | | 
 	 	 	   " b o t t o m   r i g h t   c o r n e r ^ ]   a t   ^ f ^ ; ^ 3 s ^ ] ^ / ^ 2 - H v e c ^ 3 (   ^ f ^ )   ^ a " 
 	 	 	   ,   c r s ,   s h o w   ( t e x t _ p o s ,   1 2 0 0 0 ) , 
 	 	 	   s h o w   ( h t e r m _ p o s ,   1 2 0 0 0 ) , 
 	 	 	   c o m p _ u t i l _ $ d i s p l a y   ( ( h o r _ v e c _ s t r ) ,   0 ,   " 0 " b ) , 
 	 	 	   ( j   <   4 ) ,   i ,   j ,   s h o w   ( h t e r m _ p o s ,   1 2 0 0 0 ) , 
 	 	 	   s h o w   ( t e x t _ p o s ,   1 2 0 0 0 ) , 
 	 	 	   s h o w   ( ( h o r _ v e c . v 1 ) ,   1 2 0 0 0 ) , 
 	 	 	   s h o w   ( h t e r m _ p o s ,   1 2 0 0 0 ) , 
 	 	 	   c o m p _ u t i l _ $ d i s p l a y   ( ( h o r _ v e c _ s t r ) ,   0 ,   " 0 " b ) ) ; 
 	 	         e n d ; 	 	 / * * / 
 	 	 	 	 / *   u p d a t e   t e x t   p o s i t i o n   * / 
 	 	     t e x t _ p o s   =   h t e r m _ p o s ; 
 	 	 e n d ; 
 	             e n d ; 
 
 / *   i f   n o t   a t   b a s e l i n e   * / 
 	         i f   b a s e   ^ =   0   &   c r s   =   c t b . s c n t 
 	         t h e n 
 	             d o ; 
 	                 i f   d e t a i l _ s w 
 	                 t h e n   c a l l   i o a _   ( " ^ -   $ -   B a s e l i n e   f r o m   ^ f   t o   0   a t   E O L . " , 
 	 	                 s h o w   ( b a s e ,   1 2 0 0 0 ) ) ; 
 	                 c a l l   v t a b _   ( 0 ) ; 
 	                 c t b e . b a s e   =   0 ; 
 	             e n d ; 
 	     e n d ; 
 
 	     t x t l i n . w i d t h   =   c t b . l i n e _ w i d t h ; 
 	     t x t l i n . w h i t e ,   t x t l i n . n o _ t r i m   =   " 0 " b ; 
 	     t x t l i n . l m a r g   =   c t b . l m a r g ; 
 
 	     c a l l   c o m p _ u t i l _ $ r e p l a c e _ t e x t   ( b l k p t r ,   " 0 " b ,   t x t l i n p t r , 
 	               a d d r   ( a r t _ s t r ) ) ; 
 
 	     p t b   =   c t b ; 	 	 / *   c o p y   c u r r e n t   t o   p r e v i o u s   * / 
 	 e n d   b u i l d _ l o o p ; 
 e n d _ l i n e _ l o o p : 
             e n d ; 
         e n d   l i n e _ l o o p ; 
 
 r e t u r n _ : 
         b l o c k . h d r . a r t   =   " 0 " b ; 	 	 / *   a r t   i n   t h i s   b l o c k   i s   d o n e   * / 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( "           ( a r t ) " ) ; 
         r e t u r n ; 
 % p a g e ; 
 h t a b _ : 
     p r o c ; 
 
         d c l   m o v e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   w o r k i n g   v a l u e   * / 
 
         m o v e   =   c r s _ p o s   -   t e x t _ p o s ; 
 
         h o r _ s f t . v 1   =   m o v e ; 
         a r t _ s t r   =   a r t _ s t r   | |   h o r _ s f t _ s t r ; 
         t e x t _ p o s   =   c r s _ p o s ; 
 / * * * *         i f   t x t l i n . q u a d   =   j u s t 
 / * * * *         t h e n   c t b . l i n e _ w i d t h   =   c t b . l i n e _ w i d t h   +   m o v e ; * / 
 
         i f   d e t a i l _ s w 
         t h e n   c a l l   i o a _   ( " ^ 2 - H s h f t ^ 3 (   ^ f ^ )   ^ a " ,   s h o w   ( t e x t _ p o s ,   1 2 0 0 0 ) , 
 	         s h o w   ( m o v e ,   1 2 0 0 0 ) ,   s h o w   ( c r s _ p o s ,   1 2 0 0 0 ) , 
 	         c o m p _ u t i l _ $ d i s p l a y   ( ( h o r _ s f t _ s t r ) ,   0 ,   " 0 " b ) ) ; 
 
     e n d   h t a b _ ; 
 % p a g e ; 
 v t a b _ : 
     p r o c   ( n e w _ b a s e ) ; 
 
         d c l   n e w _ b a s e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   n e w   b a s e l i n e   o f f s e t   * / 
 
         i f   n e w _ b a s e   =   b a s e 	 	 / *   i f   n o   a c t u a l   m o v e m e n t   * / 
         t h e n   r e t u r n ; 
 
         v e r t _ s f t . v 1   =   n e w _ b a s e   -   b a s e ; 	 / *   s e t   a m o u n t   i n   m i l l i p o i n t s   * / 
         a r t _ s t r   =   a r t _ s t r   | |   v e r t _ s f t _ s t r ; 
 
         i f   d e t a i l _ s w 
         t h e n   c a l l   i o a _   ( " ^ 2 - V s h f t   ( ^ f   ^ f   ^ f )   ^ a " ,   s h o w   ( b a s e ,   1 2 0 0 0 ) , 
 	         s h o w   ( ( v e r t _ s f t . v 1 ) ,   1 2 0 0 0 ) ,   s h o w   ( n e w _ b a s e ,   1 2 0 0 0 ) , 
 	         c o m p _ u t i l _ $ d i s p l a y   ( ( v e r t _ s f t _ s t r ) ,   0 ,   " 0 " b ) ) ; 
         b a s e   =   n e w _ b a s e ; 	 	 / *   s e t   n e w   b a s e l i n e   * / 
     e n d   v t a b _ ; 
 % p a g e ; 
 s h o w : 
     p r o c   ( d a t u m ,   s c a l e )   r e t u r n s   ( f i x e d   d e c   ( 1 1 ,   3 ) ) ; 
         d c l   d a t u m 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   s c a l e 	       f i x e d   b i n   ( 3 1 ) ; 
 
         r e t u r n   ( r o u n d   ( d e c   ( r o u n d   ( d i v i d e   ( d a t u m ,   s c a l e ,   3 1 ,   1 1 ) ,   1 0 ) ,   1 1 ,   4 ) ,   3 ) ) ; 
     e n d   s h o w ; 
 
 / *   D E B U G G I N G   S T U F F   * / 
 d t n : 
     e n t r y ; 
         d t _ s w   =   " 1 " b ; 
         g o t o   d b _ j o i n ; 
 d t f : 
     e n t r y ; 
         d t _ s w   =   " 0 " b ; 
         r e t u r n ; 
         d c l   d t _ s w 	       b i t   ( 1 )   s t a t i c   i n i t   ( " 0 " b ) ; 
 
 d b n : 
     e n t r y ; 
         d b _ s w   =   " 1 " b ; 
         g o t o   d b _ j o i n ; 
 d b f : 
     e n t r y ; 
         d b _ s w   =   " 0 " b ; 
         r e t u r n ; 
         d c l   d b _ s w 	       b i t   ( 1 )   s t a t i c   i n i t   ( " 0 " b ) ; 
 
 a l l n : 
     e n t r y ; 
         d b _ s w ,   d t _ s w   =   " 1 " b ; 
 d b _ j o i n : 
         d c l   d b _ l i n e 	       f i x e d   b i n   s t a t i c   i n i t   ( 0 ) ; 
         d c l   c o m _ e r r _ 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   c u _ $ a r g _ p t r 	       e n t r y   ( f i x e d   b i n ,   p t r ,   f i x e d   b i n ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   a r g 	       c h a r   ( a r g l )   b a s e d   ( a r g p ) ; 
         d c l   a r g l 	       f i x e d   b i n ; 
         d c l   a r g p 	       p t r ; 
         d c l   e r c d 	       f i x e d   b i n   ( 3 5 ) ; 
         d c l   e r r o r _ t a b l e _ $ n o a r g 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 
         d b _ l i n e   =   0 ; 
         c a l l   c u _ $ a r g _ p t r   ( 1 ,   a r g p ,   a r g l ,   e r c d ) ; 
         i f   e r c d   ^ =   0 
         t h e n 
             d o ; 
                 i f   e r c d   ^ =   e r r o r _ t a b l e _ $ n o a r g 
                 t h e n   c a l l   c o m _ e r r _   ( e r c d ,   " & d e v i c e & . _ w r i t e r _ " ) ; 
                 r e t u r n ; 
             e n d ; 
         d b _ l i n e   =   c o n v e r t   ( d b _ l i n e ,   a r g ) ; 
         r e t u r n ; 
 
 a l l f : 
     e n t r y ; 
         d b _ s w ,   d t _ s w   =   " 0 " b ; 
         r e t u r n ; 
 % p a g e ; 
 % i n c l u d e   c o m p _ a r t _ p a r t s ; 
 % i n c l u d e   c o m p _ b r k t y p e s ; 
 % i n c l u d e   c o m p _ D C d a t a ; 
 % i n c l u d e   c o m p _ d v t ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ m e t a c o d e s ; 
 % i n c l u d e   c o m p _ o p t i o n ; 
 % i n c l u d e   c o m p _ p a g e ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p s t a t ; 
 
     e n d   c o m p _ a r t _ ; 
    
 
 
  
 	 	         c o m p _ b l o c k _ c t l s _ . p l 1                         0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 0 8 . 7             2 8 2 9 1 5     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   s u b r o u t i n e   f o r   p r o c e s s i n g   a l l   b l o c k - b e g i n   a n d   b l o c k - e n d   c o n t r o l s   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ b l o c k _ c t l s _ : 
     p r o c   ( c t l _ i n d e x ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   c t l _ i n d e x 	       f i x e d ; 	 	 / *   i n d e x   v a l u e   f o r   d e s i r e d   c o n t r o l   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   b l k p t r 	       p t r ; 	 	 / *   l o c a l   v a l u e   * / 
         d c l   b l k u s d 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   1   b l o c k 	       a l i g n e d   l i k e   t e x t   b a s e d   ( b l k p t r ) ; 
         d c l   c o l _ s p a c e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   f o r   t a b l e   m o d e   c o l u m n   r u n o u t   * / 
         d c l   c t l _ i n f o _ p t r       p t r ; 
         d c l   c u r r e n t _ f c s 	       c h a r   ( 8 ) ; 
         d c l   E M P T Y 	       b i t   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 1 " b ) ; 
         d c l   e x i t _ s t r 	       c h a r   ( 2 5 6 )   v a r ; 	 / *   f o r   d e b u g g i n g   * / 
         d c l   f o o t r e f _ a r r a y     ( 3 )   c h a r   ( 4 8 )   v a r   s t a t i c ; 
         d c l   f o o t r e f s t r 	       c h a r   ( 2 5 6 )   v a r   s t a t i c ; 
         d c l   f t n b l k p t r 	       p t r ; 	 	 / *   f o o t n o t e   b l o c k   * / 
         d c l   1   f t n b l k 	       a l i g n e d   l i k e   t e x t   b a s e d   ( f t n b l k p t r ) ; 
         d c l   f t n c o l p t r 	       p t r   s t a t i c ; 	 / *   c o l u m n   h o l d i n g   t h e   n o t e   * / 
         d c l   f t n c o l n d x 	       f i x e d   b i n   s t a t i c ; / *   f o o t n o t e   b l o c k   i n d e x   * / 
         d c l   f t n c t 	       f i x e d   b i n ; 	 / *   l i n e   f o o t n o t e   c o u n t   f o r   d e b u g   * / 
         d c l   f t n d x 	       f i x e d   b i n   s t a t i c ; / *   f o r   f o o t r e f   m e a s u r i n g   * / 
         d c l   h e a d _ u s e d 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   s p a c e   u s e d   b y   p a g e   h e a d e r   * / 
         d c l   ( i ,   j ,   k ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   i p i c 	       f i x e d   b i n ; 	 / *   l o c a l   p i c t u r e   b l o c k   i n d e x   * / 
         d c l   L O A D 	       b i t   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 1 " b ) ; 
         d c l   1   m e a s 1 	       a l i g n e d   l i k e   t e x t _ e n t r y . c u r ; 
         d c l   1   m e a s 2 	       a l i g n e d   l i k e   t e x t _ e n t r y . c u r ; 
         d c l   o r p h a n 	       b i t   ( 1 )   s t a t i c ; 	 / *   n o t e   i s   a n   o r p h a n   * / 
         d c l   p a g e n o t e 	       b i t   ( 1 )   i n i t   ( " 0 " b ) ; 
         d c l   1   p l i n e 	       a l i g n e d   l i k e   t e x t _ e n t r y ; 
         d c l   p p t r 	       p t r ; 
         d c l   p t x t 	       c h a r   ( 1 0 2 0 )   v a r ;   / *   r e f e r e n c i n g   b l o c k   * / 
         d c l   r e f b l k p t r 	       p t r   s t a t i c   i n i t   ( n u l l ) ; 
         d c l   1   r e f b l k 	       a l i g n e d   l i k e   t e x t   b a s e d   ( r e f b l k p t r ) ; 
         d c l   r e f c o l n d x 	       f i x e d   b i n   s t a t i c ; / *   r e f e r e n c i n g   c o l u m n   * / 
         d c l   r e f l i n 	       f i x e d   b i n ; 	 / *   i n d e x   o f   f t n   r e f l i n e   * / 
         d c l   s a v e _ c o l n o 	       f i x e d   b i n   s t a t i c ; / *   t o   s a v e   c u r r e n t   c o l u m n   * / 
         d c l   u n s c a l e d 	       ( 1 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 1 ) ; 
         d c l   v s c a l e s 	       ( 7 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( 1 2 0 0 0 ,   9 0 0 0 ,   7 2 0 0 0 ,   2 8 3 4 . 6 5 ,   1 2 0 0 0 ,   1 0 0 0 ,   0 ) ; 
 
         d c l   ( a d d r ,   a d d r e l ,   c h a r ,   d i v i d e ,   f i x e d ,   l e n g t h ,   l t r i m ,   m a x ,   m i n ,   n u l l , 
                 s i z e ,   s u b s t r )     b u i l t i n ; 
 
         d c l   c o m p _ e r r o r _ t a b l e _ $ l i m i t a t i o n 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   c o m p _ e r r o r _ t a b l e _ $ u s a g e _ e r r o r 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 
         d c l   i o a _ $ r s 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   i o a _ $ r s n n l 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " b l o c k _ c t l s :   ( ^ d )   " " ^ a " " " ,   c t l _ i n d e x ,   c t l _ l i n e ) ; 
 
         e x i t _ s t r   =   " " ; 
         g o t o   c t l _   ( c t l _ i n d e x ) ; 
 
 c t l _   ( 7 ) : 	 	 	 	 / *   " . b b "   =   b l o c k - b e g i n   O B S O L E T E   * / 
         g o t o   b b l k _ c t l ; 
 
 c t l _   ( 8 ) : 	 	 	 	 / *   " . b a r t "   =   b e g i n - a r t w o r k   * / 
 c t l _   ( 9 ) : 	 	 	 	 / *   " . b b a "   =   b l o c k - b e g i n - a r t w o r k   * / 
         i f   s h a r e d . b l k p t r   =   n u l l   ( ) 	 / *   n e e d e d   n o w   t o   s e t   a r t   l i n e   c o u n t   * / 
         t h e n 
             d o ; 	 	 	 	 / * * / 
 	 	 	 	 / *   h e a d   p a g e ,   i f   n e e d e d   * / 
                 i f   ^ ( o p t i o n . g a l l e y _ o p t   |   p a g e . h d r . h e a d e d ) 
                 t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( h e a d _ u s e d ) ; 
 
                 c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " t x " , 
 	       a d d r   ( c u r r e n t _ p a r m s ) ,   ^ E M P T Y ) ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   t e x t   w i t h   a   p e n d i n g   h e a d e r ?   * / 
         i f   ^ t e x t . p a r m s . t i t l e _ m o d e   &   t e x t . p a r m s . h d r p t r   ^ =   n u l l   ( ) 
                   &   ^ s h a r e d . i n s e r t i n g _ h f c 
         t h e n   i f   t e x t . p a r m s . h d r p t r   - >   h f c b l k . h d r . c o u n t   >   0 
                   t h e n   c a l l   c o m p _ t i t l e _ b l o c k _   ( t e x t . p a r m s . h d r p t r ) ; 
 
         i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 	 / *   s e t   a r t l i n e   c o u n t e r   * / 
         t h e n   t e x t . h d r . a r t _ c o u n t   =   - 1 ; 
         e l s e   t e x t . h d r . a r t _ c o u n t   = 
 	         c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   u n s c a l e d ,   c t l . i n d e x ,   c t l . i n d e x , 
 	         a d d r   ( c t l . i n f o ) ,   0 ) ; 	 / * * / 
 	 	 	 	 / *   s e t   f l a g s   * / 
         t e x t . h d r . a r t ,   t e x t . p a r m s . a r t ,   c u r r e n t _ p a r m s . a r t   =   " 1 " b ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 0 ) : 	 	 	 / *   " . b b l k "   =   b e g i n - b l o c k   * / 
 b b l k _ c t l : 	 	 	 	 / *   S U S P E N D   A   N A M E D   B L O C K   H E R E   * / 
         i f   s h a r e d . f t n _ m o d e 
         t h e n   c a l l   c o m p _ b l o c k _ c t l s _   ( b e f _ c t l _ i n d e x ) ; 
 	 	 	 	 / *   r e s e t   s h a r e d   b l o c k   m o d e s   * / 
         c u r r e n t _ p a r m s . a r t ,   c u r r e n t _ p a r m s . k e e p ,   c u r r e n t _ p a r m s . t i t l e _ m o d e , 
                   s h a r e d . l i t e r a l _ m o d e   =   " 0 " b ; 
 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
         t h e n 
             d o ; 
                 t e x t . p a r m s . a r t , 	 	 / *   r e s e t   a c t i v e   b l o c k   m o d e s   * / 
 	       t e x t . p a r m s . k e e p ,   t e x t . p a r m s . t i t l e _ m o d e   =   " 0 " b ; 
 	 	 	 	 / *   f i n i s h   c u r r e n t   b l o c k   * / 
                 c a l l   c o m p _ b r e a k _   ( b l o c k _ b r e a k ,   0 ) ; 
             e n d ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 2 ) : 	 	 	 / *   " . b b e "   =   b l o c k - b e g i n - e q u a t i o n s   * / 
         g o t o   b b t _ c t l ; 
 
 c t l _   ( 1 3 ) : 	 	 	 / *   " . b b f "   =   b l o c k - b e g i n - f o o t n o t e   * / 
         i f   s h a r e d . f t n _ m o d e 	 	 / *   i f   n e s t e d   . b b f s   * / 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " N e s t e d   f o o t n o t e s . " ,   a d d r   ( c t l . i n f o ) , 
 	       c t l _ l i n e ) ; 
                 g o t o   r e t u r n _ ; 
             e n d ; 
 
         f o o t r e f s t r   =   " X " ; 	 	 / *   p r e s e t   f o o t r e f   a s   a   s i g n a l   * / 
 	 	 	 	 / *   a s s u m e   a   c o l u m n   n o t e   * / 
         s a v e _ c o l n o ,   f t n c o l n d x ,   r e f c o l n d x   =   p a g e . h d r . c o l _ i n d e x ; 
 
         i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 	 / *   i f   a n y   p a r a m e t e r s   a r e   g i v e n   * / 
         t h e n 
             d o ; 	 	 	 	 / * * / 
 	 	 	 	 / *   s u p p r e s s   r e f e r e n c e ?   * / 
                 i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   =   " s " 
 	       |   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   =   " u " 
                 t h e n 
 	 d o ; 
 	     f o o t r e f s t r   =   " " ; 	 	 / *   r e s e t   t h e   f o o t r e f   s i g n a l   * / 
 	     c t l . i n d e x   =   c t l . i n d e x   +   1 ; 
 	 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   s t e p   o v e r   p o s s i b l e   c o m m a   * / 
                 i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
                 t h e n   i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   =   " , " 
 	       t h e n   c t l . i n d e x   =   c t l . i n d e x   +   1 ; 
 	 	 	 	 / *   i f   t h e r e ' s   s t i l l   m o r e   * / 
                 i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
                 t h e n 
 	 d o ; 
 	     i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   =   " c " 
 	     t h e n   p a g e n o t e   =   " 0 " b ; 
 
 	     e l s e   i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   =   " p " 
 	     t h e n 
 	         d o ; 
 	             p a g e n o t e   =   " 1 " b ; 
 	             f t n c o l n d x   =   0 ; 
 	             i f   f o o t r e f s t r   =   " " 
 	             t h e n   r e f c o l n d x   =   0 ; 
 	             e l s e   r e f c o l n d x   =   p a g e . h d r . c o l _ i n d e x ; 
 	         e n d ; 
 	     e l s e 	 	 	 / *   t h a t ' s   a l l   w e   k n o w   a b o u t   * / 
 	               c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	     " U n k n o w n   f o o t n o t e   f o r m a t   k e y w o r d , " 
 	 	     | |   "     d e f a u l t   w i l l   b e   u s e d . " ,   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	 e n d ; 
             e n d ; 	 	 	 / * * / 
 
 / * 	 	 	 	 / *   i n s e r t   t e x t   h e a d e r   i n   c a s e   * / 
 / *         i f   t e x t . p a r m s . h d r p t r   ^ =   n u l l   ( ) 	 / *   f o o t n o t e   i s   f o r   i t   * / 
 / *                   &   s h a r e d . b l k p t r   ^ =   t e x t . p a r m s . h d r p t r   &   ^ s h a r e d . i n s e r t i n g _ h f c 
 / *         t h e n   i f   t e x t . p a r m s . h d r p t r   - >   h f c b l k . h d r . c o u n t   >   0 
 / *                   t h e n 
 / * 	   d o ; 
 / * 	       i f   s h a r e d . b l k p t r   =   n u l l   ( ) 
 / * 	       t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r , 
 / * 	 	       " t x " ,   a d d r   ( c u r r e n t _ p a r m s ) ,   ^ E M P T Y ) ; 
 / * 	       c a l l   c o m p _ t i t l e _ b l o c k _   ( t e x t . p a r m s . h d r p t r ) ; 
 / * 	   e n d ; * / 
 
         i f   s h a r e d . b l k p t r   =   n u l l   ( ) 	 / *   a n   o r p h a n ?   * / 
         t h e n 
             d o ; 
                 o r p h a n ,   p a g e n o t e   =   " 1 " b ; 
                 r e f c o l n d x   =   0 ; 
             e n d ; 
         e l s e   o r p h a n ,   p a g e n o t e   =   " 0 " b ; 
 
         i f   s h a r e d . f t n b l k _ d a t a _ p t r   =   n u l l 	 / *   a l l o c a t e   b l o c k   d a t a   * / 
         t h e n 
             d o ; 
                 s h a r e d . f t n b l k _ d a t a _ p t r   = 
 	       a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( f t n b l k _ d a t a ) ) ; 
                 f t n b l k _ d a t a . h i g h n d x   =   0 ; 
                 f t n b l k _ d a t a . b l k p t r   ( * )   =   n u l l ; 	 / *   a s s u r e   f o o t n o t e   f o n t s   a r e   l o a d e d   * / 
                 c a l l   c o m p _ f o n t _   ( L O A D ,   " f o o t n o t e " ,   " " ) ; 
                 c a l l   c o m p _ f o n t _   ( L O A D ,   " f o o t r e f " ,   s h a r e d . f o o t r e f _ f c s ) ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i f   n o   f o o t n o t e   h e a d e r   b l o c k   * / 
         i f   s h a r e d . f o o t n o t e _ h e a d e r _ p t r   =   n u l l 
         t h e n 
             d o ; 	 	 	 	 / *   g e t   o n e   * / 
                 c a l l   c o m p _ u t i l _ $ g e t b l k   ( - 1 ,   s h a r e d . f o o t n o t e _ h e a d e r _ p t r ,   " f h " , 
 	       c o n s t . f o o t n o t e _ p a r m s _ p t r ,   ^ E M P T Y ) ; 
                 f t n h d r . p a r m s . p a g e   =   p a g e n o t e ; 
                 f t n h d r . p a r m s . f o o t n o t e   =   " 1 " b ; 
                 f t n h d r . p a r m s . l e f t ,   f t n h d r . p a r m s . r i g h t   =   0 ; 
                 f t n h d r . h d r . t b l b l k   =   " 0 " b ; 
                 f t n h d r . h d r . c o l n o   =   - 1 ; 	 / * * / 
 	 	 	 	 / *   p u t   i n   a   n u l l   l i n e   * / 
                 c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . f o o t n o t e _ h e a d e r _ p t r ,   " 0 " b ,   " 0 " b ,   " 0 " b , 
 	       " 0 " b ,   a d d r   ( f t n h d r . i n p u t ) ) ; 
 
                 t x t l i n p t r   =   f t n h d r . l i n e _ a r e a . c u r   - >   l i n e _ a r e a . l i n p t r   ( 1 ) ; 
                 t x t l i n . t i t l e ,   t x t l i n . d e f a u l t   =   " 1 " b ; 
                 f t n h d r . h d r . u s e d ,   t x t l i n . l i n e s p a c e   =   1 2 0 0 0 ; 
                 t x t l i n . f o n t   = 
 	       f o o t n o t e _ p a r m s . f n t s t k   ( f o o t n o t e _ p a r m s . f n t s t k . i n d e x ) . e n t r y ; 
                 t x t l i n . l m a r g ,   t x t l i n . d e p t h   =   0 ; 
                 i f   p a g e n o t e 
                 t h e n   t x t l i n . r m a r g   =   p a g e . p a r m s . m e a s u r e ; 
                 e l s e   t x t l i n . r m a r g   =   c o l . p a r m s . m e a s u r e ; 
             e n d ; 
 
         i f   s h a r e d . s u p p r e s s _ f o o t r e f 	 / *   i f   u n r e f e r e n c e d   m o d e   * / 
         t h e n   f o o t r e f s t r   =   " " ; 	 	 / *   r e s e t   t h e   f o o t r e f   s i g n a l   * / 
 	 	 	 	 / *   c h e c k   l i m i t   f o r   p a g e d   n o t e s   * / 
         i f   s h a r e d . f t n _ r e s e t   =   " p a g e d "   &   s h a r e d . f t n r e f c t   >   9   &   ^ o p t i o n . g a l l e y _ o p t 
         t h e n 
             d o ; 	 	 	 	 / *   r e p o r t   t h e   e r r o r   * / 
                 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ u s a g e _ e r r o r , 
 	       a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	       " M o r e   t h a n   n i n e   f o o t n o t e s   g i v e n   f o r   t h i s   p a g e . " 
 	       | |   "   T h i s   n o t e   w i l l   b e   u n r e f e r e n c e d . " ) ; 
                 f o o t r e f s t r   =   " " ; 	 	 / *   r e s e t   t h e   f o o t r e f   s i g n a l   * / 
             e n d ; 
 
 / * 	 	 	 	 / *   h e a d   p a g e   i f   n e c e s s a r y   * / 
 / *         i f   ^ ( o p t i o n . g a l l e y _ o p t   |   p a g e . h d r . h e a d e d ) 
 / *         t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( h e a d _ u s e d ) ; * / 
 / *   c o u n t   a   n e w   f o o t n o t e   * / 
         f t n d x ,   f t n b l k _ d a t a . h i g h n d x   =   f t n b l k _ d a t a . h i g h n d x   +   1 ; 
 	 	 	 	 / *   g e t   a   b l o c k   f o r   t h e   n o t e   * / 
         c a l l   c o m p _ u t i l _ $ g e t b l k   ( - 1 ,   f t n b l k _ d a t a . b l k p t r   ( f t n d x ) ,   " f n " , 
                   c o n s t . f o o t n o t e _ p a r m s _ p t r ,   ^ E M P T Y ) ; 
         f t n b l k p t r   =   f t n b l k _ d a t a . b l k p t r   ( f t n d x ) ; 
         f t n b l k . p a r m s . p a g e   =   p a g e n o t e ; 
         f t n b l k . p a r m s . f o o t n o t e   =   " 1 " b ; 	 / *   s h o w   i t   a   f o o t n o t e   * / 
 
         i f   p a g e n o t e 	 	 	 / *   u s e   p a g e   p a r m s ?   * / 
         t h e n   f t n b l k . p a r m s . m e a s u r e   =   p a g e . p a r m s . m e a s u r e ; 
         e l s e 	 	 	 	 / *   u s e   c o l u m n   p a r m s   * / 
             d o ; 
                 f t n c o l p t r   =   p a g e . c o l u m n _ p t r   ( f t n c o l n d x ) ; 
                 f t n b l k . p a r m s . m e a s u r e   =   f t n c o l . p a r m s . m e a s u r e ; 
             e n d ; 
 
         f t n b l k . h d r . t b l b l k   =   " 0 " b ; 	 	 / *   n o t   a   t a b l e   b l o c k   * / 
         f t n b l k . h d r . o r p h a n   =   o r p h a n ; 	 / * * / 
 	 	 	 	 / *   s a v e   r e f b l k   f o r   e x i t   * / 
         f t n b l k . h d r . b l k p t r ,   r e f b l k p t r   =   s h a r e d . b l k p t r ; 
 
         i f   s h a r e d . t a b l e _ m o d e 	 	 / *   s e t   t a b l e   m o d e   s t u f f   * / 
         t h e n 
             d o ; 
                 t b l f m t p t r   =   t b l d a t a . f m t   ( t b l d a t a . n d x ) . p t r ; 
                 t b l c o l p t r   =   t b l f m t . c o l p t r   ( t b l f m t . c c o l ) ; 
             e n d ; 
 
         c u r r e n t _ f c s   =   c t l . f o n t . f c s _ s t r ; 
         f t n b l k . i n p u t . l i n e s p a c e   =   f o o t n o t e _ p a r m s . l i n e s p a c e ; 
         c t l . f o n t ,   c t l . c u r . f o n t ,   f t n b l k . i n p u t . f o n t   = 
                   f o o t n o t e _ p a r m s . f n t s t k   ( f o o t n o t e _ p a r m s . f n t s t k . i n d e x ) . e n t r y ; 
 
         i f   f o o t r e f s t r   =   " X " 	 	 / *   i s   t h e   r e f e r e n c e   s i g n a l   s t i l l   o n ?   * / 
         t h e n 
             d o ; 
                 f o o t r e f _ a r r a y   ( 2 )   =   l t r i m   ( c h a r   ( s h a r e d . f t n r e f c t ) ) ; 
                 c a l l   c o m p _ d v t . f o o t p r o c   ( f o o t r e f _ a r r a y ,   a d d r   ( c o m p _ d v t ) ) ; 
 
                 f o o t r e f s t r   = 
 	       s h a r e d . f o o t r e f _ f c s   | |   f o o t r e f _ a r r a y   ( 1 )   | |   f o o t r e f _ a r r a y   ( 2 ) 
 	       | |   f o o t r e f _ a r r a y   ( 3 )   | |   c u r r e n t _ f c s ; 
 
                 u n s p e c   ( m e a s 1 )   =   " 0 " b ; 
                 c a l l   c o m p _ m e a s u r e _   ( ( f o o t r e f s t r ) ,   a d d r   ( f t n b l k . i n p u t . f o n t ) ,   " 0 " b ,   " 0 " b , 
 	       " 0 " b ,   f t n b l k . p a r m s . m e a s u r e ,   a d d r   ( m e a s 1 ) ,   a d d r   ( m e a s 2 ) , 
 	       a d d r   ( f t n b l k . i n p u t . i n f o ) ) ;   / * * / 
 
                 f t n b l k . i n p u t _ l i n e   = 	 	 / *   s e t   r e f e r e n c e   i n t o   f o o t n o t e   * / 
 	       s h a r e d . f o o t r e f _ f c s   | |   f o o t r e f _ a r r a y   ( 1 )   | |   f o o t r e f _ a r r a y   ( 2 ) 
 	       | |   f o o t r e f _ a r r a y   ( 3 ) 
 	       | |   f o o t n o t e _ p a r m s . f n t s t k . e n t r y   ( f o o t n o t e _ p a r m s . f n t s t k . i n d e x ) 
 	       . f c s _ s t r   | |   E N ; 	 	 / * * / 
 	 	 	 	 / *   s e t   i n d e n t ,   u s e r   m a y   c h a n g e   i t   * / 
                 f o o t n o t e _ p a r m s . l e f t . i n d e n t ,   f t n b l k . p a r m s . l e f t . i n d e n t   = 
 	       m a x   ( f t n b l k . p a r m s . l e f t . i n d e n t ,   m e a s 1 . w i d t h   +   m e a s 1 . a v g   +   7 2 0 0 ) ; 
                 f t n b l k . i n p u t . h a n g i n g   =   " 1 " b ; 	 / *   m a k e   i t   a   h a n g e r   * / 
                 f t n b l k . i n p u t . l m a r g   =   0 ; 	 / *   s e t   a t   c o l   l m a r g   * / 
                 f t n b l k . i n p u t . l i n e s p a c e   =   0 ; 	 / *   n o   l e a d   f o r   h a n g e r s   * / 
                 f t n b l k . i n p u t . q u a d   =   q u a d l ; 	 / *   s e t   l e f t   * / 
 	 	 	 	 / *   p l a c e   t h e   r e f e r e n c e   * / 
                 c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( f t n b l k p t r ,   " 0 " b ,   " 0 " b ,   " 0 " b ,   " 0 " b , 
 	       a d d r   ( f t n b l k . i n p u t ) ) ; 	 / * * / 
 	 	 	 	 / *   r e s t o r e   l e a d   * / 
                 f t n b l k . i n p u t . l i n e s p a c e   =   f t n b l k . p a r m s . l i n e s p a c e ; 
                 f t n b l k . i n p u t . h a n g i n g   =   " 0 " b ; 	 / *   r e s e t   h a n g i n g   s w i t c h   * / 
 	 	 	 	 / *   r e s t o r e   a l i g n m e n t   * / 
                 f t n b l k . i n p u t . q u a d   =   f t n b l k . p a r m s . q u a d ; 
                 f t n b l k . i n p u t _ l i n e   =   " " ; 	 / *   e r a s e   t h e   r e f e r e n c e   * / 
             e n d ; 
 
         e l s e 
             d o ; 
                 f t n b l k . h d r . u n r e f   =   " 1 " b ; 	 / *   s h o w   a n   u n r e f f e d   n o t e   * / 
                 f t n b l k . p a r m s . l e f t . i n d e n t ,   f o o t n o t e _ p a r m s . l e f t . i n d e n t   =   0 ; 
             e n d ; 
 
         f t n b l k . h d r . b l k p t r   =   s h a r e d . b l k p t r ; 	 / *   s a v e   p o i n t e r s   f o r   e n d   * / 
         f t n b l k . h d r . p a r m s _ p t r   =   c o n s t . c u r r e n t _ p a r m s _ p t r ; 
         s h a r e d . b l k p t r   =   f t n b l k p t r ; 	 / *   s w i t c h   t o   f o o t n o t e   b l o c k   * / 
         c o n s t . c u r r e n t _ p a r m s _ p t r   =   a d d r   ( f t n b l k . p a r m s ) ; 
 
         t e x t . h d r . r e f e r   =   r e f c o l n d x ; 	 / *   s e t   r e f   c o l   * / 
         s h a r e d . f t n _ m o d e   =   " 1 " b ; 	 	 / *   w e ' r e   n o w   i n   f t n   m o d e   * / 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _ $ r s n n l   ( " f t n d x = ^ d ^ [   o r p h ^ ] ^ [   u n r e f ^ s ^ ;   r e f n o = ^ d ^ ]   " 
 	         | |   " r e f c o l = ^ d   f t n c o l = ^ d " ,   e x i t _ s t r ,   0 ,   f t n d x ,   o r p h a n , 
 	         t e x t . h d r . u n r e f ,   s h a r e d . f t n r e f c t ,   r e f c o l n d x ,   f t n c o l n d x ) ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 4 ) : 	 	 	 / *   " . b b i "   =   b l o c k - b e g i n - i n l i n e   * / 
         g o t o   b b l k _ c t l ; 
 
 c t l _   ( 1 5 ) : 	 	 	 / *   " . b b k "   =   b l o c k - b e g i n - k e e p   * / 
 	 	 	 	 / *   h e a d   p a g e   i f   n e c e s s a r y   * / 
         i f   ^ ( o p t i o n . g a l l e y _ o p t   |   p a g e . h d r . h e a d e d ) 
         t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( h e a d _ u s e d ) ; 
 
         i f   s h a r e d . b l k p t r   =   n u l l   ( ) 	 / *   n e e d   b l o c k   n o w   t o   c o u n t   k e e p   * / 
         t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " t x " , 
 	         a d d r   ( c u r r e n t _ p a r m s ) ,   ^ E M P T Y ) ; 
 	 	 	 	 / *   i s   t h e r e   a   h e a d e r   w a i t i n g ?   * / 
         i f   t e x t . p a r m s . h d r p t r   ^ =   n u l l   ( )   &   ^ s h a r e d . i n s e r t i n g _ h f c 
         t h e n   i f   t e x t . p a r m s . h d r p t r   - >   h f c b l k . h d r . c o u n t   >   0 
                   t h e n   c a l l   c o m p _ t i t l e _ b l o c k _   ( t e x t . p a r m s . h d r p t r ) ; 
 
         i f   l e n g t h   ( t e x t . i n p u t _ l i n e )   >   0 	 / *   a n y   l e f t o v e r s ?   * / 
         t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 
         t e x t . p a r m s . k e e p   =   " 1 " b ; 	 	 / *   s e t   f l a g   * / 
 
         i f   s h a r e d . t a b l e _ m o d e 
         t h e n 
             d o ; 
                 t b l f m t p t r   =   t b l d a t a . f m t   ( t b l d a t a . n d x ) . p t r ; 
                 d o   i   =   0   t o   t b l f m t . n c o l s ; 
 	 t b l f m t . c o l p t r   ( i )   - >   t b l c o l . p a r m s . k e e p   =   " 1 " b ; 
                 e n d ; 
             e n d ; 
 
         i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 	 / *   i f   n o   p a r a m e t e r   * / 
         t h e n   t e x t . h d r . k e e p _ c o u n t   =   - 1 ; 	 / *   k e e p   c o u n t   i s   i n d e t e r m i n a n t   * / 
         e l s e   t e x t . h d r . k e e p _ c o u n t   = 
 	         c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   u n s c a l e d ,   c t l . i n d e x ,   c t l . i n d e x , 
 	         a d d r   ( c t l . i n f o ) ,   0 ) ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 6 ) : 	 	 	 / *   " . b b l "   =   b l o c k - b e g i n - l i t e r a l   * / 
         s h a r e d . l i t e r a l _ m o d e   =   " 1 " b ; 
 
         i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
         t h e n   s h a r e d . l i t _ c o u n t   =   - 1 ; 
         e l s e   s h a r e d . l i t _ c o u n t   = 
 	         m a x   ( 
 	         c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   u n s c a l e d ,   c t l . i n d e x ,   c t l . i n d e x , 
 	         a d d r   ( c t l . i n f o ) ,   0 ) ,   1 ) ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 7 ) : 	 	 	 / *   " . b b n "   =   b l o c k - b e g i n - n a m e d   -   U N I M P L E M E N T E D   * / 
 	 	 	 	 / *   i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
       t h e n   c a l l   c o m p _ r e p o r t _   ( 2 , 0 ,   " B l o c k   n a m e   m u s t   b e   g i v e n . " , 
       a d d r ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
       e l s e   d o ; 
       c a l l   c o m p _ b r e a k _   ( b l o c k _ b r e a k , 0 ) ; 
       e n d ;   * / 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 8 ) : 	 	 	 / *   " . b b p "   =   b l o c k - b e g i n - p i c t u r e   * / 
         i f   s h a r e d . b l k p t r   ^ =   n u l l 
         t h e n 
             d o ; 
                 i f   t e x t . b l k t y p e   =   " p i " 	 / *   c h e c k   f o r   n e s t i n g   * / 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " N e s t e d   p i c t u r e s   n o t   a l l o w e d . " , 
 	               a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	     g o t o   r e t u r n _ ; 
 	 e n d ; 
 
                 b l k u s d   = 
 	       t e x t . h d r . u s e d   +   t e x t . h d r . f t n . u s d 
 	       +   b i n   ( t e x t . i n p u t _ l i n e   ^ =   " " )   *   t e x t . p a r m s . l i n e s p a c e ; 
             e n d ; 
 
         e l s e   b l k u s d   =   0 ; 	 	 / * * / 
 	 	 	 	 / *   c h e c k   c o u n t   l i m i t   * / 
         i f   s h a r e d . p i c t u r e . c o u n t   =   h b o u n d   ( s h a r e d . p i c t u r e . p t r ,   1 ) 
         t h e n 
             d o ; 
                 c t l _ i n f o _ p t r   =   a d d r   ( c t l . i n f o ) ; 
                 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ l i m i t a t i o n , 
 	       c t l _ i n f o _ p t r ,   c t l _ l i n e , 
 	       " T o o   m a n y   p i c t u r e   b l o c k s ;   p r o g r a m   l i m i t   i s   ^ d " , 
 	       h b o u n d   ( s h a r e d . p i c t u r e . p t r ,   1 ) ) ; 
                 g o t o   r e t u r n _ ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   h e a d   p a g e   i f   n e c e s s a r y   * / 
         i f   ^ ( o p t i o n . g a l l e y _ o p t   |   p a g e . h d r . h e a d e d ) 
         t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( h e a d _ u s e d ) ; 
 
         i p i c ,   s h a r e d . p i c t u r e . c o u n t   =   s h a r e d . p i c t u r e . c o u n t   +   1 ; 
 
         i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 	 / *   s i z e   g i v e n ?   * / 
         t h e n   i f   s e a r c h   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   " 0 1 2 3 4 5 6 7 8 9 " )   =   1 
                   t h e n 
 	   d o ; 
 	       s h a r e d . p i c t u r e . b l k   ( i p i c ) . s i z e   = 
 	                 c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   v s c a l e s ,   c t l . i n d e x ,   c t l . i n d e x , 
 	                 a d d r   ( c t l . i n f o ) ,   0 ) ; 	 / * * / 
 	 	 	 	 / *   v a l i d a t e   g i v e n   s i z e   * / 
 	       i f   s h a r e d . p i c t u r e . b l k   ( i p i c ) . s i z e   >   c o l . h d r . n e t   -   c o l . d e p t h _ a d j 
 	       t h e n 
 	           d o ; 
 	               c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	     " P i c t u r e   s i z e   e x c e e d s   n e t   p a g e   s p a c e . " ,   a d d r   ( c t l . i n f o ) , 
 	 	     c t l _ l i n e ) ; 
 	               s h a r e d . p i c t u r e . b l k   ( i p i c ) . s i z e   =   c o l . h d r . n e t   -   c o l . d e p t h _ a d j ; 
 	           e n d ; 
 	   e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   c r e a t e   t h e   p i c t u r e   * / 
         c a l l   c o m p _ u t i l _ $ g e t b l k   ( - 1 ,   s h a r e d . p i c t u r e . b l k   ( i p i c ) . p t r ,   " p i " , 
                   a d d r   ( c u r r e n t _ p a r m s ) ,   ^ E M P T Y ) ;   / * * / 
 	 	 	 	 / *   u n f o r m a t t e d   p i c t u r e ?   * / 
         i f   s h a r e d . p i c t u r e . b l k   ( i p i c ) . s i z e   >   0 
         t h e n 
             d o ; 
                 c a l l   c o m p _ s p a c e _   ( s h a r e d . p i c t u r e . b l k   ( i p i c ) . s i z e , 
 	       s h a r e d . p i c t u r e . b l k   ( i p i c ) . p t r ,   " 1 " b ,   " 1 " b ,   " 1 " b ,   " 0 " b ) ; 
                 s h a r e d . p i c t u r e . b l k   ( i p i c ) . p t r   - >   t e x t . h d r . n o _ t r i m   =   " 1 " b ; 
                 s h a r e d . p i c t u r e . s p a c e   = 	 / *   c o u n t   t o t a l   s p a c e   * / 
 	       s h a r e d . p i c t u r e . s p a c e   +   s h a r e d . p i c t u r e . b l k   ( i p i c ) . s i z e ; 
 
                 i f   s h a r e d . b l k p t r   =   n u l l 
                 t h e n   c a l l   c o m p _ u t i l _ $ p i c t u r e s   ( s h a r e d . b l k p t r ) ; 
 
                 i f   s h a r e d . b u g _ m o d e 
                 t h e n   c a l l   i o a _ $ r s n n l   ( " p i = ^ d   ^ f " ,   e x i t _ s t r ,   0 ,   s h a r e d . p i c t u r e . c o u n t , 
 	                 s h o w   ( s h a r e d . p i c t u r e . s p a c e ,   1 2 0 0 0 ) ) ; 
 
                 g o t o   r e t u r n _ ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   f o r m a t t e d   p i c t u r e   * / 
         s h a r e d . p i c t u r e _ m o d e   =   " 1 " b ; 	 / *   s w i t c h   t o   p i c t u r e   b l o c k   * / 
         s h a r e d . p i c t u r e . b l k   ( i p i c ) . p t r   - >   t e x t . h d r . b l k p t r   =   s h a r e d . b l k p t r ; 
         s h a r e d . p i c t u r e . b l k   ( i p i c ) . p t r   - >   t e x t . h d r . p a r m s _ p t r   = 
                   c o n s t . c u r r e n t _ p a r m s _ p t r ; 
         s h a r e d . b l k p t r   =   s h a r e d . p i c t u r e . b l k   ( i p i c ) . p t r ; 
         t e x t . p a r m s . k e e p   =   " 1 " b ; 
         c o n s t . c u r r e n t _ p a r m s _ p t r   =   a d d r   ( t e x t . p a r m s ) ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _ $ r s n n l   ( " p i = ^ d   ^ f " ,   e x i t _ s t r ,   0 ,   s h a r e d . p i c t u r e . c o u n t , 
 	         d e c   ( d i v i d e   ( s h a r e d . p i c t u r e . s p a c e ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) ) ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 9 ) : 	 	 	 / *   " . b b t "   =   b l o c k - b e g i n - t i t l e   * / 
 b b t _ c t l : 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
         t h e n   i f   t e x t . p a r m s . t i t l e _ m o d e 
                   t h e n 
 	   d o ; 
 	       c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " A l r e a d y   p r o c e s s i n g   a   t i t l e   b l o c k . " , 
 	                 a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	       g o t o   r e t u r n _ ; 
 	   e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   h e a d   t h e   p a g e   i f   n e c e s s a r y   * / 
         i f   ^ ( o p t i o n . g a l l e y _ o p t   |   p a g e . h d r . h e a d e d ) 
         t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( h e a d _ u s e d ) ; 
 
         i f   s h a r e d . b l k p t r   =   n u l l   ( ) 
         t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " t x " , 
 	         a d d r   ( c u r r e n t _ p a r m s ) ,   ^ E M P T Y ) ; 
 
         e l s e   i f   t e x t . i n p u t _ l i n e   ^ =   " " 
         t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 	 	 	 	 / *   f o r m a t   b r e a k   f o r   c u r r e n t   b l o c k   * / 
 
         i f   ^ t e x t . p a r m s . t i t l e _ m o d e   &   t e x t . p a r m s . h d r p t r   ^ =   n u l l   ( ) 
                   &   ^ s h a r e d . i n s e r t i n g _ h f c 
         t h e n   i f   t e x t . p a r m s . h d r p t r   - >   h f c b l k . h d r . c o u n t   >   0 
                   t h e n   c a l l   c o m p _ t i t l e _ b l o c k _   ( t e x t . p a r m s . h d r p t r ) ; 
 
         t e x t . p a r m s . t i t l e _ m o d e   =   " 1 " b ; 	 / *   s e t   t h e   m o d e   f l a g   * / 
         i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
         t h e n   t e x t . h d r . e q n _ l i n e _ c o u n t   =   - 1 ; 
         e l s e   t e x t . h d r . e q n _ l i n e _ c o u n t   = 
 	         c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   u n s c a l e d ,   c t l . i n d e x ,   c t l . i n d e x , 
 	         a d d r   ( c t l . i n f o ) ,   0 ) ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 2 2 ) : 	 	 	 / *   " . b e "   =   b l o c k - e n d   * / 
 b e _ c t l : 
         g o t o   b b l k _ c t l ; 
 
 c t l _   ( 2 3 ) : 	 	 	 / *   " . b e a "   =   b l o c k - e n d - a r t w o r k   * / 
         g o t o   e a r t _ c t l ; 
 
 c t l _   ( 2 5 ) : 	 	 	 / *   " . b e e "   =   b l o c k - e n d - e q u a t i o n s   * / 
         g o t o   b e t _ c t l ; 
 
 c t l _   ( 2 6 ) : 	 	 	 / *   " . b e f "   =   b l o c k - e n d - f o o t n o t e   * / 
         i f   ^ s h a r e d . f t n _ m o d e 	 	 / *   n o t   i n   f o o t n o t e   m o d e ?   * / 
         t h e n   g o t o   r e t u r n _ ; 
         e l s e   f t n b l k p t r   =   s h a r e d . b l k p t r ; 	 / * * / 
 	 	 	 	 / *   w a s   a   n o t e   g i v e n ?   * / 
         i f   f t n b l k . h d r . c o u n t   >   0   |   f t n b l k . i n p u t _ l i n e   ^ =   " " 
         t h e n 
             d o ; 	 	 	 	 / *   f i n i s h   t h e   n o t e   * / 
                 i f   f t n b l k . h d r . c o u n t   =   1 	 / *   f o r c e   l e a d   i n   c a s e   o n l y   * / 
                 t h e n   f t n b l k . i n p u t . l i n e s p a c e   = 	 / *   f o o t r e f   i s   t h e r e   * / 
 	                 m a x   ( f t n b l k . i n p u t . l i n e s p a c e ,   f t n b l k . p a r m s . l i n e s p a c e ) ; 
                 c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 
                 i f   s h a r e d . f t n _ r e s e t   ^ =   " h o l d " 	 / *   i f   n o t   h o l d i n g   n o t e s   * / 
                 t h e n 
 	 d o ; 
 	     i f   o r p h a n 	 	 / *   o r p h a n s   a r e   u n r e f f e d   p a g e d   n o t e s   * / 
 	     t h e n 
 	         d o ; 
 	             f t n b l k . h d r . u n r e f   =   " 1 " b ; 
 	             f t n c o l n d x ,   r e f c o l n d x   =   0 ; 
 	             f t n c o l p t r   =   p a g e . c o l u m n _ p t r   ( 0 ) ; 
 	         e n d ; 
 
 / * * * *   c o u n t   n o t e s   i n   c o n t a i n i n g   c o l u m n   * / 
 	     f t n c o l . h d r . f t n . c t   =   f t n c o l . h d r . f t n . c t   +   1 ; 
 	 	 	 	 / *   i f   f i r s t   f o o t n o t e ,   * / 
 	     i f   f t n c o l . h d r . f t n . c t   =   1 	 / *   c o u n t   s p a c e   f o r   t h e   h e a d e r   * / 
 	     t h e n   f t n c o l . h d r . f t n . u s d   =   f t n h d r . h d r . u s e d   +   1 2 0 0 0 ; 
 	     f t n c o l . h d r . f t n . u s d   = 	 / *   e x t r a   s p a c e   f o r   s e p a r a t o r   * / 
 	               f t n c o l . h d r . f t n . u s d   +   f t n b l k . h d r . u s e d   +   1 2 0 0 0 ; 
 	     f t n c o l . h d r . f t n . b l k n d x   ( f t n c o l . h d r . f t n . c t )   =   f t n d x ; 
 / * * * *   c o u n t   n o t e s   i n   r e f e r r i n g   c o l u m n   * / 
 	     i f   f t n c o l n d x   ^ =   r e f c o l n d x 
 	     t h e n   r e f c o l . h d r . f t n . c t   =   r e f c o l . h d r . f t n . c t   +   1 ; 
 / * * * *   c o u n t   n o t e s   i n   c o n t a i n i n g   b l o c k   * / 
 	 	 	 	 / *   c o u n t   i t   i n   t h e   p a g e   h e a d e r   * / 
 	     i f   f t n b l k . h d r . b l k p t r   =   n u l l   |   f t n c o l n d x   ^ =   r e f c o l n d x 
 	     t h e n   b l k p t r   =   c o l 0 . b l k p t r   ( 1 ) ; 
 	 	 	 	 / *   c o u n t   i t   i n   t h e   c u r r e n t   b l o c k   * / 
 	     e l s e   b l k p t r   =   f t n b l k . h d r . b l k p t r ; 
 
 	     i f   b l k p t r   ^ =   n u l l 
 	     t h e n 
 	         d o ; 
 	             b l o c k . h d r . f t n . c t   =   b l o c k . h d r . f t n . c t   +   1 ; 
 	             b l o c k . h d r . f t n . u s d   = 
 	 	   b l o c k . h d r . f t n . u s d   +   f t n b l k . h d r . u s e d   +   1 2 0 0 0 ; 
 	             b l o c k . h d r . f t n . b l k n d x   ( b l o c k . h d r . f t n . c t )   =   f t n d x ; 
 	         e n d ; 
 / * * * *   c o u n t   n o t e s   i n   r e f e r r i n g   b l o c k   * / 
 	     i f   r e f b l k p t r   ^ =   n u l l   &   f t n b l k . h d r . c o u n t   >   0 
 	               &   f t n c o l n d x   ^ =   r e f c o l n d x 
 	     t h e n   r e f b l k . h d r . f t n . c t   =   r e f b l k . h d r . f t n . c t   +   1 ; 
 	 e n d ; 
             e n d ; 
 
         f o o t n o t e _ p a r m s   =   f t n b l k . p a r m s ; 	 / *   s a v e   c u r r e n t   f o o t n o t e   p a r m s   * / 
 
         s h a r e d . f t n _ m o d e   =   " 0 " b ; 	 	 / *   c h a n g e   b a c k   t o   t e x t   m o d e   * / 
         c o n s t . c u r r e n t _ p a r m s _ p t r   =   f t n b l k . h d r . p a r m s _ p t r ; 
         s h a r e d . b l k p t r   =   f t n b l k . h d r . b l k p t r ; 	 / *   r e c o v e r   s u s p e n d e d   t e x t   b l o c k   * / 
 
         p a g e . h d r . c o l _ i n d e x   =   s a v e _ c o l n o ; 	 / *   r e c o v e r   s u s p e n d e d   c o l u m n   * / 
         s h a r e d . c o l p t r   =   p a g e . c o l u m n _ p t r   ( p a g e . h d r . c o l _ i n d e x ) ; 
 
         c t l . l i n e s p a c e   =   c u r r e n t _ p a r m s . l i n e s p a c e ; 
         c t l . c u r . f o n t ,   c t l . f o n t   = 
                   c u r r e n t _ p a r m s . f n t s t k   ( c u r r e n t _ p a r m s . f n t s t k . i n d e x ) . e n t r y ; 
 
         i f   f t n b l k . h d r . c o u n t   =   0 	 	 / *   g i v e   b a c k   e m p t y   b l o c k   * / 
         t h e n 
             d o ; 
                 c a l l   c o m p _ u t i l _ $ r e l b l k   ( - 1 ,   f t n b l k _ d a t a . b l k p t r   ( f t n d x ) ) ; 
                 i f   f t n d x   =   f t n b l k _ d a t a . h i g h n d x 	 / *   a d j u s t   h i g h   i n d e x   i f   l a s t   o n e   * / 
                 t h e n 
 	 d o   i   =   f t n b l k _ d a t a . h i g h n d x   t o   1   b y   - 1 
 	           w h i l e   ( f t n b l k _ d a t a . b l k p t r   ( i )   =   n u l l ) ; 
 	 e n d ; 
             e n d ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n 
             d o ; 
                 c a l l   i o a _ $ r s n n l   ( " f t n d x = ^ d / ^ d   f t n c o l = ^ d   ^ d / ^ f   f t n b l k = ^ d   ^ d / ^ f " , 
 	       e x i t _ s t r ,   0 ,   f t n d x ,   f t n b l k _ d a t a . h i g h n d x ,   f t n c o l n d x , 
 	       f t n c o l . h d r . f t n . c t , 
 	       d e c   ( d i v i d e   ( f t n c o l . h d r . f t n . u s d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	       f t n b l k . b l k n d x ,   f t n b l k . h d r . c o u n t , 
 	       d e c   ( d i v i d e   ( f t n b l k . h d r . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) ) ; 
             e n d ; 
 
         i f   f o o t r e f s t r   =   " " 	 	 / *   i f   n o   r e f e r e n c e   * / 
         t h e n 
             d o ; 
                 i f   ^ o r p h a n 	 	 	 / *   i f   n o t   a n   o r p h a n   * / 
                 t h e n 
 	 d o ; 	 	 	 / *   &   n o t e s   a r e n t   h e l d   * / 
 	     i f   s h a r e d . f t n _ r e s e t   ^ =   " h o l d " 
 	     t h e n 	 	 	 / *   c o u n t   t h e   n o t e   a n d   * / 
 	         d o ; 	 	 	 / *   a t t a c h   t o   p e n d i n g   t e x t ,   i f   a n y   * / 
 	             i f   r e f b l k . p a r m s . f i l l _ m o d e   &   r e f b l k . i n p u t _ l i n e   ^ =   " " 
 	             t h e n 
 	                 d o ; 
 	 	 f t n c t ,   r e f b l k . i n p u t . f t n . c t   =   r e f b l k . i n p u t . f t n . c t   +   1 ; 
 	 	 r e f b l k . i n p u t . f t n . b l k n d x   ( r e f b l k . i n p u t . f t n . c t )   =   f t n d x ; 
 	 	 i f   r e f c o l n d x   =   f t n c o l n d x 
 	 	 t h e n   r e f b l k . i n p u t . f t n . u s e d   = 
 	 	 	 r e f b l k . i n p u t . f t n . u s e d   +   f t n b l k . h d r . u s e d   +   1 2 0 0 0 ; 
 
 	 	 i f   s h a r e d . b u g _ m o d e 
 	 	 t h e n   c a l l   i o a _ $ r s n n l   ( " ^ a ^ - ( u n r e f   r e f c o l = ^ d   ^ d / ^ f " 
 	 	 	 | |   "   r e f b l k = ^ d   ^ d / ^ f   r e f l i n = ^ d   ^ d / ^ f " ,   e x i t _ s t r , 
 	 	 	 0 ,   e x i t _ s t r ,   r e f c o l n d x ,   r e f c o l . h d r . f t n . c t , 
 	 	 	 d e c   ( d i v i d e   ( r e f c o l . h d r . f t n . u s d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) , 
 	 	 	 1 1 ,   3 ) ,   r e f b l k . b l k n d x ,   r e f b l k . h d r . f t n . c t , 
 	 	 	 d e c   ( d i v i d e   ( r e f b l k . h d r . f t n . u s d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) , 
 	 	 	 1 1 ,   3 ) ,   r e f b l k . h d r . c o u n t   +   1 , 
 	 	 	 r e f b l k . i n p u t . f t n . c t , 
 	 	 	 d e c   ( 
 	 	 	 d i v i d e   ( r e f b l k . i n p u t . f t n . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) , 
 	 	 	 1 1 ,   3 ) ) ; 
 	                 e n d ; 
 
 	             e l s e 	 	 / *   a t t a c h   t o   l a s t   l i n e   i n   t h e   b l o c k   * / 
 	                 d o ; 
 	 	 l i n e _ a r e a _ p t r   =   r e f b l k . l i n e _ a r e a . c u r ; 
 	 	 t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( l i n e _ a r e a . n d x ) ; 
 	 	 f t n c t ,   t x t l i n . f t n . c t   =   t x t l i n . f t n . c t   +   1 ; 
 	 	 t x t l i n . f t n . b l k n d x   ( t x t l i n . f t n . c t )   =   f t n d x ; 
 	 	 t x t l i n . f t n . u s e d   = 
 	 	           t x t l i n . f t n . u s e d   +   f t n b l k . h d r . u s e d   +   1 2 0 0 0 ; 
 
 	 	 i f   s h a r e d . b u g _ m o d e 
 	 	 t h e n   c a l l   i o a _ $ r s n n l   ( " ^ a   r e f b l k = ^ d   ^ d / ^ f   r e f l i n = ^ d   ^ d / ^ f " , 
 	 	 	 e x i t _ s t r ,   0 ,   e x i t _ s t r ,   r e f b l k . b l k n d x , 
 	 	 	 r e f b l k . h d r . f t n . c t , 
 	 	 	 d e c   ( d i v i d e   ( r e f b l k . h d r . f t n . u s d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) , 
 	 	 	 1 1 ,   3 ) ,   i ,   t x t l i n . f t n . c t , 
 	 	 	 d e c   ( d i v i d e   ( t x t l i n . f t n . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 , 
 	 	 	 3 ) ) ; 
 	                 e n d ; 
 	         e n d ; 
 	 e n d ; 
 
                 e l s e 
 	 d o ; 
 	     i f   s h a r e d . b u g _ m o d e 
 	     t h e n   c a l l   i o a _ $ r s n n l   ( " ^ a   O R P H " ,   e x i t _ s t r ,   0 ,   e x i t _ s t r ) ; 
 
 	     i f   o p t i o n . g a l l e y _ o p t 
 	     t h e n   c a l l   c o m p _ i n s e r t _ c t l s _   ( i f t _ c t l _ i n d e x ) ; 
 	 e n d ; 
 
                 g o t o   r e t u r n _ ; 
             e n d ; 
 
         i f   s h a r e d . b l k p t r   ^ =   n u l l 	 	 / *   i s   t h e r e   a n   a c t i v e   b l o c k ?   * / 
         t h e n 
             d o ; 
                 i f   t e x t . p a r m s . f i l l _ m o d e 	 / *   i n s e r t   r e f e r e n c e   i n t o   f i l l e d   t e x t   * / 
                 t h e n 
 	 d o ; 	 	 	 / *   i f   t h e r e   i s   p e n d i n g   t e x t   * / 
 	     i f   t e x t . i n p u t _ l i n e   ^ =   " " 
 	     t h e n   ; 	 	 	 / * * / 
 
 	     e l s e   i f   t e x t . h d r . c o u n t   >   0 	 / *   i s   l a s t   l i n e   a   h a n g e r ?   * / 
 	     t h e n 
 	         d o ; 
 	             l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . c u r ; 
 	             i f   l i n e _ a r e a . l i n p t r   ( l i n e _ a r e a . n d x )   - >   t e x t _ e n t r y . h a n g i n g 
 	             t h e n 
 	                 d o ; 	 	 / *   y e s ,   h a n g   t h e   r e f   o n t o   t h e   h a n g e r   * / 
 	 	 r e f l i n   =   t e x t . h d r . c o u n t ; 
 	 	 g o t o   u n f i l l e d ; 
 	                 e n d ; 
 	         e n d ; 
 
 	     c t l _ l i n e   =   " " ; 
 	     c a l l   a p p e n d _ f o o t r e f   ( a d d r   ( c t l ) ) ; 
 	     r e f l i n   =   t e x t . h d r . c o u n t   +   1 ; / *   t o   b e   s u r e   i t   f i t s   * / 
 	     c a l l   c o m p _ f i l l _ ; 	 	 / * * / 
 	 	 	 	 / *   i f   n o t e s   a r e n t   h e l d   * / 
 	     i f   s h a r e d . f t n _ r e s e t   ^ =   " h o l d " 
 	     t h e n 
 	         d o ; 
 	             f t n c t ,   t e x t . i n p u t . f t n . c t   =   t e x t . i n p u t . f t n . c t   +   1 ; 
 	             i f   f t n c o l n d x   =   r e f c o l n d x 
 	             t h e n   t e x t . i n p u t . f t n . u s e d   = 
 	 	             t e x t . i n p u t . f t n . u s e d   +   f t n b l k . h d r . u s e d ; 
 	             t e x t . i n p u t . f t n . b l k n d x   ( t e x t . i n p u t . f t n . c t )   =   f t n d x ; 
 	             t e x t . i n p u t . f t n . r e f n o   ( t e x t . i n p u t . f t n . c t )   =   s h a r e d . f t n r e f c t ; 
 	         e n d ; 
 
 	     i f   s h a r e d . b u g _ m o d e 
 	     t h e n   c a l l   i o a _ $ r s n n l   ( " ^ a ^ - ( r e f n o = ^ d   r e f c o l = ^ d   ^ d / ^ f " 
 	 	     | |   "   r e f b l k = ^ d   ^ d / ^ f   r e f l i n = ^ d   ^ d / ^ f " ,   e x i t _ s t r ,   0 , 
 	 	     e x i t _ s t r ,   s h a r e d . f t n r e f c t ,   r e f c o l n d x ,   r e f c o l . h d r . f t n . c t , 
 	 	     d e c   ( d i v i d e   ( r e f c o l . h d r . f t n . u s d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	 	     r e f b l k . b l k n d x ,   r e f b l k . h d r . f t n . c t , 
 	 	     d e c   ( d i v i d e   ( r e f b l k . h d r . f t n . u s d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	 	     t e x t . h d r . c o u n t   +   1 ,   t e x t . i n p u t . f t n . c t , 
 	 	     d e c   ( d i v i d e   ( t e x t . i n p u t . f t n . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) ) 
 	 	     ; 
 	 e n d ; 
 
                 e l s e 	 	 	 / *   a p p e n d   r e f e r e n c e   t o   e n d   o f   * / 
 	 d o ; 	 	 	 / *   l a s t   u n f i l l e d   o u t p u t   l i n e   * / 
 
 / * 	     r e f l i n   =   t e x t . h d r . c o u n t ; 
 / * 	     i f   s h a r e d . t a b l e _ m o d e 	 / *   b a c k   u p   t o   l a s t   * / 
 / * 	     t h e n 	 	 	 / *   l i n e   f o r   t h i s   t a b l e   c o l u m n   * / 
 / * 	         d o ; 
 / * 	             t b l f m t p t r   =   t b l d a t a . f m t   ( t b l d a t a . n d x ) . p t r ; 
 / * 	             d o   r e f l i n   =   t e x t . h d r . c o u n t   t o   1   b y   - 1 
 / * 	 	   w h i l e   ( t e x t . l i n p t r   ( r e f l i n )   - >   t x t l i n . t b l c o l 
 / * 	 	   ^ =   t b l f m t . c c o l ) ; 
 / * 	             e n d ; 
 / * 	         e n d ; * / 
 
 u n f i l l e d : 
 	     l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . c u r ; 
 	     t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( l i n e _ a r e a . n d x ) ; 
 	     c a l l   a p p e n d _ f o o t r e f   ( t x t l i n p t r ) ; 
 
 	     c a l l   c o m p _ u t i l _ $ r e p l a c e _ t e x t   ( s h a r e d . b l k p t r ,   " 0 " b ,   t x t l i n p t r , 
 	               a d d r   ( c t l _ l i n e ) ) ; 	 / *   i f   n o t e s   a r e n t   h e l d   * / 
 	     i f   s h a r e d . f t n _ r e s e t   ^ =   " h o l d " 
 	     t h e n 
 	         d o ; 
 	             f t n c t ,   t x t l i n . f t n . c t   =   t x t l i n . f t n . c t   +   1 ; 
 	             t x t l i n . f t n . u s e d   =   t x t l i n . f t n . u s e d   +   f t n b l k . h d r . u s e d ; 
 	             t x t l i n . f t n . b l k n d x   ( t x t l i n . f t n . c t )   =   f t n d x ; 
 	             t x t l i n . f t n . r e f n o   ( t x t l i n . f t n . c t )   =   s h a r e d . f t n r e f c t ; 
 	         e n d ; 
 
 	     i f   s h a r e d . b u g _ m o d e 
 	     t h e n   c a l l   i o a _ $ r s n n l   ( " ^ a   r e f b l k = ^ d   ^ d / ^ f   r e f l i n = ^ d   ^ d / ^ f " 
 	 	     | |   "   f t n b l k = ^ d   ^ d / ^ f   r e f n o = ^ d " ,   e x i t _ s t r ,   0 ,   e x i t _ s t r , 
 	 	     r e f b l k . b l k n d x ,   r e f b l k . h d r . f t n . c t , 
 	 	     d e c   ( d i v i d e   ( r e f b l k . h d r . f t n . u s d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	 	     r e f l i n ,   t x t l i n . f t n . c t , 
 	 	     d e c   ( d i v i d e   ( t x t l i n . f t n . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	 	     f t n b l k . b l k n d x ,   f t n b l k . h d r . c o u n t , 
 	 	     d e c   ( d i v i d e   ( f t n b l k . h d r . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	 	     s h a r e d . f t n r e f c t ) ; 
 	 e n d ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   s t e p   f o o t n o t e   r e f e r e n c e   c o u n t   * / 
         s h a r e d . f t n r e f c t   =   s h a r e d . f t n r e f c t   +   1 ; 
 
         g o t o   r e t u r n _ ; 
 
 a p p e n d _ f o o t r e f : 	 	 	 / *   a p p e n d   f o o t r e f   s t r i n g   o n t o   t e x t   * / 
     p r o c   ( r e f l i n e p t r ) ; 
 
         d c l   r e f l i n e p t r 	       p t r ; 	 	 / *   l i n e   t o   b e   a p p e n d e d   * / 
         d c l   1   r e f l i n e 	       a l i g n e d   l i k e   t e x t _ e n t r y   b a s e d   ( r e f l i n e p t r ) ; 
 
         t x t s t r p t r   =   r e f l i n e . p t r ; 
 
         i f   r e f l i n e . s w s . f o o t r e f 	 	 / *   d o e s   l i n e   a l r e a d y   h a v e   a   f o o t r e f ?   * / 
         t h e n   c t l _ l i n e   = 	 	 	 / *   a d d   s e p a r a t o r   a n d   n e w   r e f   * / 
 	         t x t s t r   | |   r e f l i n e . c u r . f o n t . f n t p t r   - >   f o n t . f o o t s e p   | |   f o o t r e f s t r ; 
         e l s e   c t l _ l i n e   =   t x t s t r   | |   f o o t r e f s t r ; 
 	 	 	 	 / *   a d d   t h e   r e f e r e n c e   * / 
 
         r e f l i n e . s w s . f o o t r e f   =   " 1 " b ; 	 / *   s e t   f o o t r e f   f l a g   * / 
 
     e n d   a p p e n d _ f o o t r e f ; 
 
 c t l _   ( 2 7 ) : 	 	 	 / *   " . b e k "   =   b l o c k - e n d - k e e p   * / 
         c u r r e n t _ p a r m s . k e e p   =   " 0 " b ; 	 / *   r e s e t   s h a r e d   f l a g   * / 
 
         i f   s h a r e d . t a b l e _ m o d e 	 	 / *   r e s e t   a l l   t a b l e   c o l u m n   f l a g s   * / 
         t h e n 
             d o ; 
                 t b l f m t p t r   =   t b l d a t a . f m t   ( t b l d a t a . n d x ) . p t r ; 
                 d o   i   =   0   t o   t b l f m t . n c o l s ; 
 	 t b l f m t . c o l p t r   ( i )   - >   t b l c o l . p a r m s . k e e p   =   " 0 " b ; 
                 e n d ; 
             e n d ; 
 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   i s   t h e r e   a   b l o c k ?   * / 
         t h e n 
             d o ; 
                 t e x t . p a r m s . k e e p   =   " 0 " b ; 	 / *   r e s e t   b l o c k   f l a g   * / 
                 i f   t e x t . p a r m s . f i l l _ m o d e   &   t e x t . i n p u t _ l i n e   ^ =   " " 
                 t h e n   t e x t . i n p u t . e n d _ k e e p   =   " 1 " b ; 
                 e l s e 
 	 d o ; 
 	     l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . c u r ; 
 	     i f   l i n e _ a r e a . n d x   >   0 	 / *   i f   i t s   n o t   e m p t y   * / 
 	     t h e n   l i n e _ a r e a . l i n p t r   ( l i n e _ a r e a . n d x )   - >   t x t l i n . e n d _ k e e p   =   " 1 " b ; 
 	 e n d ; 
             e n d ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 2 8 ) : 	 	 	 / *   " . b e l "   =   b l o c k - e n d - l i t e r a l   * / 
 b e l _ c t l : 
         s h a r e d . l i t e r a l _ m o d e   =   " 0 " b ; 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 2 9 ) : 	 	 	 / *   " . b e n "   =   b l o c k - e n d - n a m e d   -   U N I M P L E M E N T E D   * / 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 3 0 ) : 	 	 	 / *   " . b e p "   =   b l o c k - e n d - p i c t u r e   * / 
         i f   ^ s h a r e d . p i c t u r e _ m o d e 	 	 / *   i f   n o t   i n   p i c t u r e   m o d e   * / 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " N o t   b u i l d i n g   a   p i c t u r e   b l o c k . " , 
 	       a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
                 g o t o   r e t u r n _ ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   a d d   c a p t i o n ( s )   * / 
         i f   t e x t . p a r m s . f t r p t r   ^ =   n u l l   ( )   &   ^ s h a r e d . i n s e r t i n g _ h f c 
         t h e n 
             d o ; 
                 i f   t e x t . i n p u t _ l i n e   ^ =   " " 
                 t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
                 i f   t e x t . p a r m s . f t r p t r   - >   h f c b l k . h d r . c o u n t   >   0 
                 t h e n   c a l l   c o m p _ t i t l e _ b l o c k _   ( t e x t . p a r m s . f t r p t r ) ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   f i n i s h   i t   * / 
         c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ;   / * * / 
 	 	 	 	 / *   r e c o r d   p i c t u r e   s i z e   * / 
         s h a r e d . p i c t u r e . b l k   ( s h a r e d . p i c t u r e . c o u n t ) . s i z e   =   t e x t . h d r . u s e d ; 
         s h a r e d . p i c t u r e . s p a c e   =   s h a r e d . p i c t u r e . s p a c e   +   t e x t . h d r . u s e d ; 
 
         s h a r e d . p i c t u r e _ m o d e   =   " 0 " b ; 	 / *   l e a v e   p i c t u r e   m o d e   * / 
 	 	 	 	 / *   r e c o v e r   s u s p e n d e d   b l o c k   * / 
         c o n s t . c u r r e n t _ p a r m s _ p t r   =   t e x t . h d r . p a r m s _ p t r ; 
         s h a r e d . b l k p t r   =   t e x t . h d r . b l k p t r ; 
 
         i f   s h a r e d . b l k p t r   =   n u l l 
         t h e n 
             d o ; 	 	 	 	 / *   h e a d   t h e   p a g e   i f   n e c e s s a r y   * / 
                 i f   ^ ( o p t i o n . g a l l e y _ o p t   |   p a g e . h d r . h e a d e d ) 
                 t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( h e a d _ u s e d ) ; 
                 c a l l   c o m p _ u t i l _ $ p i c t u r e s   ( s h a r e d . b l k p t r ) ; 
             e n d ; 
         e l s e   i f   t e x t . i n p u t _ l i n e   =   " " 
         t h e n   c a l l   c o m p _ u t i l _ $ p i c t u r e s   ( s h a r e d . b l k p t r ) ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _ $ r s n n l   ( " p i = ^ d   ^ f " ,   e x i t _ s t r ,   0 ,   s h a r e d . p i c t u r e . c o u n t , 
 	         s h o w   ( s h a r e d . p i c t u r e . s p a c e ,   1 2 0 0 0 ) ) ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 3 1 ) : 	 	 	 / *   " . b e t "   =   b l o c k - e n d - t i t l e   * / 
 b e t _ c t l : 
         c u r r e n t _ p a r m s . t i t l e _ m o d e   =   " 0 " b ; 	 / *   r e s e t   s h a r e d   f l a g   * / 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   a n d   a c t i v e   f l a g   * / 
         t h e n 
             d o ; 
                 t e x t . p a r m s . t i t l e _ m o d e   =   " 0 " b ; 
                 c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 	 	 	 	 / *   a   f o r m a t   b r e a k   * / 
             e n d ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 5 7 ) : 	 	 	 / *   " . e a r t "   =   e n d - a r t w o r k   * / 
 e a r t _ c t l : 
         c u r r e n t _ p a r m s . a r t   =   " 0 " b ; 	 	 / *   r e s e t   s h a r e d   f l a g   * / 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   r e s e t   a c t i v e   f l a g   * / 
         t h e n   t e x t . p a r m s . a r t   =   " 0 " b ; 
 
         g o t o   r e t u r n _ ; 
 
 r e t u r n _ : 
         c t l _ l i n e   =   " " ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( b l o c k _ c t l s : ^ [   ^ a ^ ] ) " ,   ( e x i t _ s t r   ^ =   " " ) ,   e x i t _ s t r ) ; 
 
         r e t u r n ; 
 % p a g e ; 
 s h o w : 
     p r o c   ( d a t u m ,   s c a l e )   r e t u r n s   ( f i x e d   d e c   ( 1 1 ,   3 ) ) ; 
         d c l   d a t u m 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   s c a l e 	       f i x e d   b i n   ( 3 1 ) ; 
 
         r e t u r n   ( r o u n d   ( d e c   ( r o u n d   ( d i v i d e   ( d a t u m ,   s c a l e ,   3 1 ,   1 1 ) ,   1 0 ) ,   1 1 ,   4 ) ,   3 ) ) ; 
     e n d   s h o w ; 
 % p a g e ; 
 / *   D C L S   T H A T   M U S T   B E   N E A R   I N C L S   D U E   T O   S Y M B O L   T A B L E   S I Z E   L I M I T   * / 
 
         d c l   1   f t n c o l 	       a l i g n e d   l i k e   c o l   b a s e d   ( f t n c o l p t r ) ; 
         d c l   1   r e f c o l 	       a l i g n e d   l i k e   c o l   b a s e d   ( p a g e . c o l u m n _ p t r   ( r e f c o l n d x ) ) ; 
         d c l   1   l o c o l 	       a l i g n e d   l i k e   c o l   b a s e d   ( l o c o l p t r ) ; 
         d c l   l o c o l p t r 	       p t r ; 
 
 % i n c l u d e   c o m p _ b r k t y p e s ; 
 % i n c l u d e   c o m p _ c o l u m n ; 
 % i n c l u d e   c o m p _ c t l _ i n d e x ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ f o n t ; 
 % i n c l u d e   c o m p _ f o o t n o t e s ; 
 % i n c l u d e   c o m p _ m e t a c o d e s ; 
 % i n c l u d e   c o m p _ o p t i o n ; 
 % i n c l u d e   c o m p _ p a g e ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t a b l e ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p _ d v t ; 
 % i n c l u d e   c o m p s t a t ; 
 % i n c l u d e   t r a n s l a t o r _ t e m p _ a l l o c ; 
 
     e n d   c o m p _ b l o c k _ c t l s _ ; 
    
 
 
  
 	 	         c o m p _ b r e a k _ . p l 1                                   0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 0 8 . 7             1 9 1 2 0 5     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   s u b r o u t i n e   i m p l e m e n t i n g   t e x t   b r e a k s   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ b r e a k _ : 
     p r o c   ( b r e a k _ t y p e ,   n e x t _ c o l ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   b r e a k _ t y p e 	       f i x e d   b i n ; 	 / *   b r e a k   t y p e ;   0   =   f o r m a t ,   1   =   b l o c k , 
 	 	 	 	       2   =   c o l u m n ,   3   =   n e e d ,   4   =   p a g e , 
 	 	 	 	       5   =   f o o t n o t e ,   6   =   h e a d e r , 
 	 	 	 	       7   =   f o o t e r   * / 
         d c l   n e x t _ c o l 	       f i x e d   b i n ; 	 / *   n e x t   c o l u m n   f o r   b r c ; 
 	 	 	 	       - 1   =   s t e p   c u r r e n t   c o l u m n 
 	 	 	 	       - 2   =   f o r c e   p a g e   m a k e u p   f o r   n e e d   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   b l k u s d 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   f o r   d e b u g   * / 
         d c l   b l k p t r 	       p t r ; 	 	 / *   l o c a l   r e f e r e n c i n g   * / 
         d c l   1   b l o c k 	       a l i g n e d   l i k e   t e x t   b a s e d   ( b l k p t r ) ; 
         d c l   b r k t y p e s 	       ( 0 : 7 )   c h a r   ( 4 )   v a r   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " f m t " ,   " b l k " ,   " c o l " ,   " p a g e " ,   " n e e d " ,   " f t n " ,   " h d r " , 
 	 	       " f t r " ) ; 
         d c l   c o l d e p t h 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   l o c a l   d e p t h   c o u n t e r * / 
         d c l   c o l n o 	       f i x e d   b i n ; 	 / *   l o c a l   c o l u m n   n u m b e r   * / 
         d c l   c o l s p a c e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   f o r   t a b l e   b a l a n c i n g   * / 
         d c l   h e a d _ u s e d 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   p a g e   h e a d e r   s p a c e   u s e d   * / 
         d c l   i 	 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   i c o l 	       f i x e d   b i n ; 	 / *   c o l u m n   c o u n t e r   * / 
         d c l   ( j ,   k ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   l e a d e r _ c o u n t       f i x e d   b i n ; 	 / *   n u m b e r   o f   l e a d e r   s t r i n g s   n e e d e d   * / 
         d c l   1   l o c a l _ f o n t       a l i g n e d   l i k e   f n t s t k _ e n t r y ; 
         d c l   l o c o l p t r 	       p t r ; 	 	 / *   f o r   l o c a l   r e f e r e n c i n g   * / 
         d c l   1   l o c o l 	       a l i g n e d   l i k e   c o l   b a s e d   ( l o c o l p t r ) ; 
 	 	 	 	 / *   f o r   l e a d e r   m e a s u r i n g   * / 
         d c l   1   m e a s 1 	       a l i g n e d   l i k e   t e x t _ e n t r y . c u r ; 
         d c l   1   m e a s 2 	       a l i g n e d   l i k e   t e x t _ e n t r y . c u r ; 
         d c l   1   n u l l p i c 	 	 	 / *   e m p t y   p i c t u r e   b l o c k   * / 
 	 	       s t a t i c   o p t i o n s   ( c o n s t a n t ) , 
 	 4   t y p e 	 	 	 / *   t y p e   =   p a g e / c o l   * / 
 	 	       c h a r   ( 4 )   i n i t   ( " " ) , 
 	 4   p l a c e 	 	 	 / *   p l a c e   =   t o p / c e n / b o t   * / 
 	 	       c h a r   ( 4 )   i n i t   ( " " ) , 
 	 4   p t r 	       p t r   i n i t   ( n u l l ) ,   / *   p o i n t e r   t o   b l o c k   * / 
 	 4   s i z e 	 	 	 / *   s i z e   o f   p i c t u r e   * / 
 	 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) ; 
         d c l   n x t l i n _ p t r 	       p t r ; 	 	 / *   f o r   t a b l e   l i n e   s o r t i n g   * / 
         d c l   1   n x t l i n 	       a l i g n e d   l i k e   t e x t _ e n t r y   b a s e d   ( n x t l i n _ p t r ) ; 
         d c l   o f l o 	       b i t   ( 1 ) ; 	 / *   o v e r f l o w   s w i t c h   * / 
         d c l   s a v e _ l e a d 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   l i n e s p a c e   f o r   t a b l e   l e a d e r   * / 
         d c l   S H O R T 	       b i t   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 1 " b ) ; 
         d c l   t a _ s i z e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   c a p t i o n   a d d e d   t o   b l o c k   * / 
 	 	 	 	 / *   f o r   e x p a n d i n g   < t i t l e > s   * / 
         d c l   t e m p _ l i n e 	       c h a r   ( 1 0 2 0 )   v a r ; 
         d c l   T E X T 	       b i t   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 1 " b ) ; 
         d c l   t h s l i n _ p t r 	       p t r ; 	 	 / *   f o r   t a b l e   l i n e   s o r t i n g   * / 
         d c l   1   t h s l i n 	       a l i g n e d   l i k e   t e x t _ e n t r y   b a s e d   ( t h s l i n _ p t r ) ; 
         d c l   t p t r 	       p t r ; 	 	 / *   t e m p   f o r   s o r t i n g   * / 
         d c l   t o s s 	       f i x e d   b i n ; 	 / *   c o u n t   o f   g a l l e y   l i n e s   d i s c a r d e d   * / 
 
         d c l   ( a d d r ,   b e f o r e ,   c e i l ,   c h a r ,   h b o u n d ,   i n d e x ,   l e n g t h ,   l t r i m ,   m a x ,   m i n , 
                 n u l l ,   s e a r c h ,   s u b s t r ) 
 	 	       b u i l t i n ; 
         d c l   ( c l e a n u p ,   c o m p _ a b o r t ,   e n d _ o u t p u t ) 
 	 	       c o n d i t i o n ; 
 
         d c l   c o n t i n u e _ t o _ s i g n a l _ 
 	 	       e n t r y   ( f i x e d   b i n   ( 3 5 ) ) ; 
 
         b l k p t r   =   n u l l ; 
         h e a d _ u s e d ,   j ,   k ,   t a _ s i z e   =   0 ; 
         o f l o   =   " 0 " b ; 
 
         i f   s h a r e d . t a b l e _ m o d e 
         t h e n 
             d o ; 
                 t b l f m t n d x   =   t b l d a t a . n d x ; 
                 t b l f m t p t r   =   t b l d a t a . f m t   ( t b l f m t n d x ) . p t r ; 
                 t b l c o l n d x   =   t b l f m t . c c o l ; 
                 t b l c o l p t r   =   t b l f m t . c o l p t r   ( t b l c o l n d x ) ; 
             e n d ; 
 
         o n   e n d _ o u t p u t   c a l l   c o n t i n u e _ t o _ s i g n a l _   ( 0 ) ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n 
             d o ; 
                 c a l l   i o a _ $ n n l   ( " b r e a k :   ( ^ a ^ [   g a l ^ ]   n x c o l = ^ d " ,   b r k t y p e s   ( b r e a k _ t y p e ) , 
 	       o p t i o n . g a l l e y _ o p t ,   n e x t _ c o l ) ; 
 
                 i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
                 t h e n 
 	 d o ; 
 	     c a l l   i o a _ $ n n l   ( "   ^ a = ^ d   e ^ d   u ^ f ( ^ f ) " ,   t e x t . b l k t y p e ,   t e x t . b l k n d x , 
 	               t e x t . h d r . c o u n t ,   s h o w   ( t e x t . h d r . u s e d ,   1 2 0 0 0 ) , 
 	               s h o w   ( t e x t . h d r . t r l _ w s ,   1 2 0 0 0 ) ) ; 
 
 	     i f   s h a r e d . t a b l e _ m o d e   &   t e x t . h d r . t b l b l k 
 	     t h e n   c a l l   i o a _ $ n n l   ( "   t b l = ^ d / ^ d   d ^ f / ^ f " ,   t b l c o l n d x ,   t b l f m t n d x , 
 	 	     s h o w   ( t b l c o l . d e p t h ,   1 2 0 0 0 ) , 
 	 	     s h o w   ( t b l f m t . m a x d e p t h ,   1 2 0 0 0 ) ) ; 
 
 	     c a l l   i o a _ $ n n l   ( " ^ [   f t n ^ d / ^ f ^ ; ^ 2 s ^ ] ^ [   A ^ ] ^ [   K ^ ] ^ [   W S ^ ] " 
 	               | |   " ^ [   M O D ^ ] ^ [   i n p = c ^ d ^ [   m ^ d   ^ d ^ ] ^ ] " ,   ( t e x t . h d r . f t n . c t   >   0 ) , 
 	               t e x t . h d r . f t n . c t ,   s h o w   ( t e x t . h d r . f t n . u s d ,   1 2 0 0 0 ) ,   t e x t . h d r . a r t , 
 	               t e x t . p a r m s . k e e p ,   t e x t . h d r . w h i t e ,   t e x t . h d r . m o d i f i e d , 
 	               ( l e n g t h   ( t e x t . i n p u t _ l i n e )   >   0 ) ,   l e n g t h   ( t e x t . i n p u t _ l i n e ) , 
 	               ( t e x t . i n p u t . m o d _ s t a r t   >   0 ) ,   t e x t . i n p u t . m o d _ s t a r t   >   0 , 
 	               t e x t . i n p u t . m o d _ l e n ) ; 
 
 	     c o l n o   =   t e x t . h d r . c o l n o ; 
 	 e n d ; 
                 e l s e   c o l n o   =   p a g e . h d r . c o l _ i n d e x ; 
 
                 c a l l   i o a _   ( " ) ^ / ^ 5 x ( c o l = ^ [ L O O S E ^ s ^ ; ^ d ^ ]   b ^ d   u ^ f ( ^ f ) / ^ f ( ^ f ) " 
 	       | |   " ^ [   f t n = ^ d / ^ f ^ ; ^ 2 s ^ ]   p a g = ^ a   c ^ d   u ^ f ( ^ f ) / ^ f ^ [   p i = ^ d   ^ f ^ ] ) " , 
 	       ( c o l n o   <   0 ) ,   c o l n o ,   c o l . h d r . b l k c t ,   s h o w   ( c o l . h d r . u s e d ,   1 2 0 0 0 ) , 
 	       s h o w   ( c o l . h d r . p s p c ,   1 2 0 0 0 ) ,   s h o w   ( c o l . h d r . n e t ,   1 2 0 0 0 ) , 
 	       s h o w   ( c o l . d e p t h _ a d j ,   1 2 0 0 0 ) ,   c o l . h d r . f t n . c t   >   0 ,   c o l . h d r . f t n . c t , 
 	       s h o w   ( c o l . h d r . f t n . u s d ,   1 2 0 0 0 ) ,   p a g e . h d r . p a g e n o , 
 	       p a g e . p a r m s . c o l s . c o u n t ,   s h o w   ( p a g e . h d r . u s e d ,   1 2 0 0 0 ) , 
 	       s h o w   ( p a g e . h d r . h d s p c ,   1 2 0 0 0 ) ,   s h o w   ( p a g e . h d r . n e t ,   1 2 0 0 0 ) , 
 	       ( s h a r e d . p i c t u r e . c o u n t   >   0 ) ,   s h a r e d . p i c t u r e . c o u n t , 
 	       s h o w   ( s h a r e d . p i c t u r e . s p a c e ,   1 2 0 0 0 ) ) ; 
             e n d ; 
 
 / *   i f   t h e r e   i s   a   c u r r e n t   b l o c k   * / 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
         t h e n 
 b l k l o o p : 
             d o ; 	 	 	 	 / *   t e x t   a r e a   b r e a k ?   * / 
                 i f   b r e a k _ t y p e   < =   p a g e _ b r e a k   &   t e x t . i n p u t _ l i n e   ^ =   " " 
                 t h e n 
 	 d o ; 	 	 	 / *   c o p y   f o n t   s t u f f   * / 
 	     l o c a l _ f o n t   =   t e x t . i n p u t . f o n t ; 
 
 	     i f   t e x t . i n p u t . q u a d   =   j u s t 	 / *   a   j u s t i f i e d   l i n e ?   * / 
 	     t h e n   i f   t e x t . i n p u t . c u r . w i d t h   +   t e x t . i n p u t . c u r . a v g   <   t e x t . i n p u t . n e t 
 	               t h e n   t e x t . i n p u t . q u a d   =   q u a d l ; 
 	 	 	 	 / *   i f   m o d i f i e d   t e x t   * / 
 / * * * * 	     i f   t e x t . i n p u t . m o d _ s t a r t   >   0 
 / * * * * 	               &   t e x t . i n p u t . m o d _ s t a r t   < =   l e n g t h   ( t e x t . i n p u t _ l i n e ) 
 / * * * * 	     t h e n   t e x t . i n p u t . c b a r . m o d   =   " 1 " b ; * / 
 	 	 	 	 / *   d o   t a b l e   c o l u m n   l e a d e r i n g   * / 
 	     i f   s h a r e d . t a b l e _ m o d e   &   t e x t . h d r . t b l b l k 
 	     t h e n 
 	         d o ; 
 	             i f   t b l c o l . l e a d e r   ^ =   " " 
 	             t h e n 
 	                 d o ; 	 	 / *   m e a s u r e   w h a t   w e   h a v e   * / 
 	 	 i f   t e x t . i n p u t . w i d t h   =   0 
 	 	 t h e n 
 	 	     d o ; 
 	 	         u n s p e c   ( m e a s 2 )   =   " 0 " b ; 
 	 	         c a l l   c o m p _ m e a s u r e _   ( t e x t . i n p u t _ l i n e , 
 	 	                   a d d r   ( t e x t . i n p u t . f o n t ) ,   " 0 " b ,   " 1 " b ,   q u a d l ,   0 , 
 	 	                   a d d r   ( t e x t . i n p u t . c u r ) ,   a d d r   ( m e a s 2 ) , 
 	 	                   a d d r   ( c t l . i n f o ) ) ; 
 	 	     e n d ; 	 	 / * * / 
 	 	 	 	 / *   r e c o r d   t e x t   w i d t h   * / 
 	 	 t e x t . i n p u t . w i d t h   =   t e x t . i n p u t . w i d t h   +   t e x t . i n p u t . a v g ; 
 	 	 	 	 / *   m e a s u r e   t h e   l e a d e r   * / 
 	 	 u n s p e c   ( m e a s 1 )   =   " 0 " b ; 
 	 	 c a l l   c o m p _ m e a s u r e _   ( ( t b l c o l . l e a d e r ) , 
 	 	           a d d r   ( t e x t . i n p u t . f o n t ) ,   " 0 " b ,   " 0 " b ,   q u a d l ,   0 , 
 	 	           a d d r   ( m e a s 1 ) ,   a d d r   ( m e a s 2 ) ,   a d d r   ( c t l . i n f o ) ) ; 
 	 	 	 	 / *   n u m b e r   o f   l e a d e r   s t r i n g s   n e e d e d   * / 
 	 	 l e a d e r _ c o u n t   = 
 	 	           d i v i d e   ( t e x t . i n p u t . r m a r g   -   t e x t . i n p u t . l m a r g 
 	 	           -   t e x t . i n p u t . w i d t h ,   m e a s 1 . w i d t h ,   1 7 ,   0 ) ; 
 
 	 	 i f   l e a d e r _ c o u n t   >   0 
 	 	 t h e n 
 	 	     d o ; 	 	 / *   s a v e   l e a d   f o r   l e a d e r   * / 
 	 	         s a v e _ l e a d   =   t e x t . i n p u t . l i n e s p a c e ; 
 	 	 	 	 / *   s e t   t e x t   w i t h   z e r o   l e a d   * / 
 	 	         t e x t . i n p u t . l i n e s p a c e   =   0 ; 
 	 	         c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . b l k p t r ,   " 0 " b ,   " 1 " b , 
 	 	                   " 0 " b ,   " 0 " b ,   a d d r   ( t e x t . i n p u t ) ) ; 
 	 	 	 	 / *   b u i l d   l e a d e r   s t r i n g   * / 
 	 	         t e x t . i n p u t _ l i n e   =   c o p y   ( t b l c o l . l e a d e r ,   l e a d e r _ c o u n t ) ; 
 	 	 	 	 / *   r e c o v e r   m e a s u r e   d a t a   * / 
 	 	         t e x t . i n p u t . w i d t h   =   l e a d e r _ c o u n t   *   m e a s 1 . w i d t h ; 
 	 	 	 	 / *   s e t   i t   r i g h t ,   w i t h   l e a d   * / 
 	 	         t e x t . i n p u t . q u a d   =   q u a d r ; 
 	 	         t e x t . i n p u t . l i n e s p a c e   =   s a v e _ l e a d ; 
 	 	     e n d ; 
 	                 e n d ; 
 	         e n d ; 
 
 	     i f   t e x t . p a r m s . l e f t . u n d e n t   >   0   &   t e x t . i n p u t . h a n g i n g 
 	               |   ( t e x t . i n p u t . f n t _ c h n g   &   l e n g t h   ( t e x t . i n p u t _ l i n e )   =   7 ) 
 	     t h e n   t e x t . i n p u t . l i n e s p a c e   =   0 ; 
 	     e l s e   t e x t . i n p u t . l i n e s p a c e   =   t e x t . p a r m s . l i n e s p a c e ; 
 
 	     i f   t e x t . i n p u t . f n t _ c h n g   &   l e n g t h   ( t e x t . i n p u t _ l i n e )   >   7 
 	     t h e n   t e x t . i n p u t . f n t _ c h n g   =   " 0 " b ; 
 
 	     i f   t e x t . i n p u t _ l i n e   ^ =   " " 
 	     t h e n   c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . b l k p t r , 
 	 	     ( t e x t . i n p u t . q u a d   ^ =   q u a d l   &   t e x t . i n p u t . w i d t h   =   0 ) ,   " 1 " b , 
 	 	     " 0 " b ,   t e x t . i n p u t . o f l o ,   a d d r   ( t e x t . i n p u t ) ) ; 
 
 	     t e x t . i n p u t _ l i n e   =   " " ; 	 / *   e r a s e   t h e   p a r t i a l   l i n e   * / 
 	     t e x t . i n p u t . f t n   =   t e x t _ e n t r y . f t n ; 
 	 	 	 	 / *   r e s e t   c o n t r o l s   * / 
 	     t e x t . i n p u t . h a n g i n g ,   t e x t . i n p u t . u n d _ p r o t ,   t e x t . i n p u t . f n t _ c h n g , 
 	               t e x t . i n p u t . p u n c t   =   " 0 " b ; 
 	     t e x t . p a r m s . l e f t . u n d e n t ,   t e x t . p a r m s . r i g h t . u n d e n t   =   0 ; 
 	     t e x t . i n p u t . c h r c t ,   t e x t . i n p u t . g a p s ,   t e x t . i n p u t . w i d t h , 
 	               t e x t . i n p u t . m o d _ s t a r t ,   t e x t . i n p u t . m o d _ l e n   =   0 ; 
 	     t e x t . i n p u t . q u a d   =   t e x t . p a r m s . q u a d ; 
 	     u n s p e c   ( t e x t . i n p u t . c b a r )   =   " 0 " b ; 
 	 e n d ; 
 
 / *   i f   a   b l o c k   i s   t o   b e   e n d e d   * / 
                 i f   b r e a k _ t y p e   >   f o r m a t _ b r e a k 	 / *   i f   o t h e r   t h a n   a   f o r m a t   b r e a k   * / 
 	       &   ^ t e x t . p a r m s . t i t l e _ m o d e 	 / *   a n d   n o t   b u i l d i n g   f o r m a t t e d   b l o c k s   * / 
 	       &   ^ s h a r e d . f t n _ m o d e 	 / *   a n d   n o t   b u i l d i n g   a   f o o t n o t e   * / 
 	       &   ^ t e x t . p a r m s . k e e p 	 / *   a n d   n o t   a   k e e p   b l o c k   * / 
                 t h e n 
 	 d o ; 	 	 	 / *   h e a d   p a g e   i f   n e e d e d   * / 
 	     i f   ^ ( o p t i o n . g a l l e y _ o p t   |   p a g e . h d r . h e a d e d ) 
 	     t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( h e a d _ u s e d ) ; 
 	     e l s e   i f   ^ o p t i o n . g a l l e y _ o p t 
 	     t h e n   h e a d _ u s e d   =   c o l 0 . b l k p t r   ( 1 )   - >   t e x t . h d r . u s e d ; 
 
 	     i f   b r e a k _ t y p e   <   n e e d _ b r e a k 	 / *   i f   a   t e x t   a r e a   b r e a k   * / 
 	     t h e n 
 	         d o ; 	 	 	 / *   i n s e r t   t e x t   h e a d i n g   * / 
 	             i f   t e x t . p a r m s . h d r p t r   ^ =   n u l l   ( )   &   ^ s h a r e d . i n s e r t i n g _ h f c 
 	             t h e n   i f   t e x t . p a r m s . h d r p t r   - >   h f c b l k . h d r . c o u n t   >   0 
 	 	   t h e n   c a l l   c o m p _ t i t l e _ b l o c k _   ( t e x t . p a r m s . h d r p t r ) ; 
 	 	 	 	 / *   i n s e r t   t e x t   c a p t i o n   * / 
 	             i f   t e x t . p a r m s . f t r p t r   ^ =   n u l l   ( )   &   ^ s h a r e d . i n s e r t i n g _ h f c 
 	             t h e n   i f   t e x t . p a r m s . f t r p t r   - >   h f c b l k . h d r . c o u n t   >   0 
 	 	   t h e n 
 	 	       d o ; 
 	 	           t a _ s i z e   =   t e x t . p a r m s . f t r p t r   - >   h f c b l k . h d r . u s e d ; 
 	 	           c a l l   c o m p _ t i t l e _ b l o c k _   ( t e x t . p a r m s . f t r p t r ) ; 
 	 	       e n d ; 
 	         e n d ; 
 
 	     i f   t e x t . h d r . t b l b l k 	 / *   s o r t   t a b l e   l i n e s   i n t o   p a g e   d e p t h   * / 
 	     t h e n 	 	 	 / *   a n d   c o l u m n   o r d e r   * / 
 s o r t : 
 	         b e g i n ; 	 	 / *   t o   a l l o c a t e   p o i n t e r   a r r a y s   * / 
 
 	             d c l   ( i ,   j ) 	           f i x e d   b i n ; 
 	             d c l   l o p t r 	           ( t e x t . h d r . c o u n t )   p t r ; 
 	             d c l   s w p 	           b i t   ( 1 ) ; 
 
 	             i   =   0 ; 	 	 / *   c o p y   p o i n t e r s   f o r   s o r t i n g   * / 
 	             d o   l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . f i r s t 
 	 	   r e p e a t   ( l i n e _ a r e a . n e x t )   w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 	                 d o   j   =   1   t o   l i n e _ a r e a . n d x ; 
 	 	 i   =   i   +   1 ; 
 	 	 l o p t r   ( i )   =   l i n e _ a r e a . l i n p t r   ( j ) ; 
 	                 e n d ; 
 	             e n d ; 
 p a s s : 	 	 	 	 / *   m a k e   a   s o r t i n g   p a s s   * / 
 	             s w p   =   " 0 " b ; 
 	             d o   j   =   1   t o   t e x t . h d r . c o u n t   -   1 ; 
 	                 t h s l i n _ p t r   =   l o p t r   ( j ) ; 
 	                 n x t l i n _ p t r   =   l o p t r   ( j   +   1 ) ; 
 	 	 	 	 / *   i f   t h i s   i s   d e e p e r   t h a n   n e x t   * / 
 	                 i f   t h s l i n . d e p t h   >   n x t l i n . d e p t h 
 	 	 	 	 / *   o r   f u r t h e r   r i g h t   a t   s a m e   d e p t h   * / 
 	 	       |   ( t h s l i n . d e p t h   =   n x t l i n . d e p t h 
 	 	       &   t h s l i n . l m a r g   >   n x t l i n . l m a r g ) 
 	                 t h e n 	 	 / *   s w a p   ' e m   * / 
 	 	 d o ; 
 	 	     t p t r   =   l o p t r   ( j ) ; 
 	 	     l o p t r   ( j )   =   l o p t r   ( j   +   1 ) ; 
 	 	     l o p t r   ( j   +   1 )   =   t p t r ; 
 	 	     s w p   =   " 1 " b ; 	 / *   s h o w   t h a t   w e ' v e   s w a p p e d   * / 
 	 	 e n d ; 
 	             e n d ; 
 
 	             i f   s w p 	 	 / *   i f   w e   s w a p p e d ,   t r y   a g a i n   * / 
 	             t h e n   g o t o   p a s s ; 	 / * * / 
 	 	 	 	 / *   f i x   l e a d   f o r   l i n e s   a t   s a m e   d e p t h   * / 
 	             d o   i   =   1   t o   t e x t . h d r . c o u n t   -   1 ; 
 	                 t h s l i n _ p t r   =   l o p t r   ( i ) ; 
 	                 n x t l i n _ p t r   =   l o p t r   ( i   +   1 ) ; 
 	                 i f   t h s l i n . d e p t h   =   n x t l i n . d e p t h 
 	                 t h e n   t h s l i n . l i n e s p a c e   =   0 ; 
 	             e n d ; 
 
 	             i   =   0 ; 	 	 / *   p u t   s o r t e d   p o i n t e r s   b a c k   * / 
 	             d o   l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . f i r s t 
 	 	   r e p e a t   ( l i n e _ a r e a . n e x t )   w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 	                 d o   j   =   1   t o   l i n e _ a r e a . n d x ; 
 	 	 i   =   i   +   1 ; 
 	 	 l i n e _ a r e a . l i n p t r   ( j )   =   l o p t r   ( i ) ; 
 	                 e n d ; 
 	             e n d ; 
 	         e n d   s o r t ; 	 	 / * * / 
 	 	 	 	 / *   e x p a n d   < t i t l e > s   * / 
 	     d o   l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . f i r s t 
 	               r e p e a t   ( l i n e _ a r e a . n e x t )   w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 	         d o   i   =   1   t o   l i n e _ a r e a . n d x ; 
 	             t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( i ) ; 
 	 	 	 	 / *   i f   a   < t i t l e >   l i n e   * / 
 	             i f   t x t l i n . t i t l e 	 / *   a n d   n o t   e m p t y   * / 
 	 	   &   l e n g t h   ( t x t l i n . p t r   - >   t x t s t r )   >   0 
 	             t h e n 
 	                 d o ; 
 	 	 t e m p _ l i n e   =   t x t l i n . p t r   - >   t x t s t r ; 
 
 	 	 i f   i n d e x   ( t e m p _ l i n e ,   s h a r e d . s y m _ d e l i m )   ^ =   0 
 	 	 t h e n 
 	 	     d o ; 
 	 	         c a l l   c o m p _ u s e _ r e f _   ( t e m p _ l i n e ,   t x t l i n . a r t ,   T E X T , 
 	 	                   a d d r   ( t x t l i n . i n f o ) ) ; 
 	 	         c a l l   c o m p _ u t i l _ $ r e p l a c e _ t e x t   ( s h a r e d . b l k p t r ,   " 1 " b , 
 	 	                   t x t l i n p t r ,   a d d r   ( t e m p _ l i n e ) ) ; 
 	 	     e n d ; 
 	                 e n d ; 
 	         e n d ; 
 	     e n d ; 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   s t a r t   G A L L E Y   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 	     i f   o p t i o n . g a l l e y _ o p t   &   t e x t . b l k t y p e   ^ =   " p i " 
 	               &   ( ^ t e x t . p a r m s . k e e p   |   s h a r e d . e n d _ o u t p u t ) 
 	     t h e n 
 	         d o ; 	 	 	 / * * / 
 	 	 	 	 / *   i f   m u l t i c o l u m n ,   s e t   a l l   * / 
 	 	 	 	 / *   o t h e r   c o l u m n s   t o   e m p t y   s o   * / 
 	 	 	 	 / *   w r i t e _ p a g e   i s n t   c o n f u s e d   * / 
 	             i f   p a g e . h d r . c o l _ c o u n t   >   0 
 	             t h e n 
 	                 d o   i c o l   =   0   t o   p a g e . h d r . c o l _ c o u n t ; 
 	 	 i f   i c o l   ^ =   p a g e . h d r . c o l _ i n d e x 
 	 	 t h e n   p a g e . c o l u m n _ p t r   ( i c o l )   - >   c o l . h d r   =   c o l h d r ; 
 	                 e n d ; 
 
 	             i f   t e x t . h d r . a r t 	 / *   e x p a n d   a r t w o r k   * / 
 	             t h e n 
 	                 d o ; 
 	 	 c o l d e p t h   =   0 ; 	 / *   a r t w o r k   n e e d s   t h e   d e p t h   * / 
 	 	 d o   l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . f i r s t 
 	 	           r e p e a t   ( l i n e _ a r e a . n e x t )   w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 	 	     d o   i   =   1   t o   l i n e _ a r e a . n d x ; 
 	 	         t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( i ) ; 
 	 	         t x t l i n . d e p t h   =   c o l d e p t h ; 
 	 	         c o l d e p t h   =   c o l d e p t h   +   t x t l i n . l i n e s p a c e ; 
 	 	     e n d ; 
 	 	 e n d ; 
 	 	 c a l l   c o m p _ a r t _   ( s h a r e d . b l k p t r ,   " 0 " b ) ; 
 	                 e n d ; 	 	 / * * / 
 	 	 	 	 / *   d i s c a r d   u n w a n t e d   l i n e s   * / 
 	             t o s s   =   0 ; 	 	 / *   c l e a r   d i s c a r d   c o u n t   * / 
 	             c o l d e p t h   =   0 ; 	 	 / *   t o   s e t   f i n a l   d e p t h   * / 
 	             d o   l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . f i r s t 
 	 	   r e p e a t   ( l i n e _ a r e a . n e x t )   w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 	                 d o   i   =   1   t o   l i n e _ a r e a . n d x ; 
 	 	 t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( i ) ; 
 	 	 	 	 / *   i f   b e f o r e   g a l l e y   r a n g e   o r   * / 
 	 	 	 	 / *   a   s p l i t   h e a d e r ,   d i s c a r d   i t   * / 
 	 	 i f   o p t i o n . l i n e _ 1   >   t x t l i n . l i n e n o 0   |   t x t l i n . b l k _ s p l t 
 	 	 t h e n 
 	 	     d o ; 	 	 / *   t h r o w   a w a y   a n y   f o o t n o t e s   * / 
 	 	         t e x t . h d r . f t n . c t   =   t e x t . h d r . f t n . c t   -   t x t l i n . f t n . c t ; 
 	 	         t e x t . h d r . f t n . u s d   =   t e x t . h d r . f t n . u s d   -   t x t l i n . f t n . u s e d ; 
 	 	         c o l . h d r . f t n . c t   =   c o l . h d r . f t n . c t   -   t x t l i n . f t n . c t ; 
 	 	         c o l . h d r . f t n . u s d   =   c o l . h d r . f t n . u s d   -   t x t l i n . f t n . u s e d ; 
 	 	         t e x t . h d r . u s e d   =   t e x t . h d r . u s e d   -   t x t l i n . l i n e s p a c e ; 
 	 	         t x t l i n . w i d t h ,   t x t l i n . l i n e s p a c e   =   0 ; 
 	 	         t x t l i n . f t n   =   t e x t _ e n t r y . f t n ; 
 	 	         t x t l i n . p t r   - >   t x t s t r   =   " " ; 
 	 	         t o s s   =   t o s s   +   1 ; 
 	 	     e n d ; 	 	 / * * / 
 	 	 	 	 / *   i f   a f t e r   g a l l e y   r a n g e ,   * / 
 	 	 e l s e   i f   t x t l i n . l i n e n o 0   >   o p t i o n . l i n e _ 2 
 	 	 t h e n 
 	 	     d o ; 	 	 / *   d i s c a r d   r e m a i n i n g   l i n e s   * / 
 	 	         d o   l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . f i r s t 
 	 	                   r e p e a t   ( l i n e _ a r e a . n e x t ) 
 	 	                   w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 	 	             d o   j   =   i   t o   l i n e _ a r e a . n d x ; 
 	 	                 t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( j ) ; 
 	 	 	 	 / *   t h r o w   a w a y   a n y   f o o t n o t e s   * / 
 	 	                 t e x t . h d r . f t n . c t   =   t e x t . h d r . f t n . c t   -   t x t l i n . f t n . c t ; 
 	 	                 t e x t . h d r . f t n . u s d   = 
 	 	 	       t e x t . h d r . f t n . u s d   -   t x t l i n . f t n . u s e d ; 
 	 	                 c o l . h d r . f t n . c t   =   c o l . h d r . f t n . c t   -   t x t l i n . f t n . c t ; 
 	 	                 c o l . h d r . f t n . u s d   = 
 	 	 	       c o l . h d r . f t n . u s d   -   t x t l i n . f t n . u s e d ; 
 	 	             e n d ; 
 	 	         e n d ; 
 	 	         t e x t . h d r . c o u n t   =   i   -   1 ; 
 	 	     e n d ; 
 	 	 e l s e 
 	 	     d o ; 
 	 	         t x t l i n . d e p t h   =   c o l d e p t h ; 
 	 	         c o l d e p t h   =   c o l d e p t h   +   t x t l i n . l i n e s p a c e ; 
 	 	     e n d ; 
 	                 e n d ; 
 	             e n d ; 	 	 / * * / 
 	 	 	 	 / *   a n y   l i n e s   l e f t ?   * / 
 	             i f   t e x t . h d r . c o u n t   >   t o s s   &   s h a r e d . p a s s _ c o u n t e r   < =   1 
 	 	   &   ^ o p t i o n . c h e c k _ o p t 
 	             t h e n 
 	                 d o ; 	 	 / *   c o l   s p a c e   u s e d 	   * / 
 	 	 c o l . h d r . u s e d   =   t e x t . h d r . u s e d ; 
 	 	 s h a r e d . p r i n t _ f l a g   =   " 1 " b ; 
 	 	 	 	 / *   w r i t e   t h e   " p a g e "   * / 
 	 	 c a l l   c o m p _ w r i t e _ p a g e _ ; 
 	                 e n d ; 	 	 / * * / 
 	 	 	 	 / *   i f   n o t   d o i n g   a   f o o t n o t e   * / 
 	             i f   b r e a k _ t y p e   ^ =   f o o t n o t e _ b r e a k 
 	             t h e n 
 	                 d o ; 	 	 / *   a n y   f o o t n o t e s ?   * / 
 	 	 i f   t e x t . h d r . f t n . c t   >   0 
 	 	 t h e n 
 	 	     d o ; 	 	 / *   e r a s e   t e x t   l i n e s 	   * / 
 	 	         d o   l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . f i r s t 
 	 	                   r e p e a t   ( l i n e _ a r e a . n e x t ) 
 	 	                   w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 	 	             d o   i   =   1   t o   l i n e _ a r e a . n d x ; 
 	 	                 t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( i ) ; 
 	 	                 t x t l i n . w i d t h ,   t x t l i n . l i n e s p a c e   =   0 ; 
 	 	                 t x t l i n . p t r   - >   t x t s t r   =   " " ; 
 	 	             e n d ; 
 	 	         e n d ; 
 
 	 	         c a l l   c o m p _ i n s e r t _ c t l s _   ( i f t _ c t l _ i n d e x ) ; 
 	 	     e n d ; 	 	 / * * / 
 	 	 	 	 / *   g i v e   b a c k   t e x t   b l o c k   * / 
 	 	 c a l l   c o m p _ u t i l _ $ r e l b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ) ; 
 	 	 	 	 / *   g i v e   b a c k   u n u s e d   f o o t n o t e s   * / 
 	 	 i f   s h a r e d . f t n b l k _ d a t a _ p t r   ^ =   n u l l   ( ) 
 	 	 t h e n 
 	 	     d o   i   =   f t n b l k _ d a t a . h i g h n d x   t o   1   b y   - 1 ; 
 	 	         i f   f t n b l k _ d a t a . b l k p t r   ( i )   ^ =   n u l l   ( ) 
 	 	         t h e n   c a l l   c o m p _ u t i l _ $ r e l b l k   ( - 1 , 
 	 	 	         f t n b l k _ d a t a . b l k p t r   ( i ) ) ; 
 
 
 	 	     e n d ; 	 	 / * * / 
 	 	 	 	 / *   g i v e   b a c k   p i c t u r e s   * / 
 	 	 i f   s h a r e d . p i c t u r e . c o u n t   >   0 
 	 	 t h e n 
 	 	     d o ; 
 	 	         d o   i   =   1   t o   s h a r e d . p i c t u r e . c o u n t ; 
 	 	             c a l l   c o m p _ u t i l _ $ r e l b l k   ( - 1 , 
 	 	 	   s h a r e d . p i c t u r e . b l k   ( i ) . p t r ) ; 
 	 	         e n d ; 
 	 	         s h a r e d . p i c t u r e . b l k   =   n u l l p i c ; 
 	 	         s h a r e d . p i c t u r e . s p a c e   =   0 ; 
 	 	     e n d ; 
 
 	 	 c o l . h d r   =   c o l h d r ; 	 / *   c l e a n   u p   c o l u m n   * / 
 	 	 p a g e . h d r . u s e d   =   0 ; 	 / *   a n d   p a g e   * / 
 	                 e n d ; 	 	 / * * / 
 	 	 	 	 / *   g i v e   b a c k   t e x t   b l o c k   * / 
 	             e l s e   c a l l   c o m p _ u t i l _ $ r e l b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ) 
 	 	             ; 
 
 	             g o t o   r e t u r n _ ; 
 	         e n d ; 	 	 	 / * * / 
 / * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   E N D   O F   G A L L E Y   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 	 	 	 	 / *   i s   b l o c k   e n d i n g ?   * / 
 	     i f   b r e a k _ t y p e   > =   b l o c k _ b r e a k   &   t e x t . b l k t y p e   ^ =   " p i " 
 	               &   ^ ( s h a r e d . t a b l e _ m o d e   &   t b l c o l n d x   >   0 ) 
 	     t h e n 
 	         d o ; 
 	             c o l . h d r . u s e d   =   c o l . h d r . u s e d   +   t e x t . h d r . u s e d ; 
 	             c o l . h d r . p s p c   =   t e x t . h d r . t r l _ w s ; 
 	 	 	 	 / *   a   f o o t n o t e   o r   a   f o o t e r ?   * / 
 	             i f   b r e a k _ t y p e   =   f o o t n o t e _ b r e a k   |   b r e a k _ t y p e   =   f o o t e r _ b r e a k 
 	             t h e n 
 	                 d o ; 	 	 / * * / 
 	 	 	 	 / *   f i l l   i n   p a g e   d e p t h   * / 
 	 	 d o   l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . f i r s t 
 	 	           r e p e a t   ( l i n e _ a r e a . n e x t )   w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 	 	     d o   i   =   1   t o   l i n e _ a r e a . n d x ; 
 	 	         t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( i ) ; 
 	 	         t x t s t r p t r   =   t x t l i n . p t r ; 
 	 	 	 	 / *   d o e s   i t   h a v e   s y m b o l s   o r   e s c a p e s ?   * / 
 / * * * * 	 	   i f   i n d e x   ( t x t s t r ,   s h a r e d . s y m _ d e l i m )   ^ =   0 
 / * * * * 	 	             |   ( ^ t x t l i n . a r t   &   i n d e x   ( t x t s t r ,   " * " )   ^ =   0 ) 
 / * * * * 	 	   t h e n 
 / * * * * 	 	       d o ; 
 / * * * * 	 	           t m p l i n e   =   t x t s t r ; 
 / * * * * 	 	 	 	 / *   c o p y   t h e   t e x t   * / 
 / * * * * 	 	           i f   i n d e x   ( t m p l i n e ,   s h a r e d . s y m _ d e l i m )   ^ =   0 
 / * * * * 	 	           t h e n   c a l l   c o m p _ u s e _ r e f _   ( t m p l i n e ,   t x t l i n . a r t ,   " 1 " b , 
 / * * * * 	 	 	           a d d r   ( t x t l i n . i n f o ) ) ; 
 / * * * * 
 / * * * * 	 	           i f   i n d e x   ( t m p l i n e ,   " * " )   ^ =   0 
 / * * * * 	 	           t h e n   c a l l   c o m p _ u t i l _ $ e s c a p e   ( t m p l i n e , 
 / * * * * 	 	 	           a d d r   ( t x t l i n . i n f o ) ) ; 
 / * * * * 
 / * * * * 	 	           c a l l   c o m p _ u t i l _ $ r e p l a c e _ t e x t   ( s h a r e d . b l k p t r , 
 / * * * * 	 	 	 ( t x t l i n . q u a d   ^ =   q u a d l   &   t x t l i n . q u a d   ^ =   j u s t ) , 
 / * * * * 	 	 	 t x t l i n p t r ,   a d d r   ( t m p l i n e ) ) ; 
 / * * * * 	 	       e n d ; * / 
 
 	 	         t x t l i n . d e p t h   =   c o l . h d r . d e p t h ; 
 	 	         c o l . h d r . d e p t h   =   c o l . h d r . d e p t h   +   t x t l i n . l i n e s p a c e ; 
 	 	     e n d ; 
 	 	 e n d ; 
 
 	 	 i f   t e x t . h d r . a r t 
 	 	 t h e n   c a l l   c o m p _ a r t _   ( s h a r e d . b l k p t r ,   " 0 " b ) ; 
 
 / * * * * 	 	 i f   b r e a k _ t y p e   =   h e a d e r _ b r e a k   |   b r e a k _ t y p e   =   f o o t n o t e _ b r e a k 
 / * * * * 	 	 t h e n   p a g e . h d r . u s e d   =   p a g e . h d r . u s e d   +   t e x t . h d r . u s e d ; * / 
 
 	 	 s h a r e d . b l k p t r   =   n u l l   ( ) ; 
 / * * * * 	 	 i f   b r e a k _ t y p e   ^ =   f o o t e r _ b r e a k   &   s h a r e d . p i c t u r e . c o u n t   >   0 
 / * * * * 	 	 t h e n   c a l l   c o m p _ u t i l _ $ p i c t u r e s   ( s h a r e d . b l k p t r ) ; * / 
 	                 e n d ; 
 
 	             e l s e   i f   t e x t . c o l n o   > =   0   / *   t e x t   a r e a   b r e a k ?   * / 
 	             t h e n 
 	                 d o ; 
 	 	 i f   p a g e . h d r . c o l _ i n d e x   =   0 
 	 	 t h e n   p a g e . h d r . u s e d   =   p a g e . h d r . u s e d   +   t e x t . h d r . u s e d ; 
 	 	 e l s e   p a g e . h d r . u s e d   = 
 	 	 	 m a x   ( p a g e . h d r . u s e d ,   c o l . h d r . u s e d   +   c o l 0 . h d r . u s e d ) 
 	 	 	 ; 	 / * * / 
 	 	 	 	 / *   h a s   p a g e   o v e r f l o w e d ?   * / 
 	 	 i f   ( p a g e . h d r . c o l _ i n d e x   =   0 
 	 	           |   p a g e . h d r . c o l _ i n d e x   =   p a g e . p a r m s . c o l s . c o u n t ) 
 	 	           &   ( c o l . h d r . u s e d   +   c o l . h d r . f t n . u s d   +   c o l . d e p t h _ a d j 
 	 	           >   c o l . h d r . n e t   |   b r e a k _ t y p e   =   n e e d _ b r e a k ) 
 	 	 t h e n   o f l o   =   " 1 " b ; 	 / * * / 
 	 	 	 	 / *   s h o w   c u r r e n t   b l o c k   u s e d   * / 
 	 	 s h a r e d . b l k p t r   =   n u l l   ( ) ; 
 	                 e n d ; 
 	         e n d ; 
 	 e n d ; 	 	 	 / *   e n d   b l o c k   e n d   l o o p   * / 
             e n d ; 	 	 	 / *   e n d   l o o p   f o r   c u r r e n t   b l o c k   * / 
 
 / *   i s   p a g e   m a k e u p   n e e d e d ?   * / 
         i f   p a g e . h d r . u s e d   >   0   & 	 	 / * * / 
                   ( b r e a k _ t y p e   =   p a g e _ b r e a k 	 / *   a   p a g e   b r e a k ?   * / 
 	 	 	 	 / *   o r   a   n e e d   b r e a k ?   * / 
                   |   b r e a k _ t y p e   =   n e e d _ b r e a k   &   ( o f l o   |   n e x t _ c o l   =   - 2 ) 
 	 	 	 	 / *   o r   r e t u r n i n g   t o   c o l   0 ?   * / 
                   |   b r e a k _ t y p e   =   c o l u m n _ b r e a k   &   n e x t _ c o l   =   0 
 	 	 	 	 / *   o r   p a g e   o v e r f l o w ?   * / 
                   |   o f l o   &   b r e a k _ t y p e   =   b l o c k _ b r e a k ) 
         t h e n 
             d o ; 
                 c a l l   c o m p _ m a k e _ p a g e _   ( b r e a k _ t y p e , 
 	       b r e a k _ t y p e   =   c o l u m n _ b r e a k   &   n e x t _ c o l   =   0 ) ; 
 
                 i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
                 t h e n   i f   t e x t . h d r . c o l n o   > =   0 
 	       t h e n 
 	           d o ; 
 	               c o l n o ,   p a g e . h d r . c o l _ i n d e x   =   t e x t . h d r . c o l n o ; 
 	               s h a r e d . c o l p t r   =   p a g e . c o l u m n _ p t r   ( c o l n o ) ; 
 	               c o l . h d r . u s e d   =   m a x   ( c o l . h d r . u s e d   -   t e x t . h d r . u s e d ,   0 ) ; 
 	               p a g e . h d r . u s e d   = 
 	 	     m a x   ( c o l . h d r . u s e d ,   p a g e . h d r . u s e d   -   t e x t . h d r . u s e d ,   0 ) ; 
 	           e n d ; 
             e n d ; 
 
 r e t u r n _ : 
         i f   s h a r e d . b u g _ m o d e 
         t h e n 
             d o ; 
                 c a l l   i o a _ $ n n l   ( " ^ 5 x ( b r e a k :   " ) ; 
 
                 i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
                 t h e n 
 	 d o ; 
 	     c a l l   i o a _ $ n n l   ( " ^ a = ^ d   e ^ d   u ^ f ( ^ f ) " ,   t e x t . b l k t y p e ,   t e x t . b l k n d x , 
 	               t e x t . h d r . c o u n t ,   s h o w   ( t e x t . h d r . u s e d ,   1 2 0 0 0 ) , 
 	               s h o w   ( t e x t . h d r . t r l _ w s ,   1 2 0 0 0 ) ) ; 
 
 	     i f   s h a r e d . t a b l e _ m o d e   &   t e x t . h d r . t b l b l k 
 	     t h e n   c a l l   i o a _ $ n n l   ( "   t b l = ^ d / ^ d   d ^ f / ^ f " ,   t b l c o l n d x ,   t b l f m t n d x , 
 	 	     s h o w   ( t b l c o l . d e p t h ,   1 2 0 0 0 ) , 
 	 	     s h o w   ( t b l f m t . m a x d e p t h ,   1 2 0 0 0 ) ) ; 
 
 	     c a l l   i o a _ $ n n l   ( " ^ [   f t n ^ d / ^ f ^ ; ^ 2 s ^ ] ^ [   A ^ ] ^ [   K ^ ] ^ [   M O D ^ ] ) ^ / ^ - ( " , 
 	               ( t e x t . h d r . f t n . c t   >   0 ) ,   t e x t . h d r . f t n . c t , 
 	               s h o w   ( t e x t . h d r . f t n . u s d ,   1 2 0 0 0 ) ,   t e x t . h d r . a r t ,   t e x t . p a r m s . k e e p , 
 	               t e x t . h d r . m o d i f i e d ) ; 
 	 e n d ; 
 
                 c a l l   i o a _ $ n n l   ( " c o l = ^ [ L O O S E ^ s ^ ; ^ d ^ ]   b ^ d   u ^ f ( ^ f ) / ^ f ( ^ f ) " 
 	       | |   " ^ [   f t n = ^ d / ^ f ^ ; ^ 2 s ^ ]   " ,   ( c o l n o   <   0 ) ,   c o l n o ,   c o l . h d r . b l k c t , 
 	       s h o w   ( c o l . h d r . u s e d ,   1 2 0 0 0 ) ,   s h o w   ( c o l . h d r . p s p c ,   1 2 0 0 0 ) , 
 	       s h o w   ( c o l . h d r . n e t ,   1 2 0 0 0 ) ,   s h o w   ( c o l . d e p t h _ a d j ,   1 2 0 0 0 ) , 
 	       ( c o l . h d r . f t n . c t   >   0 ) ,   c o l . h d r . f t n . c t , 
 	       s h o w   ( c o l . h d r . f t n . u s d ,   1 2 0 0 0 ) ) ; 
 
                 c a l l   i o a _   ( " p a g = ^ a   c ^ d   u ^ f ( ^ f ) / ^ f ^ [   p i = ^ d   ^ f ^ ] ) " ,   p a g e . h d r . p a g e n o , 
 	       p a g e . p a r m s . c o l s . c o u n t ,   s h o w   ( p a g e . h d r . u s e d ,   1 2 0 0 0 ) , 
 	       s h o w   ( p a g e . h d r . h d s p c ,   1 2 0 0 0 ) ,   s h o w   ( p a g e . h d r . n e t ,   1 2 0 0 0 ) , 
 	       ( s h a r e d . p i c t u r e . c o u n t   >   0 ) ,   s h a r e d . p i c t u r e . c o u n t , 
 	       s h o w   ( s h a r e d . p i c t u r e . s p a c e ,   1 2 0 0 0 ) ) ; 
             e n d ; 
 
         r e t u r n ; 
 % p a g e ; 
 s h o w : 
     p r o c   ( d a t u m ,   s c a l e )   r e t u r n s   ( f i x e d   d e c   ( 1 1 ,   3 ) ) ; 
         d c l   d a t u m 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   s c a l e 	       f i x e d   b i n   ( 3 1 ) ; 
 
         r e t u r n   ( r o u n d   ( d e c   ( r o u n d   ( d i v i d e   ( d a t u m ,   s c a l e ,   3 1 ,   1 1 ) ,   1 0 ) ,   1 1 ,   4 ) ,   3 ) ) ; 
     e n d   s h o w ; 
 % p a g e ; 
 % i n c l u d e   c o m p _ b r k t y p e s ; 
 % i n c l u d e   c o m p _ c o l u m n ; 
 % i n c l u d e   c o m p _ c t l _ i n d e x ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ f o o t n o t e s ; 
 % i n c l u d e   c o m p _ i n s e r t ; 
 % i n c l u d e   c o m p _ o p t i o n ; 
 % i n c l u d e   c o m p _ p a g e ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t a b l e ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p s t a t ; 
 
     e n d   c o m p _ b r e a k _ ; 
        
 
 
  
 	 	         c o m p _ b r e a k _ c t l s _ . p l 1                         0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 0 8 . 9             2 0 9 0 9 7     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   s u b o u t i n e   i m p e l m e n t i n g   a l l   b r e a k   f o r m s   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 3 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ b r e a k _ c t l s _ : 
       p r o c   ( c t l _ i n d e x ) ; 
 
 / *   P A R A M E T E R S   * / 
 
             d c l   c t l _ i n d e x 	           f i x e d   b i n ; 	 / *   c o n t r o l   i n d e x   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
             d c l   b l a n k _ c o u n t         f i x e d   b i n ; 	 / *   b l a n k   p a g e s   t o   b e   s k i p p e d   * / 
             d c l   b l a n k _ f t r 	           c h a r   ( 1 0 2 0 )   v a r ; 
             d c l   b l a n k _ h d r 	           c h a r   ( 1 0 2 0 )   v a r ; 
             d c l   b l k u s d 	           f i x e d   b i n   ( 3 1 ) ; 
             d c l   b r e a k _ t y p e           f i x e d   b i n ; 	 / *   w h a t   f l a v o r   f o r   . b r c   * / 
             d c l   f n x t 	           f i x e d   b i n   ( 2 1 ) ; / *   n e x t   v a r i a b l e   f i e l d   c h a r   * / 
 	 	 	 	 / *   f o r   d e b u g   a t   e x i t   * / 
             d c l   e x i t _ s t r 	           c h a r   ( 1 0 0 )   v a r   i n i t   ( " " ) ; 
             d c l   ( i ,   j ,   k ) 	           f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
             d c l   m o d e _ s t r 	           c h a r   ( 1 2 8 )   v a r y i n g ; 
 	 	 	 	 / *   m o d e   f o r   p a g e   &   p a r   n u m b e r s   * / 
             d c l   m s _ m o d e 	           c h a r   ( 2 ) ; 	 / *   m o d e   e x t r a c t e d   f r o m   m o d e   s t r i n g   * / 
             d c l   n e e d e d 	           f i x e d   b i n   ( 3 1 ) ; / *   s p a c e   n e e d e d   b y   b r e a k - n e e d   * / 
             d c l   n e w _ c o l 	           f i x e d   b i n ; 	 / *   t a r g e t   c o l u m n   * / 
             d c l   n e w _ p a g e n o           c h a r   ( 3 2 )   v a r ;   / *   n e w   p a g e   n u m b e r   f o r   . b r p   * / 
             d c l   o l d _ c o l 	           f i x e d   b i n ; 	 / *   c o l u m n   w e ' r e   l e a v i n g   * / 
             d c l   p a g e _ i n c r 	           f i x e d   b i n ; 	 / *   b r e a k   n u m b e r   i n c r e m e n t   f o r   b r e a k - p a g e   * / 
             d c l   s a v e _ c o l n o           f i x e d   b i n ; 	 / *   t o   s a v e   c o l n o   a r o u n d   p a g e   b r e a k s   * / 
             d c l   s a v e _ c t l _ l i n e     c h a r   ( 1 0 2 0 )   v a r ; 
             d c l   s a v e _ c t l _ i n d e x   f i x e d   b i n ; 
             d c l   s a v e _ i n p u t           b i t   ( 1 ) ; 
             d c l   1   s a v e _ t e x t _ i n p u t 
 	 	           a l i g n e d   l i k e   t e x t _ e n t r y ; 
             d c l   s c a l e 	           ( 1 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	           i n i t   ( 1 0 0 0 ) ; 
             d c l   u n s c a l e d 	           ( 1 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 1 ) ; 
             d c l   v a l 	           c h a r   ( 3 2 )   v a r ;   / *   v a l u e   e x t r a c t e d   f r o m   v a l   s t r i n g   * / 
             d c l   v a l _ s t r 	           c h a r   ( 1 2 8 )   v a r ; / *   v a l u e   f o r   p a g e   &   p a r   n u m b e r s   * / 
             d c l   v a r f l d 	           c h a r   ( 1 0 2 0 )   v a r ; 
             d c l   v s c a l e s 	           ( 7 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	           i n i t   ( 1 2 0 0 0 ,   9 0 0 0 ,   7 2 0 0 0 ,   2 8 3 4 . 6 5 ,   1 2 0 0 0 ,   1 0 0 0 ,   0 ) ; 
 
             d c l   ( i n d e x ,   l e n g t h ,   m a x ,   m o d ,   n u l l ) 
 	 	           b u i l t i n ; 
             d c l   e n d _ o u t p u t           c o n d i t i o n ; 
             d c l   c o n t i n u e _ t o _ s i g n a l _ 
 	 	           e n t r y   ( f i x e d   b i n   ( 3 5 ) ) ; 
             d c l   i o a _ $ r s n n l           e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
 
             i f   s h a r e d . b u g _ m o d e 
             t h e n   c a l l   i o a _   ( " b r e a k _ c t l s :   ( ^ d )   " " ^ a " " " ,   c t l _ i n d e x ,   c t l _ l i n e ) ; 
 
             o n   e n d _ o u t p u t 	 	 	 / *   p a s s   t h e   b u c k   * / 
                   c a l l   c o n t i n u e _ t o _ s i g n a l _   ( 0 ) ; 
 
             g o t o   c t l _   ( c t l _ i n d e x ) ; 
 
 c t l _   ( 3 4 ) : 	 	 	 / *   " . b r "   =   b r e a k - b l o c k   * / 
 c t l _   ( 3 5 ) : 	 	 	 / *   " . b r b "   =   b r e a k - b l o c k   * / 
 b r b _ c t l : 
             i f   s h a r e d . t a b l e _ m o d e 	 	 / *   m a p   i n t o   a   . b r f   * / 
             t h e n   g o t o   b r f _ c t l ; 
 
             i f   s h a r e d . b l k p t r   ^ =   n u l l 
             t h e n   i f   t e x t . h d r . c o u n t   >   0   |   t e x t . i n p u t _ l i n e   ^ =   " " 
 	   t h e n 
 	         d o ; 	 	 	 / * * / 
 	 	 	 	 / *   p e n d i n g   c a p t i o n ?   * / 
 	               i f   t e x t . p a r m s . f t r p t r   ^ =   n u l l   &   ^ s h a r e d . i n s e r t i n g _ h f c 
 	               t h e n 
 	 	 d o ; 
 	 	       i f   t e x t . i n p u t _ l i n e   ^ =   " " 
 	 	       t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 	 	       c a l l   c o m p _ t i t l e _ b l o c k _   ( t e x t . p a r m s . f t r p t r ) ; 
 	 	 e n d ; 
 
 	               c a l l   c o m p _ b r e a k _   ( b l o c k _ b r e a k ,   0 ) ; 
 	         e n d ; 
 
             g o t o   r e t u r n _ ; 
 
 c t l _   ( 3 6 ) : 	 	 	 / *   " . b r c "   =   b r e a k - c o l u m n   * / 
             i f   c u r r e n t _ p a r m s . k e e p 
             t h e n 
                   d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " b r e a k - c o l u m n   i n   a   k e e p   b l o c k   i g n o r e d . " , 
 	               a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	     g o t o   r e t u r n _ ; 
                   e n d ; 
 
             i f   s h a r e d . t a b l e _ m o d e 
             t h e n 
                   d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " b r e a k - c o l u m n   i n   t a b l e   m o d e   i g n o r e d . " , 
 	               a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	     g o t o   r e t u r n _ ; 
                   e n d ; 
 
             i f   p a g e . p a r m s . c o l s . c o u n t   =   0 	 / *   i f   n o t   m u l t i c o l u m n   * / 
             t h e n   n e w _ c o l   =   0 ; 
 
             e l s e 	 	 	 / *   m u l t i c o l u m n   * / 
                   d o ; 	 	 	 / *   i f   a   c o l u m n   n u m b e r   i s   g i v e n   * / 
 	     i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
 	     t h e n 
 	           d o ; 
 	                 n e w _ c o l   = 
 	 	       c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   1 ,   c t l . i n d e x ,   c t l . i n d e x , 
 	 	       a d d r   ( c t l . i n f o ) ,   0 ) ; 
 	                 i f   n e w _ c o l   <   0 
 	                 t h e n 
 	 	   d o ; 
 	 	         c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " P o s i t i v e   v a l u e   r e q u i r e d . " , 
 	 	                   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	 	         g o t o   r e t u r n _ ; 
 	 	   e n d ; 	 	 / * * / 
 	 	 	 	 / *   t o o   b i g ?   * / 
 	                 i f   n e w _ c o l   >   p a g e . p a r m s . c o l s . c o u n t 
 	                 t h e n 
 	 	   d o ; 
 	 	         c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " G i v e n   c o l u m n   n o t   d e f i n e d . " , 
 	 	                   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	 	         g o t o   r e t u r n _ ; 
 	 	   e n d ; 
 	           e n d ; 
 
 	     e l s e   n e w _ c o l   =   m o d   ( p a g e . h d r . c o l _ i n d e x ,   p a g e . p a r m s . c o l s . c o u n t )   +   1 ; 
 
 j o i n _ b r c : 	 	 	 	 / *   d o n t   b a l a n c e   t h i s   p a g e   * / 
 	     i f   n e w _ c o l   >   0   &   p a g e . h d r . c o l _ i n d e x   >   0 
 	     t h e n   p a g e . p a r m s . c o l s . b a l   =   " 0 " b ; 
                   e n d ; 
 
             i f   s h a r e d . b l k p t r   ^ =   n u l l 
             t h e n 
                   d o ; 	 	 	 / * * / 
 	 	 	 	 / *   p e n d i n g   h e a d e r ?   * / 
 	     i f   t e x t . p a r m s . h d r p t r   ^ =   n u l l   &   ^ s h a r e d . i n s e r t i n g _ h f c 
 	     t h e n   c a l l   c o m p _ t i t l e _ b l o c k _   ( t e x t . p a r m s . h d r p t r ) ; 
 
 	     b l k u s d   = 
 	               t e x t . h d r . u s e d 
 	               +   b i n   ( t e x t . i n p u t _ l i n e   ^ =   " " )   *   t e x t . p a r m s . l i n e s p a c e ; 
                   e n d ; 
             e l s e   b l k u s d   =   0 ; 	 	 / * * / 
 	 	 	 	 / *   f i l l   c o l u m n   w i t h   W S   * / 
             i f   p a g e . h d r . c o l _ i n d e x   >   0   &   p a g e . h d r . u s e d   >   0   &   ^ p a g e . p a r m s . c o l s . b a l 
 	   &   c o l . h d r . n e t   -   c o l . d e p t h _ a d j   >   c o l . h d r . u s e d   +   b l k u s d 
             t h e n   c a l l   c o m p _ s p a c e _   ( c o l . h d r . n e t   -   c o l . d e p t h _ a d j   -   c o l . h d r . u s e d 
 	             -   b l k u s d ,   s h a r e d . b l k p t r ,   " 1 " b ,   " 1 " b ,   " 1 " b ,   " 0 " b ) ; 
 
             o l d _ c o l   =   p a g e . h d r . c o l _ i n d e x ; 	 / *   s a v e   e x i t   c o l u m n   * / 
 	 	 	 	 / *   e n t e r i n g   o r   l e a v i n g   c o l 0 ?   * / 
             i f   ( o l d _ c o l   =   0   |   n e w _ c o l   =   0 )   &   p a g e . h d r . u s e d   >   0 
             t h e n   c a l l   c o m p _ b r e a k _   ( c o l u m n _ b r e a k ,   0 ) ; 
 	 	 	 	 / *   *   b i n   ( ^ p a g e . p a r m s . c o l s . b a l ) ) ; * / 
 
             i f   p a g e . p a r m s . c o l s . c o u n t   >   0 	 / *   i f   m u l t i c o l u m n   a n d   n o t   m o v i n g   * / 
 	   &   o l d _ c o l   ^ =   0   &   n e w _ c o l   ^ =   0 / *   t o / f r o m   c o l u m n   0   * / 
             t h e n 	 	 	 / *   f i l l   i n t e r v e n i n g   c o l u m n s   * / 
                   d o ; 	 	 	 / *   w i t h   n o n t r i m m a b l e   W S   * / 
 	     i f   o l d _ c o l   <   p a g e . p a r m s . c o l s . c o u n t   &   n e w _ c o l   ^ =   o l d _ c o l   +   1 
 	     t h e n 
 	           d o   i   =   o l d _ c o l   +   1   t o   p a g e . p a r m s . c o l s . c o u n t ; 
 	                 p a g e . h d r . c o l _ i n d e x   =   i ; 
 	                 s h a r e d . c o l p t r   =   p a g e . c o l u m n _ p t r   ( i ) ; 
 	                 i f   c o l . h d r . n e t   -   c o l . d e p t h _ a d j   >   c o l . h d r . u s e d 
 	                 t h e n   c a l l   c o m p _ s p a c e _   ( c o l . h d r . n e t   -   c o l . d e p t h _ a d j 
 	 	                 -   c o l . h d r . u s e d ,   n u l l ,   " 1 " b ,   " 1 " b ,   " 1 " b ,   " 0 " b ) ; 
 	                 c a l l   c o m p _ b r e a k _   ( b l o c k _ b r e a k ,   0 ) ; 
 	           e n d ; 
 
 	     i f   n e w _ c o l   >   1 
 	     t h e n 
 	           d o   i   =   1   t o   n e w _ c o l   -   1 ; 
 	                 p a g e . h d r . c o l _ i n d e x   =   i ; 
 	                 s h a r e d . c o l p t r   =   p a g e . c o l u m n _ p t r   ( i ) ; 
 	                 i f   c o l . h d r . n e t   -   c o l . d e p t h _ a d j   >   c o l . h d r . u s e d 
 	                 t h e n   c a l l   c o m p _ s p a c e _   ( c o l . h d r . n e t   -   c o l . d e p t h _ a d j 
 	 	                 -   c o l . h d r . u s e d ,   n u l l ,   " 1 " b ,   " 1 " b ,   " 1 " b ,   " 0 " b ) ; 
 	                 c a l l   c o m p _ b r e a k _   ( b l o c k _ b r e a k ,   0 ) ; 
 	           e n d ; 
                   e n d ; 
 
             i f   n e w _ c o l   < =   o l d _ c o l   &   n e w _ c o l   ^ =   0 
             t h e n   c a l l   c o m p _ b r e a k _   ( p a g e _ b r e a k ,   n e w _ c o l ) ; 
 
             i f   o l d _ c o l   =   0 	 	 / *   i f   l e a v i n g   c o l u m n   0   * / 
             t h e n 
                   d o   i   =   1   t o   p a g e . h d r . c o l _ c o u n t ; 
 	     p a g e . c o l u m n _ p t r   ( i )   - >   c o l . h d r . d e p t h   =   c o l 0 . h d r . d e p t h ; 
                   e n d ; 
 
             p a g e . h d r . c o l _ i n d e x   =   n e w _ c o l ; 	 / *   s e t   t h e   n e w   c o l u m n   * / 
             p a g e . h d r . c o l _ c o u n t   =   m a x   ( p a g e . h d r . c o l _ c o u n t ,   n e w _ c o l ) ; 
             s h a r e d . c o l p t r   =   p a g e . c o l u m n _ p t r   ( n e w _ c o l ) ; 
 
             i f   p a g e . h d r . c o l _ i n d e x   =   0 
             t h e n   c u r r e n t _ p a r m s . m e a s u r e   =   p a g e _ p a r m s . m e a s u r e ; 
             e l s e   c u r r e n t _ p a r m s . m e a s u r e   =   c o l . p a r m s . m e a s u r e ; 
 
             i f   s h a r e d . b u g _ m o d e 
             t h e n   c a l l   i o a _ $ r s n n l   ( " c o l = ^ d   u ^ f   m r g = ^ f / ^ f / ^ f " ,   e x i t _ s t r ,   0 , 
 	             p a g e . h d r . c o l _ i n d e x ,   s h o w   ( c o l . h d r . u s e d ,   1 2 0 0 0 ) , 
 	             s h o w   ( c o l . m a r g i n . l e f t ,   1 2 0 0 0 ) ,   s h o w   ( c o l . p a r m s . m e a s u r e ,   1 2 0 0 0 ) , 
 	             s h o w   ( c o l . m a r g i n . r i g h t ,   1 2 0 0 0 ) ) ; 
 
             g o t o   r e t u r n _ ; 
 
 c t l _   ( 3 7 ) : 	 	 	 / *   " . b r f "   =   b r e a k - f o r m a t   * / 
 b r f _ c t l : 
             i f   s h a r e d . b l k p t r   ^ =   n u l l 
             t h e n   i f   l e n g t h   ( t e x t . i n p u t _ l i n e )   >   0 
 	   t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 
             g o t o   r e t u r n _ ; 
 
 c t l _   ( 3 8 ) : 	 	 	 / *   " . b r n "   =   b r e a k - n e e d   * / 
             i f   o p t i o n . g a l l e y _ o p t 	 	 / *   i g n o r e   i t   i n   g a l l e y   * / 
             t h e n   g o t o   r e t u r n _ ; 
 
             e l s e   i f   c u r r e n t _ p a r m s . k e e p 	 / *   n e e d s   w i t h i n   k e e p s   n o t   a l l o w e d   * / 
             t h e n   c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " b r e a k - n e e d   i n   a   k e e p   b l o c k   i g n o r e d . " , 
 	             a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 
             e l s e   i f   s h a r e d . f t n _ m o d e 	 	 / *   n e e d s   w i t h i n   f t n s   n o t   a l l o w e d   * / 
             t h e n   c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " b r e a k - n e e d   i n   a   f o o t n o t e   b l o c k   i g n o r e d . " , 
 	             a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 
             e l s e 
                   d o ; 
 	     i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
 	     t h e n   n e e d e d   =   1 2 0 0 0 ; 	 / *   d e f a u l t   v a l u e   * / 
 	     e l s e   n e e d e d   = 
 	 	     c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   v s c a l e s ,   c t l . i n d e x , 
 	 	     c t l . i n d e x ,   a d d r   ( c t l . i n f o ) ,   0 ) ; 
 
 	     s a v e _ i n p u t   =   " 0 " b ; 
 	     i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
 	     t h e n 
 	           d o ; 
 	                 s a v e _ i n p u t   =   " 1 " b ; 
 	                 s a v e _ c t l _ l i n e   =   t e x t . i n p u t _ l i n e ; 
 	                 s a v e _ t e x t _ i n p u t   =   t e x t . i n p u t ; 
 	                 n e e d e d   =   n e e d e d   +   t e x t . h d r . u s e d ; 
 
 	                 i f   l e n g t h   ( t e x t . i n p u t _ l i n e )   >   0 
 	                 t h e n   n e e d e d   =   n e e d e d   +   1 2 0 0 0 ; 
 	           e n d ; 
 
 	     i f   p a g e . h d r . c o l _ i n d e x   =   0 	 / *   n e e d   p a g e   s p a c e   * / 
 	     t h e n 
 	           d o ; 
 	                 i f   s h a r e d . b u g _ m o d e 
 	                 t h e n   c a l l   i o a _   ( "       ( n e e d   p a g e   ^ f   h a v e   ^ f ) " , 
 	 	                 d e c   ( d i v i d e   ( n e e d e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	 	                 d e c   ( 
 	 	                 d i v i d e   ( c o l 0 . h d r . n e t   -   c o l 0 . d e p t h _ a d j 
 	 	                 -   c o l 0 . h d r . u s e d   -   c o l 0 . h d r . f t n . u s d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) , 
 	 	                 1 1 ,   3 ) ) ; 
 
 	                 i f   n e e d e d 
 	 	       >   c o l 0 . h d r . n e t   -   c o l 0 . d e p t h _ a d j   -   c o l 0 . h d r . u s e d 
 	 	       -   c o l 0 . h d r . f t n . u s d 
 	                 t h e n 
 	 	   d o ; 
 	 	         i f   ^ s a v e _ i n p u t 
 	 	         t h e n   c a l l   c o m p _ b r e a k _   ( p a g e _ b r e a k ,   0 ) ; 
 
 	 	         e l s e 
 	 	               d o ; 
 	 	 	 c a l l   c o m p _ b r e a k _   ( n e e d _ b r e a k ,   - 2 ) ; 
 
 	 	 	 i f   ^ s h a r e d . e n d _ o u t p u t   &   s h a r e d . b l k p t r   =   n u l l 
 	 	 	 t h e n 
 	 	 	       d o ; 
 	 	 	             c a l l   c o m p _ h e a d _ p a g e _   ( 0 ) ; 
 	 	 	             c a l l   c o m p _ u t i l _ $ g e t b l k   ( 0 ,   s h a r e d . b l k p t r , 
 	 	 	 	   " t x " ,   a d d r   ( c u r r e n t _ p a r m s ) ,   " 0 " b ) ; 
 	 	 	             t e x t . i n p u t   =   s a v e _ t e x t _ i n p u t ; 
 	 	 	             t e x t . i n p u t . p t r   =   a d d r   ( t e x t . i n p u t _ l i n e ) ; 
 	 	 	             t e x t . i n p u t _ l i n e   =   s a v e _ c t l _ l i n e ; 
 	 	 	       e n d ; 
 	 	               e n d ; 
 	 	   e n d ; 
 	           e n d ; 
 
 	     e l s e 
 	           d o ; 	 	 	 / *   n e e d   c o l u m n   s p a c e   * / 
 	                 i f   s h a r e d . b u g _ m o d e 
 	                 t h e n   c a l l   i o a _   ( "       ( n e e d   c o l   ^ f   h a v e   ^ f ) " , 
 	 	                 d e c   ( d i v i d e   ( n e e d e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	 	                 d e c   ( 
 	 	                 d i v i d e   ( c o l . h d r . n e t   -   c o l . d e p t h _ a d j 
 	 	                 -   c o l . h d r . u s e d   -   c o l . h d r . f t n . u s d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) , 
 	 	                 1 1 ,   3 ) ) ; 
 
 	                 i f   n e e d e d 
 	 	       >   c o l . h d r . n e t   -   c o l . d e p t h _ a d j   -   c o l . h d r . u s e d 
 	 	       -   c o l . h d r . f t n . u s d 
 	                 t h e n 
 	 	   d o ; 
 	 	         n e w _ c o l   = 
 	 	                   m o d   ( p a g e . h d r . c o l _ i n d e x ,   p a g e . p a r m s . c o l s . c o u n t ) 
 	 	                   +   1 ; 
 	 	         g o t o   j o i n _ b r c ; 
 	 	   e n d ; 
 	           e n d ; 
                   e n d ; 
             g o t o   r e t u r n _ ; 
 
 c t l _   ( 3 9 ) : 	 	 	 / *   " . b r p "   =   b r e a k - p a g e   * / 
 b r p _ c t l : 
             i f   o p t i o n . g a l l e y _ o p t 	 	 / *   i n   g a l l e y ,   * / 
             t h e n   g o t o   b r b _ c t l ; 	 	 / *   m a p   i n t o   a   b l o c k   b r e a k   * / 
 
             i f   c u r r e n t _ p a r m s . k e e p 	 	 / *   n o   b r p ' s   i n   k e e p   * / 
             t h e n 
                   d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " b r e a k - p a g e   i n   a   k e e p   b l o c k   i g n o r e d . " , 
 	               a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	     g o t o   r e t u r n _ ; 
                   e n d ; 
 
             i f   s h a r e d . f t n _ m o d e 	 	 / *   n o   b r p ' s   i n   f t n s   * / 
             t h e n 
                   d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " b r e a k - p a g e   i n   a   f o o t n o t e   b l o c k   i g n o r e d . " , 
 	               a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	     g o t o   r e t u r n _ ; 
                   e n d ; 
 
             i f   s h a r e d . t a b l e _ m o d e 
             t h e n 
                   d o ; 
 	     t b l f m t n d x   =   t b l d a t a . n d x ; 	 / *   s a v e   t a b l e   d a t a   * / 
 	     t b l f m t p t r   =   t b l d a t a . f m t   ( t b l f m t n d x ) . p t r ; 
 	     s a v e _ c o l n o   =   t b l f m t . c c o l ; 
                   e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   a n y t h i n g   o n   t h e   p a g e ?   * / 
             i f   p a g e . h d r . u s e d   >   0   |   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
             t h e n   c a l l   c o m p _ b r e a k _   ( p a g e _ b r e a k ,   0 ) ; 
 	 	 	 	 / *   i f   a   p a r a m   i s   g i v e n   * / 
             i f   c t l . i n d e x   < =   l e n g t h   ( r t r i m   ( c t l _ l i n e ) ) 
             t h e n 
                   d o ; 
 	     i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x )   =   " e " 
 	     t h e n 
 	           d o ; 	 	 	 / *   i f   p a r a m   i s   " e v e n "   * / 
 	                 i f   ^ p a g e . h d r . f r o n t p a g e / *   a n d   s o   i t   t h e   l a s t   o u t p u t   p a g e   * / 
 	                 t h e n   c a l l   c o m p _ u t i l _ $ p a g e n o   ( 1 0 0 0 ,   n e w _ p a g e n o ) ; 
 	                 g o t o   b r p _ e x i t ; 
 	           e n d ; 
 
 	     e l s e   i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x )   =   " o " 
 	     t h e n 
 	           d o ; 	 	 	 / *   i f   p a r a m   i s   " o d d "   * / 
 	                 i f   p a g e . h d r . f r o n t p a g e   / *   a n d   s o   i t   t h e   l a s t   o u t p u t   p a g e   * / 
 	                 t h e n   c a l l   c o m p _ u t i l _ $ p a g e n o   ( 1 0 0 0 ,   n e w _ p a g e n o ) ; 
 	                 g o t o   b r p _ e x i t ; 
 	           e n d ; 
 
 	     e l s e 	 	 	 / *   s e t   t o   g i v e n   p a r a m e t e r   * / 
 	           d o ; 	 	 	 / *   i f   a n   i n c r e m e n t   * / 
 	                 i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   =   " + " 
 	                 t h e n 
 	 	   d o ; 
 	 	         p a g e _ i n c r   = 
 	 	                   c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   s c a l e ,   c t l . i n d e x , 
 	 	                   c t l . i n d e x ,   a d d r   ( c t l . i n f o ) ,   0 )   +   1 0 0 0 ; 
 	 	         c a l l   c o m p _ u t i l _ $ p a g e n o   ( p a g e _ i n c r ,   n e w _ p a g e n o ) ; 
 	 	   e n d ; 
 
 	                 e l s e 
 	 	   d o ; 
 	 	         v a l _ s t r   =   b e f o r e   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   "   " ) ; 
 	 	         m o d e _ s t r   =   a f t e r   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   "   " ) ; 
 
 	 	         i ,   j   =   0 ; 	 / *   p a r s e   t h e   g i v e n   p a g e   n u m b e r   * / 
 	 	         d o   w h i l e   ( l e n g t h   ( v a l _ s t r )   >   0 ) ; 
 	 	 	 	 / *   l o o k   f o r   a   s e p a r a t o r   * / 
 	 	               k   =   s e a r c h   ( v a l _ s t r ,   " - . ( ) | " ) ; 
 
 	 	               i f   k   >   0 	 / *   i s   t h e r e   o n e ?   * / 
 	 	               t h e n 
 	 	 	 d o ; 
 	 	 	       v a l   =   s u b s t r   ( v a l _ s t r ,   1 ,   k   -   1 ) ; 
 	 	 	       i f   s u b s t r   ( v a l _ s t r ,   k ,   1 )   =   " | " 
 	 	 	       t h e n   s h a r e d . p a g e n u m . s e p   ( i   +   1 )   =   " " ; 
 	 	 	       e l s e   s h a r e d . p a g e n u m . s e p   ( i   +   1 )   = 
 	 	 	 	       s u b s t r   ( v a l _ s t r ,   k ,   1 ) ; 
 	 	 	       v a l _ s t r   =   s u b s t r   ( v a l _ s t r ,   k   +   1 ) ; 
 	 	 	       m s _ m o d e   =   b e f o r e   ( m o d e _ s t r ,   " , " ) ; 
 	 	 	       m o d e _ s t r   =   a f t e r   ( m o d e _ s t r ,   " , " ) ; 
 	 	 	 e n d ; 
 
 	 	               e l s e 
 	 	 	 d o ; 
 	 	 	       m s _ m o d e   =   m o d e _ s t r ; 
 	 	 	       v a l   =   v a l _ s t r ; 
 	 	 	       v a l _ s t r ,   m o d e _ s t r   =   " " ; 
 	 	 	 e n d ; 	 / * * / 
 	 	 	 	 / *   i f   t h e r e   i s   n o   m o d e ,   * / 
 	 	               i f   m s _ m o d e   =   " " 
 	 	               t h e n 
 	 	 	 d o ; 	 / *   v a l   i s   w h a t   i t   a p p e a r s   t o   b e   * / 
 	 	 	 	 / *   n u m e r i c   * / 
 	 	 	       i f   v e r i f y   ( v a l ,   " 0 1 2 3 4 5 6 7 8 9 " )   =   0 
 	 	 	       t h e n 
 	 	 	             d o ; 
 	 	 	                   s h a r e d . p a g e n u m . m o d e   ( i   +   1 )   =   0 ; 
 	 	 	 	 / *   a r   d i s p l a y   * / 
 	 	 	                   s h a r e d . p a g e n u m . n m b r   ( i   +   1 )   = 
 	 	 	 	         1 0 0 0   *   b i n   ( v a l ) ; 
 	 	 	             e n d ; / * * / 
 	 	 	 	 / *   r o m a n   l o w e r   * / 
 	 	 	       e l s e   i f   v e r i f y   ( v a l ,   " i x c m v l d " )   =   0 
 	 	 	       t h e n 
 	 	 	             d o ; 
 	 	 	                   s h a r e d . p a g e n u m . m o d e   ( i   +   1 )   =   6 ; 
 	 	 	 	 / *   r l   d i s p l a y   * / 
 	 	 	                   s h a r e d . p a g e n u m . n m b r   ( i   +   1 )   = 
 	 	 	 	         r e a d _ r o m a n   ( v a l ,   6 ) ; 
 	 	 	             e n d ; / * * / 
 	 	 	 	 / *   r o m a n   u p p e r   * / 
 	 	 	       e l s e   i f   v e r i f y   ( v a l ,   " I X C M V L D " )   =   0 
 	 	 	       t h e n 
 	 	 	             d o ; 
 	 	 	                   s h a r e d . p a g e n u m . m o d e   ( i   +   1 )   =   7 ; 
 	 	 	 	 / *   r u   d i s p l a y   * / 
 	 	 	                   s h a r e d . p a g e n u m . n m b r   ( i   +   1 )   = 
 	 	 	 	         r e a d _ r o m a n   ( v a l ,   7 ) ; 
 	 	 	             e n d ; / * * / 
 	 	 	 	 / *   a p h a   l o w e r   * / 
 	 	 	       e l s e   i f 
 	 	 	                 v e r i f y   ( v a l , 
 	 	 	                 " a b c d e f g h i j k l m n o p q r s t u v w x y z " )   =   0 
 	 	 	       t h e n 
 	 	 	             d o ; 
 	 	 	                   s h a r e d . p a g e n u m . m o d e   ( i   +   1 )   =   4 ; 
 	 	 	 	 / *   a l   d i s p l a y   * / 
 	 	 	                   s h a r e d . p a g e n u m . n m b r   ( i   +   1 )   = 
 	 	 	 	         r e a d _ a l p h a   ( v a l ,   4 ) ; 
 	 	 	             e n d ; / * * / 
 	 	 	 	 / *   a l p h a   u p p e r   * / 
 	 	 	       e l s e   i f 
 	 	 	                 v e r i f y   ( v a l , 
 	 	 	                 " A B C D E F G H I J K L M N O P Q R S T U V W X Y Z " )   =   0 
 	 	 	       t h e n 
 	 	 	             d o ; 
 	 	 	                   s h a r e d . p a g e n u m . m o d e   ( i   +   1 )   =   5 ; 
 	 	 	 	 / *   a u   d i s p l a y   * / 
 	 	 	                   s h a r e d . p a g e n u m . n m b r   ( i   +   1 )   = 
 	 	 	 	         r e a d _ a l p h a   ( v a l ,   5 ) ; 
 	 	 	             e n d ; 
 	 	 	 e n d ; 
 
 	 	               e l s e 	 / *   s e t   i n d e x   v a l u e   f o r   * / 
 	 	 	 d o ; 	 / *   g i v e n   m o d e   * / 
 	 	 	       s h a r e d . p a g e n u m . m o d e   ( i   +   1 )   = 
 	 	 	                 i n d e x   ( m o d e _ s t r i n g ,   m s _ m o d e ) ; 
 	 	 	 	 / *   k e y   n o t   f o u n d   * / 
 	 	 	       i f   s h a r e d . p a g e n u m . m o d e   ( i   +   1 )   =   0 
 	 	 	       t h e n   c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	 	 	       " U n k n o w n   d i s p l a y   m o d e   k e y w o r d . " , 
 	 	 	 	       a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	 	 	 	 / *   c o m p u t e   t r u e   i n d e x   v a l u e   * / 
 	 	 	       s h a r e d . p a g e n u m . m o d e   ( i   +   1 )   = 
 	 	 	                 d i v i d e   ( s h a r e d . p a g e n u m . m o d e   ( i   +   1 ) ,   2 , 
 	 	 	                 1 7 ) ; 
 	 	 	 	 / *   i f   a   n u m e r i c   i s   g i v e n   * / 
 	 	 	       i f   v e r i f y   ( v a l ,   " 0 1 2 3 4 5 6 7 8 9 " )   =   0 
 	 	 	       t h e n   s h a r e d . p a g e n u m . n m b r   ( i   +   1 )   = 
 	 	 	 	       1 0 0 0   *   b i n   ( v a l ) ; 
 
 	 	 	       e l s e   i f   s h a r e d . p a g e n u m . m o d e   ( i   +   1 )   =   6 
 	 	 	       t h e n   s h a r e d . p a g e n u m . n m b r   ( i   +   1 )   = 
 	 	 	 	       r e a d _ r o m a n   ( v a l ,   6 ) ; 
 
 	 	 	       e l s e   i f   s h a r e d . p a g e n u m . m o d e   ( i   +   1 )   =   7 
 	 	 	       t h e n   s h a r e d . p a g e n u m . n m b r   ( i   +   1 )   = 
 	 	 	 	       r e a d _ r o m a n   ( v a l ,   7 ) ; 
 
 	 	 	       e l s e   i f   s h a r e d . p a g e n u m . m o d e   ( i   +   1 )   =   4 
 	 	 	       t h e n   s h a r e d . p a g e n u m . n m b r   ( i   +   1 )   = 
 	 	 	 	       r e a d _ a l p h a   ( v a l ,   4 ) ; 
 
 	 	 	       e l s e   i f   s h a r e d . p a g e n u m . m o d e   ( i   +   1 )   =   5 
 	 	 	       t h e n   s h a r e d . p a g e n u m . n m b r   ( i   +   1 )   = 
 	 	 	 	       r e a d _ a l p h a   ( v a l ,   5 ) ; 
 	 	 	 e n d ; 
 
 	 	               s h a r e d . p a g e n u m . i n d e x ,   i   =   i   +   1 ; 
 	 	         e n d ; 
 	 	   e n d ; 	 	 / * * / 
 	 	 	 	 / *   u s e   - 1   h e r e   s i n c e   h e a d _ p a g e   * / 
 	 	 	 	 / *   b u m p   i t   b e   o n e   * / 
 	                 c a l l   c o m p _ u t i l _ $ p a g e n o   ( - 1 0 0 0 ,   n e w _ p a g e n o ) ; 
 	                 p a g e _ h e a d e r . m o d i f i e d ,   p a g e . h d r . m o d i f i e d   =   " 0 " b ; 
 	           e n d ; 
 
 	     p a g e . h d r . p a g e n o   =   n e w _ p a g e n o ; 
                   e n d ; 
 
 b r p _ e x i t : 
             i f   p a g e . p a r m s . c o l s . c o u n t   >   0 	 / *   i f   a   m u l t i - c o l u m n   p a g e   * / 
             t h e n 
                   d o ; 
 	     p a g e . h d r . c o l _ i n d e x   =   1 ; 
 	     s h a r e d . c o l p t r   =   p a g e . c o l u m n _ p t r   ( 1 ) ; 
 	     c u r r e n t _ p a r m s . m e a s u r e   =   c o l . p a r m s . m e a s u r e ; 
                   e n d ; 
 
             i f   s h a r e d . t a b l e _ m o d e 
             t h e n 
                   d o ; 
 	     c t l _ l i n e   =   " . t a c   "   | |   l t r i m   ( c h a r   ( s a v e _ c o l n o ) ) ; 
 	     c t l . i n d e x   =   6 ; 
 	     c a l l   c o m p _ t b l _ c t l s _   ( t a c _ c t l _ i n d e x ) ; 
                   e n d ; 
 
             i f   s h a r e d . b u g _ m o d e 
             t h e n   c a l l   i o a _ $ r s n n l   ( " c o l = ^ d   p a g e n o = ^ a   ^ [ f r o n t ^ ; b a c k ^ ] " ,   e x i t _ s t r ,   0 , 
 	             p a g e . h d r . c o l _ i n d e x ,   p a g e . h d r . p a g e n o ,   p a g e . h d r . f r o n t p a g e ) ; 
 
             g o t o   r e t u r n _ ; 
 
 r e a d _ r o m a n : 
       p r o c   ( r s t r ,   r m o d e )   r e t u r n s   ( f i x e d   b i n   ( 3 1 ) ) ; 
 
             d c l   r s t r 	           c h a r   ( 3 2 )   v a r ; 
             d c l   r m o d e 	           f i x e d   b i n   ( 8 ) ; 
 
             d c l   r c o n s t r 	           ( 2 )   c h a r   ( 7 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	           i n i t   ( " i v x l c d m " ,   " I V X L C D M " ) ; 
             d c l   r v a l s 	           ( 7 )   f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	           i n i t   ( 1 ,   5 ,   1 0 ,   5 0 ,   1 0 0 ,   5 0 0 ,   1 0 0 0 ) ; 
             d c l   ( r i ,   r j ,   r k )       f i x e d   b i n ; 
             d c l   r v a l 	           f i x e d   b i n   ( 3 1 ) ; 
 
             r v a l   =   0 ; 
             d o   r i   =   1   t o   l e n g t h   ( r s t r ) ; 	 / *   w h i c h   c h a r   d o   w e   h a v e ?   * / 
                   r j   =   i n d e x   ( r c o n s t r   ( r m o d e   -   5 ) ,   s u b s t r   ( r s t r ,   r i ,   1 ) ) ; 
 	 	 	 	 / *   i f   t h e   c h a r   f o l l o w i n g   r e p r e s e n t s   a 
 	 	 	 	       l a r g e r   v a l u e ,   t h e n   t h e   c u r r e n t   c h a r 
 	 	 	 	       s u b t r a c t s   i t s   v a l u e   f r o m   t h a t   o n e . 
 	 	 	 	       L u c k i l y ,   R o m a n   n u m b e r i n g   d e f i n e d   o n l y 
 	 	 	 	       o n e   s u c h   s u b t r a c t i o n !     * / 
                   i f   r i   <   l e n g t h   ( r s t r ) 	 / *   i f   n o t   t h e   l a s t   c h a r   * / 
                   t h e n 
 	     d o ; 
 	           r k   =   i n d e x   ( r c o n s t r   ( r m o d e   -   5 ) ,   s u b s t r   ( r s t r ,   r i   +   1 ,   1 ) ) ; 
 	           i f   r k   >   r j 
 	           t h e n 
 	                 d o ; 
 	 	   r v a l   =   r v a l   +   r v a l s   ( r k )   -   r v a l s   ( r j ) ; 
 	 	   r i   =   r i   +   1 ; 
 	                 e n d ; 	 	 / *   o t h e r w i s e ,   t h e   c h a r   s i m p l y   a d d s 
 	 	 	 	       i t s   v a l u e   * / 
 	           e l s e   r v a l   =   r v a l   +   r v a l s   ( r j ) ; 
 	     e n d ; 
                   e l s e   r v a l   =   r v a l   +   r v a l s   ( r j ) ;   / *   l a s t   c h a r   a d d s   i t   v a l u e   * / 
             e n d ; 
 
             r e t u r n   ( 1 0 0 0   *   r v a l ) ; 
 
       e n d   r e a d _ r o m a n ; 
 
 r e a d _ a l p h a : 
       p r o c   ( a s t r ,   a m o d e )   r e t u r n s   ( f i x e d   b i n   ( 3 1 ) ) ; 
 
             d c l   a s t r 	           c h a r   ( 3 2 )   v a r ; 
             d c l   a m o d e 	           f i x e d   b i n   ( 8 ) ; 
 
             d c l   a c o n s t r 	           ( 2 )   c h a r   ( 2 6 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	           i n i t   ( " a b c d e f g h i j k l m n o p q r s t u v w x y z " , 
 	 	           " A B C D E F G H I J K L M N O P Q R S T U V W X Y Z " ) ; 
             d c l   a i 	           f i x e d   b i n ; 
             d c l   a v a l 	           f i x e d   b i n   ( 3 1 ) ; 
 
             a v a l   =   0 ; 
             d o   a i   =   1   t o   l e n g t h   ( a s t r ) ; 
                   a v a l   =   2 6   *   a v a l   +   i n d e x   ( a c o n s t r   ( a m o d e   -   3 ) ,   s u b s t r   ( a s t r ,   a i ,   1 ) ) ; 
             e n d ; 
 
             r e t u r n   ( 1 0 0 0   *   a v a l ) ; 
 
       e n d   r e a d _ a l p h a ; 
 
 c t l _   ( 4 0 ) : 	 	 	 / *   " . b r s "   =   b r e a k - s k i p   * / 
             i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
             t h e n   i f   t e x t . p a r m s . k e e p 
 	   t h e n 
 	         d o ; 
 	               c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	     " b r e a k - s k i p   i n   a   k e e p   b l o c k   i g n o r e d . " ,   a d d r   ( c t l . i n f o ) , 
 	 	     c t l _ l i n e ) ; 
 	               g o t o   r e t u r n _ ; 
 	         e n d ; 
 
             i f   p a g e . h d r . u s e d   >   0 	 	 / *   i f   a n y t h i n g   o n   t h e   p a g e   * / 
             t h e n   c a l l   c o m p _ b r e a k _   ( p a g e _ b r e a k ,   0 ) ; 
 
             e l s e   i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   o r   a n y t h i n g   w a i t i n g   * / 
             t h e n   i f   t e x t . h d r . u s e d   >   0   |   t e x t . i n p u t _ l i n e   ^ =   " " 
 	   t h e n   c a l l   c o m p _ b r e a k _   ( p a g e _ b r e a k ,   0 ) ; 
 
             v a r f l d   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ; 
 
             i f   v a r f l d   ^ =   " " 	 	 / *   i f   t h e r e   i s   a   v a r i a b l e   f i e l d   * / 
             t h e n 
                   d o ; 	 	 	 / *   p a r a m e t e r   =   " e v e n " ?   * / 
 	     i f   s u b s t r   ( v a r f l d ,   1 ,   1 )   =   " e " 
 	     t h e n 
 	           d o ; 
 	                 i f   ^ p a g e . h d r . f r o n t p a g e 
 	                 t h e n   b l a n k _ c o u n t   =   1 ; 
 	                 e l s e   b l a n k _ c o u n t   =   0 ; 
 	                 v a r f l d   =   l t r i m   ( s u b s t r   ( v a r f l d ,   2 ) ) ; 
 	           e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   p a r a m e t e r   =   " o d d " ?   * / 
 	     e l s e   i f   s u b s t r   ( v a r f l d ,   1 ,   1 )   =   " o " 
 	     t h e n 
 	           d o ; 
 	                 i f   p a g e . h d r . f r o n t p a g e 
 	                 t h e n   b l a n k _ c o u n t   =   1 ; 
 	                 e l s e   b l a n k _ c o u n t   =   0 ; 
 	                 v a r f l d   =   l t r i m   ( s u b s t r   ( v a r f l d ,   2 ) ) ; 
 	           e n d ; 
 
 	     e l s e   i f   i n d e x   ( " 0 1 2 3 4 5 6 7 8 9 + " ,   s u b s t r   ( v a r f l d ,   1 ,   1 ) )   ^ =   0 
 	     t h e n 
 	           d o ; 
 	                 b l a n k _ c o u n t   = 
 	 	       c o m p _ r e a d _ $ n u m b e r   ( v a r f l d ,   u n s c a l e d ,   1 ,   f n x t , 
 	 	       a d d r   ( c t l . i n f o ) ,   0 ) ; 
 	                 v a r f l d   =   l t r i m   ( s u b s t r   ( v a r f l d ,   f n x t ) ) ; 
 	           e n d ; 
 
 	     e l s e   b l a n k _ c o u n t   =   1 ; 	 / *   n o   c o n t r o l   p a r a m e t e r   * / 
                   e n d ; 
 
             e l s e   b l a n k _ c o u n t   =   1 ; 	 	 / *   s e t   d e f a u l t   i f   n o t h i n g   g i v e n   * / 
 
             i f   b l a n k _ c o u n t   >   0 	 	 / *   i f   a n y   s e p a r a t i n g   p a g e s   * / 
             t h e n 
                   d o ; 
 	     i f   v a r f l d   ^ =   " " 	 	 / *   a n y   m o r e   i n   t h e   v a r i a b l e   f i e l d ?   * / 
 	     t h e n 
 	           d o ; 	 	 	 / *   t e x t   i s   f i r s t   * / 
 	 	 	 	 / *   g e t   a   b l o c k   f o r   i t   * / 
 	                 c a l l   c o m p _ u t i l _ $ g e t b l k   ( - 1 ,   s h a r e d . b l a n k _ t e x t _ p t r ,   " b t " , 
 	 	       a d d r   ( c u r r e n t _ p a r m s ) ,   " 0 " b ) ; 
 	                 s h a r e d . b l a n k _ t e x t _ p t r   - >   t e x t . i n p u t . q u a d   =   q u a d c ; 
 	                 s h a r e d . b l a n k _ t e x t _ p t r   - >   t e x t . i n p u t . r m a r g   = 
 	 	       p a g e . p a r m s . m e a s u r e ; 
 	 	 	 	 / *   g e t   t h e   t e x t   * / 
 	                 s h a r e d . b l a n k _ t e x t _ p t r   - >   t e x t . i n p u t _ l i n e   = 
 	 	       c o m p _ e x t r _ s t r _   ( " 1 " b ,   v a r f l d ,   1 ,   f n x t ,   0 , 
 	 	       a d d r   ( c t l . i n f o ) ) ; 
 	                 v a r f l d   =   l t r i m   ( s u b s t r   ( v a r f l d ,   f n x t ) ) ; 
 	 	 	 	 / *   p a g e   h e a d e r   i s   n e x t   * / 
 	                 i f   v a r f l d   ^ =   " " 
 	                 t h e n 
 	 	   d o ; 	 	 / *   g e t   a   b l o c k   f o r   i t   * / 
 	 	         c a l l   c o m p _ u t i l _ $ g e t b l k   ( - 1 ,   s h a r e d . b l a n k _ h e a d e r _ p t r , 
 	 	                   " b h " ,   a d d r   ( c u r r e n t _ p a r m s ) ,   " 0 " b ) ; 
 	 	         h f c b l k _ p t r   =   s h a r e d . b l a n k _ h e a d e r _ p t r ; 
 	 	 	 	 / *   g e t   t h e   t i t l e   * / 
 	 	         b l a n k _ h d r   = 
 	 	                   c o m p _ e x t r _ s t r _   ( " 1 " b ,   v a r f l d ,   1 ,   f n x t ,   0 , 
 	 	                   a d d r   ( c t l . i n f o ) ) ; 
 	 	         i f   b l a n k _ h d r   ^ =   " " 
 	 	         t h e n   c a l l   c o m p _ h f t _ c t l s _ $ t i t l e   ( s h a r e d 
 	 	 	         . b l a n k _ h e a d e r _ p t r ,   a d d r   ( c t l ) ,   b l a n k _ h d r , 
 	 	 	         c t l . l i n e s p a c e ) ; 
 	 	         v a r f l d   =   l t r i m   ( s u b s t r   ( v a r f l d ,   f n x t ) ) ; 
 	 	   e n d ; 	 	 / * * / 
 	 	 	 	 / *   p a g e   f o o t e r   i s   l a s t   * / 
 	                 i f   v a r f l d   ^ =   " " 
 	                 t h e n 
 	 	   d o ; 	 	 / *   g e t   a   b l o c k   f o r   i t   * / 
 	 	         c a l l   c o m p _ u t i l _ $ g e t b l k   ( - 1 ,   s h a r e d . b l a n k _ f o o t e r _ p t r , 
 	 	                   " b f " ,   a d d r   ( c u r r e n t _ p a r m s ) ,   " 0 " b ) ; 
 	 	         h f c b l k _ p t r   =   s h a r e d . b l a n k _ f o o t e r _ p t r ; 
 	 	 	 	 / *   g e t   t h e   t i t l e   * / 
 	 	         b l a n k _ f t r   = 
 	 	                   c o m p _ e x t r _ s t r _   ( " 1 " b ,   v a r f l d ,   1 ,   f n x t ,   0 , 
 	 	                   a d d r   ( c t l . i n f o ) ) ; 
 
 	 	         i f   b l a n k _ f t r   ^ =   " " 
 	 	         t h e n   c a l l   c o m p _ h f t _ c t l s _ $ t i t l e   ( s h a r e d 
 	 	 	         . b l a n k _ f o o t e r _ p t r ,   a d d r   ( c t l ) ,   b l a n k _ f t r , 
 	 	 	         c t l . l i n e s p a c e ) ; 
 	 	   e n d ; 
 	           e n d ; 
 
 	     i f   ^ o p t i o n . g a l l e y _ o p t 
 	     t h e n 
 	           d o ; 	 	 	 / *   w r i t e   t h e   b l a n k   p a g e s   * / 
 	                 d o   i   =   b l a n k _ c o u n t   t o   1   b y   - 1 ; 
 	 	   p a g e . h d r . b l a n k p a g e   =   " 1 " b ; 
 	 	 	 	 / *   h e a d   t h e   p a g e   * / 
 	 	   c a l l   c o m p _ h e a d _ p a g e _   ( 0 ) ; 
 	 	 	 	 / *   w r i t e   a n y   g i v e n   t e x t   * / 
 	 	   i f   s h a r e d . b l a n k _ t e x t _ p t r   ^ =   n u l l   ( ) 
 	 	   t h e n   i f   s h a r e d . b l a n k _ t e x t _ p t r   - >   t e x t . i n p u t _ l i n e   ^ =   " " 
 	 	             t h e n 
 	 	                   d o ; 	 / *   s p a c e   d o w n   t o   p a g e   c e n t e r   * / 
 	 	 	     c a l l   c o m p _ s p a c e _   ( 
 	 	 	               d i v i d e   ( p a g e . h d r . n e t ,   2 ,   3 1 ,   1 0 ) , 
 	 	 	               s h a r e d . b l k p t r ,   " 1 " b ,   " 1 " b ,   " 0 " b ,   " 0 " b ) ; 
 	 	 	     c a l l   c o m p _ b r e a k _   ( b l o c k _ b r e a k ,   0 ) ; 
 	 	 	     c a l l   c o m p _ u t i l _ $ g e t b l k   ( 0 ,   s h a r e d . b l k p t r ,   " t x " , 
 	 	 	               a d d r   ( c u r r e n t _ p a r m s ) ,   " 0 " b ) ; 
 	 	 	     c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . b l k p t r ,   " 1 " b , 
 	 	 	               " 1 " b ,   " 1 " b ,   " 0 " b , 
 	 	 	               a d d r   ( s h a r e d . b l a n k _ t e x t _ p t r   - >   t e x t . i n p u t ) 
 	 	 	               ) ; 
 	 	 	     c a l l   c o m p _ b r e a k _   ( p a g e _ b r e a k ,   0 ) ; 
 	 	                   e n d ; 
 	 	             e l s e   c a l l   c o m p _ e j e c t _ p a g e _ ; 
 	 	   e l s e   c a l l   c o m p _ e j e c t _ p a g e _ ; 
 	                 e n d ; 
 
 	                 p a g e . h d r . b l a n k p a g e   =   " 0 " b ; 
 	           e n d ; 
 
 	     i f   s h a r e d . b l a n k _ h e a d e r _ p t r   ^ =   n u l l 
 	     t h e n   c a l l   c o m p _ u t i l _ $ r e l b l k   ( - 1 ,   s h a r e d . b l a n k _ h e a d e r _ p t r ) ; 
 	     i f   s h a r e d . b l a n k _ f o o t e r _ p t r   ^ =   n u l l 
 	     t h e n   c a l l   c o m p _ u t i l _ $ r e l b l k   ( - 1 ,   s h a r e d . b l a n k _ f o o t e r _ p t r ) ; 
 	     i f   s h a r e d . b l a n k _ t e x t _ p t r   ^ =   n u l l 
 	     t h e n   c a l l   c o m p _ u t i l _ $ r e l b l k   ( - 1 ,   s h a r e d . b l a n k _ t e x t _ p t r ) ; 
                   e n d ; 
 
 r e t u r n _ : 
             i f   s h a r e d . b u g _ m o d e 
             t h e n   c a l l   i o a _   ( " ^ 5 x ( b r e a k _ c t l s : ^ [   ^ a ^ ] ) " ,   e x i t _ s t r   ^ =   " " ,   e x i t _ s t r ) ; 
 
             r e t u r n ; 
 % p a g e ; 
 s h o w : 
       p r o c   ( d a t u m ,   s c a l e )   r e t u r n s   ( f i x e d   d e c   ( 1 1 ,   3 ) ) ; 
             d c l   d a t u m 	           f i x e d   b i n   ( 3 1 ) ; 
             d c l   s c a l e 	           f i x e d   b i n   ( 3 1 ) ; 
 
             r e t u r n   ( 
 	   r o u n d   ( d e c   ( r o u n d   ( d i v i d e   ( d a t u m ,   s c a l e ,   3 1 ,   1 1 ) ,   1 0 ) ,   1 1 ,   4 ) ,   3 ) ) ; 
       e n d   s h o w ; 
 % p a g e ; 
 % i n c l u d e   c o m p _ b r k t y p e s ; 
 % i n c l u d e   c o m p _ c o l u m n ; 
 % i n c l u d e   c o m p _ c t l _ i n d e x ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ o p t i o n ; 
 % i n c l u d e   c o m p _ p a g e ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t a b l e ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p s t a t ; 
 
       e n d   c o m p _ b r e a k _ c t l s _ ; 
        
 
 
  
 	 	         c o m p _ c t l s _ . p l 1                                     0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 0 9 . 0             7 9 8 0 0 3     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   *     
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   r o u t i n e   t o   p r o c e s s   t e x t   c o n t r o l s   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ c t l s _ : 
     p r o c   ( t e x t _ a d d e d ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   t e x t _ a d d e d 	       b i t   ( 1 )   a l i g n e d ;   / *   f l a g   t o   s h o w   t e x t   w a s   g e n e r a t e d   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   a g a i n 	       b i t   ( 1 ) ; 	 / *   1   =   p r o c e s s   l i n e   a s   c o n t r o l   l i n e   * / 
         d c l   a t d 	       c h a r   ( 3 0 0 ) ; 	 / *   a t t a c h   d e s c r i p t i o n   f o r   i n p u t   * / 
         d c l   a u x _ w r t _ b u f 	       c h a r   ( 1 0 2 0 )   v a r ;   / *   b u f f e r   f o r   a u x   f i l e   d a t a   * / 
         d c l   a u x _ f i l e _ i n d e x   f i x e d ; 	 	 / *   t a b l e   i n d e x   f o r   a u x   w r i t e   f i l e   * / 
         d c l   b l n k c t 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   b l a n k   l i n e   c o u n t   * / 
         d c l   b r e a k _ t y p e 	       f i x e d   b i n ; 	 / *   b r e a k   t y p e   f o r   s p a c e   c t l s   * / 
         d c l   c a l l e r s _ n e s t       f i x e d   b i n ; 	 / *   c a l l e r s   i f   n e s t   l e v e l   * / 
 	 	 	 	 / *   h e a d i n g   l i n e   f o r   c o m p x   f i l e   * / 
         d c l   c h a r s _ h e a d 	       c h a r   ( 1 9 )   a l i g n e d   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( "     P a g e     L i n e     T e x t 
 " ) ; 	 	 	 	 / * * / 
 	 	 	 	 / *   c o m m a n d   l i n e   f o r   . e x c   * / 
         d c l   c o m m a n d _ l i n e       c h a r   ( 1 0 2 0 )   a l i g n e d ; 
         d c l   c o m p x _ b u f f e r       c h a r   ( 1 2 8 )   v a r ; 	 / *   c o m p x   l i n e   b u f f e r   * / 
         d c l   c o n d _ n a m e 	       c h a r   ( 3 2 )   v a r ; 	 / *   c o n d i t i o n   n a m e   * / 
 	 	 	 	 / *   l e g a l   c o n d i t i o n   n a m e s   * / 
         d c l   c o n d _ n a m e s 	       ( 1 )   c h a r   ( 3 2 )   v a r   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " b l o c k _ s p l i t " ) ; 
 	 	 	 	 / *   c o n t r o l   t o k e n s   * / 
 / * * * *   f o r m a t :   o f f   * / 
             d c l   c o n t r o l s 	           ( 3 7 4 )   c h a r   ( 3 2 )   i n i t   ( 
                                                   " a l b       " ,   " a l i g n - b o t h                                 " , 
                                                   " a l c       " ,   " a l i g n - c e n t e r                             " , 
                                                   " a l i       " ,   " a l i g n - i n s i d e                             " , 
                                                   " a l l       " ,   " a l i g n - l e f t                                 " , 
                                                   " a l o       " ,   " a l i g n _ o u t s i d e                           " , 
                                                   " a l r       " ,   " a l i g n - r i g h t                               " , 
                                                   " b b         " ,   " b l o c k - b e g i n                               " ,   / *   O B S O L E T E   * / 
                                                   " b a r t     " ,   " b e g i n - a r t w o r k                           " , 
                                                   " b b a       " ,   " b l o c k - b e g i n - a r t                       " ,   / *   O B S O L E T E   * / 
                                                   " b b l k     " ,   " b e g i n - b l o c k                               " ,   / *   1 0   * / 
                                                   " b b c       " ,   " b l o c k - b e g i n - c o l u m n                 " ,   / *   O B S O L E T E   * / 
 	 	           " b b e       " ,   " b l o c k - b e g i n - e q u a t i o n             " ,   / *   O B S O L E T E   * / 
 	 	           " b b f       " ,   " b l o c k - b e g i n - f o o t n o t e             " ,   / *   O B S O L E T E   * / 
 	 	           " b b i       " ,   " b l o c k - b e g i n - i n l i n e                 " ,   / *   O B S O L E T E   * / 
 	 	           " b b k       " ,   " b l o c k - b e g i n - k e e p                     " ,   / *   O B S O L E T E   * / 
 	 	           " b b l       " ,   " b l o c k - b e g i n - l i t e r a l               " ,   / *   O B S O L E T E   * / 
 	 	           " b b n       " ,   " b l o c k - b e g i n - n a m e d                   " ,   / *   O B S O L E T E   * / 
 	 	           " b b p       " ,   " b l o c k - b e g i n - p i c t u r e               " ,   / *   O B S O L E T E   * / 
 	 	           " b b t       " ,   " b l o c k - b e g i n - t i t l e                   " ,   / *   O B S O L E T E   * / 
 	 	           " b c f       " ,   " b e g i n - c o l u m n - f o o t e r               " ,   / *   2 0   * / 
 	 	           " b c h       " ,   " b e g i n - c o l u m n - h e a d e r               " , 
 	 	           " b e         " ,   " b l o c k - e n d                                   " ,   / *   O B S O L E T E   * / 
 	 	           " b e a       " ,   " b l o c k - e n d - a r t                           " ,   / *   O B S O L E T E   * / 
 	 	           " b e c       " ,   " b l o c k - e n d - c o l u m n                     " ,   / *   O B S O L E T E   * / 
 	 	           " b e e       " ,   " b l o c k - e n d                                   " ,   / *   O B S O L E T E   * / 
 	 	           " b e f       " ,   " b l o c k - e n d - f o o t n o t e                 " ,   / *   O B S O L E T E   * / 
 	 	           " b e k       " ,   " b l o c k - e n d - k e e p                         " ,   / *   O B S O L E T E   * / 
 	 	           " b e l       " ,   " b l o c k - e n d - l i t e r a l                   " ,   / *   O B S O L E T E   * / 
 	 	           " b e n       " ,   " b l o c k - e n d - n a m e d                       " ,   / *   O B S O L E T E   * / 
 	 	           " b e p       " ,   " b l o c k - e n d - p i c t u r e                   " ,   / *   3 0   O B S O L E T E   * / 
 	 	           " b e t       " ,   " b l o c k - e n d - t i t l e                       " ,   / *   O B S O L E T E   * / 
 	 	           " b p f       " ,   " b e g i n - p a g e - f o o t e r                   " ,   
 	 	           " b p h       " ,   " b e g i n - p a g e - h e a d e r                   " , 
 	 	           " b r         " ,   " b r e a k                                           " , 
 	 	           " b r b       " ,   " b r e a k - b l o c k                               " , 
 	 	           " b r c       " ,   " b r e a k - c o l u m n                             " , 
 	 	           " b r f       " ,   " b r e a k - f o r m a t                             " , 
 	 	           " b r n       " ,   " b r e a k - n e e d                                 " , 
 	 	           " b r p       " ,   " b r e a k - p a g e                                 " , 
 	 	           " b r s       " ,   " b r e a k - s k i p                                 " ,   / *   4 0   * / 
 	 	           " b r w       " ,   " b r e a k - w o r d                                 " , 
 	 	           " b t c       " ,   " b e g i n - t e x t - c a p t i o n                 " , 
 	 	           " b t t       " ,   " b e g i n - t e x t - t i t l e                     " , 
 	 	           " c b a       " ,   " c h a n g e - b a r s - a d d i t i o n             " , 
 	 	           " c b d       " ,   " c h a n g e - b a r s - d e l e t i o n             " , 
 	 	           " c b f       " ,   " c h a n g e - b a r s - o f f                       " , 
 	 	           " c b m       " ,   " c h a n g e - b a r s - m o d i f i c a t i o n     " , 
 	 	           " c b n       " ,   " c h a n g e s - b a r s - o n                       " , 
 	 	           " c f l       " ,   " c o l u m n - f o o t e r - l i n e                 " , 
 	 	           " c h l       " ,   " c o l u m n - h e a d e r - l i n e                 " ,   / *   5 0   * / 
 	 	           " c s d       " ,   " c h a n g e - s y m b o l - d e l i m i t e r       " , 
 	 	           " c t d       " ,   " c h a n g e - t i t l e - d e l i m i t e r         " , 
 	 	           " d f u       " ,   " d e f e r - u n t i l                               " , 
 	 	           " d m p       " ,   " d u m p                                             " , 
 	 	           " d o         " ,   " d o                                                 " , 
 	 	           " d v c       " ,   " d e v i c e - c o n t r o l                         " , 
 	 	           " e a r t     " ,   " e n d - a r t w o r k                               " , 
 	 	           " e c f       " ,   " e n d - c o l u m n - f o o t e r                   " , 
 	 	           " e c h       " ,   " e n d - c o l u m n - h e a d e r                   " , 
 	 	           " e l s e     " ,   " e l s e                                             " ,   / *   6 0   * / 
 	 	           " e l s e i f " ,   " e l s e i f                                         " , 
 	 	           " e n d d o   " ,   " e n d d o                                           " , 
 	 	           " e n d i f   " ,   " e n d i f                                           " , 
 	 	           " e p f       " ,   " e n d - p a g e - f o o t e r                       " , 
 	 	           " e p h       " ,   " e n d - p a g e - h e a d e r                       " , 
 	 	           " e q c       " ,   " e q u a t i o n - c o u n t                         " , 
 	 	           " e r r       " ,   " e r r o r                                           " , 
 	 	           " e t c       " ,   " e n d - t e x t - c a p t i o n                     " , 
 	 	           " e t t       " ,   " e n d - t e x t - t i t l e                         " , 
 	 	           " e x c       " ,   " e x e c u t e                                       " ,   / *   7 0   * / 
 	 	           " f b         " ,   " f o o t e r - b l o c k                             " , 
 	 	           " f b b       " ,   " f o o t e r - b l o c k - b e g i n                 " ,   / *   O B S O L E T E   * / 
 	 	           " f b e       " ,   " f o o t e r - b l o c k - e n d                     " ,   / *   O B S O L E T E   * / 
 	 	           " f i         " ,   " f i l l - d e f a u l t                             " , 
 	 	           " f i f       " ,   " f i l l - o f f                                     " ,   
 	 	           " f i n       " ,   " f i l l - o n                                       " , 
 	 	           " f l         " ,   " f o o t e r - l i n e                               " , 
 	 	           " f l a       " ,   " f o o t e r - l i n e - a l l                       " , 
 	 	           " f l e       " ,   " f o o t e r - l i n e - e v e n                     " , 
 	 	           " f l o       " ,   " f o o t e r - l i n e - o d d                       " ,   / *   8 0   * / 
 	 	           " f n t       " ,   " f o n t                                             " , 
 	 	           " f r f       " ,   " f o o t n o t e - r e f e r e n c e                 " , 
 	 	           " f t h       " ,   " f o o t n o t e s - h e l d                         " , 
 	 	           " f t p       " ,   " f o o t n o t e s - p a g e d                       " , 
 	 	           " f t r       " ,   " f o o t n o t e s - r u n n i n g                   " , 
 	 	           " f t u       " ,   " f o o t n o t e s - u n r e f e r e n c e d         " , 
 	 	           " g a l l e y " ,   " g a l l e y - m o d e                               " , 
 	 	           " g l         " ,   " g a l l e y - m o d e                               " , 
 	 	           " g o         " ,   " g o - t o                                           " ,   
 	 	           " h b         " ,   " h e a d e r - b l o c k                             " ,   / *   9 0   * / 
 	 	           " h b b       " ,   " h e a d e r - b l o c k - b e g i n                 " , 
 	 	           " h b e       " ,   " h e a d e r - b l o c k - e n d                     " , 
 	 	           " h i f       " ,   " h i t - f i l e                                     " , 
 	 	           " h i t       " ,   " h i t                                               " , 
 	 	           " h l         " ,   " h e a d e r - l i n e                               " , 
 	 	           " h l a       " ,   " h e a d e r - l i n e - a l l                       " , 
 	 	           " h l e       " ,   " h e a d e r - l i n e - e v e n                     " , 
 	 	           " h l f       " ,   " h e a d e r - l i n e - f o o t n o t e             " , 
 	 	           " h l o       " ,   " h e a d e r - l i n e - o d d                       " , 
 	 	           " h r u l     " ,   " h o r i z o n t a l - r u l e                       " ,   / *   1 0 0   * / 
 	 	           " h t d       " ,   " h o r i z o n t a l - t a b s - d e f i n e         " , 
 	 	           " h t f       " ,   " h o r i z o n t a l - t a b s - o f f               " , 
 	 	           " h t n       " ,   " h o r i z o n t a l - t a b s - o n                 " , 
 	 	           " h y         " ,   " h y p h e n a t e - d e f a u l t                   " , 
 	 	           " h y f       " ,   " h y p h e n a t e - o f f                           " , 
 	 	           " h y n       " ,   " h y p h e n a t e - o n                             " , 
 	 	           " h y w       " ,   " h y p h e n a t e - w o r d                         " , 
 	 	           " i b l       " ,   " i n s e r t - b l o c k                             " , 
 	 	           " i f         " ,   " i f                                                 " , 
 	 	           " i f i       " ,   " i n s e r t - f i l e                               " ,   / *   1 1 0   * / 
 	 	           " i f t       " ,   " i n s e r t - f o o t n o t e s                     " , 
 	 	           " i g r       " ,   " i n s e r t - g r a p h i c                         " , 
 	 	           " i n         " ,   " i n d e n t                                         " , 
 	 	           " i n b       " ,   " i n d e n t - b o t h                               " , 
 	 	           " i n l       " ,   " i n d e n t - l e f t                               " , 
 	 	           " i n r       " ,   " i n d e n t - r i g h t                             " , 
 	 	           " i n d c t l " ,   " i n d e n t - c o n t r o l s                       " , 
 	 	           " i n d x     " ,   " i n s e r t - i n d e x                             " , 
 	 	           " l a         " ,   " l a b e l                                           " , 
 	 	           " l s         " ,   " l i n e s p a c e                                   " ,   / *   1 2 0   * / 
 	 	           " p d         " ,   " p a g e - d e f i n e                               " , 
 	 	           " p d c       " ,   " p a g e - d e f i n e - c o l u m n s               " , 
 	 	           " p d l       " ,   " p a g e - d e f i n e - l e n g t h                 " , 
 	 	           " p d w       " ,   " p a g e - d e f i n e - w i d t h                   " , 
 	 	           " p f l       " ,   " p a g e - f o o t e r - l i n e                     " , 
 	 	           " p h l       " ,   " p a g e - h e a d e r - l i n e                     " , 
 	 	           " p m l       " ,   " p a g e - m a r g i n - l e f t                     " , 
 	 	           " p s         " ,   " p a g e - s p a c e                                 " , 
 	 	           " r a c       " ,   " r u n a r o u n d - c e n t e r e d                 " , 
 	 	           " r a l       " ,   " r u n a r o u n d - l e f t                         " ,   / *   1 3 0   * / 
 	 	           " r a r       " ,   " r u n a r o u n d - r i g h t                       " , 
 	 	           " r d         " ,   " r e a d                                             " , 
 	 	           " r t         " ,   " r e t u r n                                         " , 
 	 	           " s p         " ,   " s p a c e                                           " , 
 	 	           " s p b       " ,   " s p a c e - b r e a k                               " , 
 	 	           " s p d       " ,   " s p a c e - t o - d e p t h                         " , 
 	 	           " s p f       " ,   " s p a c e - f o r m a t                             " , 
 	 	           " s p t       " ,   " s p a c e - t o t a l                               " , 
 	 	           " s r         " ,   " s e t - r e f e r e n c e                           " , 
 	 	           " s r c       " ,   " s e t - r e f e r e n c e - c o u n t e r           " ,   / *   1 4 0   * / 
 	 	           " s r m       " ,   " s e t - r e f e r e n c e - m o d e                 " , 
 	 	           " s r v       " ,   " s e t - r e f e r e n c e - v a r i a b l e         " , 
 	 	           " s t l       " ,   " s p l i t - t i t l e - l i n e                     " , 
 	 	           " t a b       " ,   " t a b l e - d e f i n e                             " , 
 	 	           " t a c       " ,   " t a b l e - c o l u m n                             " , 
 	 	           " t a f       " ,   " t a b l e - o f f                                   " , 
 	 	           " t a n       " ,   " t a b l e - o n                                     " , 
 	 	           " t b         " ,   " t i t l e - b l o c k                               " , 
 	 	           " t b b       " ,   " t i t l e - b l o c k - b e g i n                   " , 
 	 	           " t b e       " ,   " t i t l e - b l o c k - e n d                       " ,   / *   1 5 0   * / 
 	 	           " t c l       " ,   " t e x t - c a p t i o n - l i n e                   " , 
 	 	           " t h e n     " ,   " t h e n                                             " , 
 	 	           " t h l       " ,   " t e x t - h e a d e r - l i n e                     " , 
 	 	           " t l c       " ,   " t i t l e - l i n e - c a p t i o n                 " , 
 	 	           " t l h       " ,   " t i t l e - l i n e - h e a d e r                   " , 
 	 	           " t r e       " ,   " t r a n s l a t e - e x c e p t i o n s             " , 
 	 	           " t r f       " ,   " t r a n s l a t e - f o r m a t t e d               " , 
 	 	           " t r n       " ,   " t r a n s l a t e                                   " , 
 	 	           " t t l       " ,   " t e x t - t i t l e - l i n e " , 
 	 	           " t s         " ,   " t e s t                                             " ,   / *   1 6 0   * / 
 	 	           " t y         " ,   " t y p e                                             " , 
 	 	           " u n         " ,   " u n d e n t                                         " , 
 	 	           " u n b       " ,   " u n d e n t - b o t h " , 
 	 	           " u n h       " ,   " u n d e n t - h a n g i n g                         " , 
 	 	           " u n l       " ,   " u n d e n t - l e f t                               " , 
 	 	           " u n n       " ,   " u n d e n t - n o b r e a k                         " , 
 	 	           " u n r       " ,   " u n d e n t - r i g h t                             " , 
 	 	           " u n s o n   " ,   " u n d e r s c o r e - o n                           " , 
 	 	           " u n s o f f " ,   " u n d e r s c o r e - o f f                         " , 
 	 	           " u r         " ,   " u s e - r e f e r e n c e                           " ,   / *   1 7 0   * / 
 	 	           " v a b       " ,   " v e r t i c a l - a l i g n - b o t t o m           " , 
 	 	           " v a c       " ,   " v e r t i c a l - a l i g n - c e n t e r           " , 
 	 	           " v a j       " ,   " v e r t i c a l - a l i g n - j u s t i f i e d     " , 
 	 	           " v a t       " ,   " v e r t i c a l - a l i g n - t o p                 " , 
 	 	           " v m         " ,   " v e r t i c a l - m a r g i n - a l l               " , 
 	 	           " v m b       " ,   " v e r t i c a l - m a r g i n - t o p               " , 
 	 	           " v m f       " ,   " v e r t i c a l - m a r g i n - f o o t e r         " , 
 	 	           " v m h       " ,   " v e r t i c a l - m a r g i n - h e a d e r         " , 
 	 	           " v m t       " ,   " v e r t i c a l - m a r g i n - t o p               " , 
 	 	           " v r u l     " ,   " v e r t i c a l - r u l e                           " ,   / *   1 8 0   * / 
 	 	           " w i         " ,   " w i d o w                                           " , 
 	 	           " w i f 	     " ,   " w i d o w - f o o t n o t e                         " , 
 	 	           " w i t       " ,   " w i d o w - t e x t                                 " , 
 	 	           " w r f       " ,   " w r i t e - f o r m a t t e d                       " , 
 	 	           " w r o       " ,   " w r i t e - o r d e r                               " , 
 	 	           " w r t       " ,   " w r i t e - t e x t                                 " , 
 	 	           " w t         " ,   " w a i t                                             " , 
 	 	           ( 0 )   ( 3 2 ) "  " ) 	 	           / *   1 8 7   * / 
 	 	           s t a t i c   o p t i o n s   ( c o n s t a n t ) ; 
 / * * * *   f o r m a t :   o n   * / 
         d c l   C R E A T E 	       b i t   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 1 " b ) ; 
 	 	 	 	 / *   c t l   l i n e   i n d e x   f o r   t r a n s l a t i o n   * / 
         d c l   1   c t l _ c h a r 	       b a s e d   ( a d d r   ( c t l _ l i n e ) ) , 
 	 2   l e n 	       f i x e d   ( 3 5 ) , 
 	 2   i n d e x 	       ( 1 0 2 0 )   f i x e d   ( 8 )   u n a l i g n e d ; 
         d c l   c t l _ i n d e x 	       f i x e d   b i n ; 	 / *   c o n t r o l   t o k e n   i n d e x   v a l u e   * / 
 	 	 	 	 / *   c t l   s t r i n g   f o r   s e a r c h   * / 
         d c l   c t l _ l i s t 	       c h a r   ( 3 2   *   h b o u n d   ( c o n t r o l s ,   1 ) )   b a s e d   ( c t l s _ p t r ) ; 
         d c l   c t l s _ p t r 	       p t r ; 	 	 / * * / 
         d c l   c t l _ t o k e n 	       c h a r   ( 3 2 ) ; 	 / *   c o n t r o l   t o k e n   f r o m   i n p u t   l i n e   * / 
         d c l   c t l _ t o k e n _ l e n     f i x e d   b i n ; 	 / *   s t r i n g   l e n g t h   o f   c o n t r o l   t o k e n   * / 
         d c l   d i r l 	       f i x e d   ( 3 5 ) ; 
         d c l   d i r n a m e 	       c h a r   ( 1 6 8 ) ; 	 / *   d i r   f o r   i n s e r t   &   a u x   f i l e s   * / 
         d c l   E L S E 	       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( - 1 ) ; 
         d c l   e n d c h a r 	       c h a r   ( 1 ) ; 
         d c l   e n d _ f l a g 	       b i t   ( 1 )   s t a t i c   i n i t   ( " 0 " b ) ; 
 	 	 	 	 / *   f o r   l a b e l   s e a r c h i n g   * / 
         d c l   e r c d 	       f i x e d   ( 3 5 ) ; 	 / *   e r r o r   c o d e   * / 
         d c l   e x i t _ s t r 	       c h a r   ( 1 2 8 )   v a r ; 	 / *   d e b u g   m e s s a g e   * / 
         d c l   f c s _ s t r 	       c h a r   ( 8 )   a l i g n e d ; 
         d c l   f o o t r e f _ a r r a y     ( 3 )   c h a r   ( 4 8 )   v a r ; 
         d c l   f o o t r e f s t r 	       c h a r   ( 2 5 6 )   v a r ; 
         d c l   f o u n d _ c l a u s e       b i t   ( 1 ) ; 
         d c l   f t n b l k p t r 	       p t r ; 	 	 / *   a   f o o t n o t e   b l o c k   * / 
         d c l   1   f t n b l k 	       a l i g n e d   l i k e   t e x t   b a s e d   ( f t n b l k p t r ) ; 
         d c l   f t n d x 	       f i x e d   b i n ; 	 / *   b l k n d x   v a l u e   f o r   f o o t n o t e s   * / 
         d c l   f t n r e f l i n 	       f i x e d   b i n ; 	 / *   r e f   l i n e   i n d e x   f o r   f t n   t h r e a d   * / 
         d c l   g i v e n _ s y m b o l       c h a r   ( 3 2 ) ; 	 / *   s y m b o l   n a m e   f o r   . s r / . s r v / . s r c   * / 
         d c l   h e a d _ u s e d 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   s p a c e   u s e d   b y   p a g e   h e a d e r   * / 
         d c l   h i t _ t e x t 	       c h a r   ( 1 0 2 0 )   v a r ; 
         d c l   h i t f i l e n d x 	       f i x e d   b i n ; 	 / *   l o c a l   h i t   f i l e   i n d e x   * / 
         d c l   h i t c h a r n d x 	       f i x e d   b i n ; 
         d c l   h i t t y p e c h a r 	       c h a r   ( 1 ) ; 	 / *   h i t   t y p e   d e s i r e d   * / 
         d c l   h i t t y p e c o d e s       c h a r   ( 8 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " U L I A N S * K " ) ; 
         d c l   h i t t y p e n d x 	       f i x e d   b i n ; 	 / *   i n d e x   f o r   h i t   t y p e   * / 
         d c l   h s c a l e s 	       ( 7 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( 7 2 0 0 ,   6 0 0 0 ,   7 2 0 0 0 ,   2 8 3 4 . 6 5 ,   1 2 0 0 0 ,   1 0 0 0 ,   0 ) ; 
         d c l   ( i ,   j ,   k ,   l )       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   i t s p t r 	       p t r ; 	 	 / *   l o c a l   I T S   p o i n t e r   * / 
         d c l   l a b e l _ v a l u e _ s t r 	 	 / *   s t r i n g   o f   l a b e l   v a l u e s   f o r   s e a r c h   * / 
 	 	       c h a r   ( 3 2 0 0 )   b a s e d ; 
         d c l   l i n e n o _ p i c 	       p i c   " z z z z z 9 " ; 	 / *   p i c t u r e   o f   l i n e n o   f o r   c o m p x   * / 
         d c l   L O G 	       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 1 ) ; 
         d c l   m o d e _ k e y 	       c h a r   ( 2 )   v a r ; 	 / *   d i s p l a y   m o d e   k e y w o r d   * / 
         d c l   m o d e n d x 	       f i x e d   b i n ; 	 / *   f o r   d i s p l a y   m o d e   k e y w o r d   * / 
         d c l   n a m e l 	       f i x e d   ( 3 5 ) ; 
         d c l   o f l o 	       b i t   ( 1 ) ; 
         d c l   p g s _ p a t h 	       c h a r   ( 2 0 0 ) ; 	 / *   p a t h   o f   P G S   f o r   g r a p h i c   i n s e r t i o n   * / 
         d c l   r d c t 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   c h a r s   r e a d   f o r   . r d   * / 
         d c l   s a v e _ c t l _ i n d e x   f i x e d   ( 3 5 ) ; 	 / *   t o   s a v e   c t l . i n d e x   a r o u n d   c a l l s   * / 
         d c l   s a v e _ l i n e 	       c h a r   ( 1 0 2 0 )   v a r ;   / *   t o   h o l d   . g o   l i n e   * / 
         d c l   s a v e _ p o s n 	       f i x e d   ( 3 5 ) ; 	 / *   t o   h o l d   p o s i t i o n   o f   . g o   c o n t r o l   * / 
         d c l   s c a l e 	       ( 1 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( 1 0 0 0 ) ; 
         d c l   s e a r c h _ l a b e l       c h a r   ( 3 2 ) ; 	 / *   l a b e l   v a l u e   f o r   s e a r c h   * / 
         d c l   s l o g 	       b i t   ( 1 ) ; 
         d c l   T H E N 	       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 1 ) ; 
         d c l   t h i s _ n e s t 	       f i x e d   b i n ; 	 / *   f o r   i f   n e s t   s e a r c h i n g   * / 
 	 	 	 	 / *   W S   t r i m   c o n t r o l   f l a g   * / 
         d c l   t r i m _ f l a g 	       b i t   ( 1 ) ; 
         d c l   t y _ b u f 	       c h a r   ( 2 0 0 ) ; 
         d c l   u n s c a l e d 	       ( 1 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 1 ) ; 
         d c l   v s c a l e s 	       ( 7 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( 1 2 0 0 0 ,   9 0 0 0 ,   7 2 0 0 0 ,   2 8 3 4 . 6 5 ,   1 2 0 0 0 ,   1 0 0 0 ,   0 ) ; 
         d c l   w d i r 	       c h a r   ( 1 6 8 ) ; 
         d c l   w d i r l 	       f i x e d ; 
         d c l   w r d _ b u f f e r 	       c h a r   ( 1 2 8 )   v a r ; 	 / *   b r e a k   w o r d   b u f f e r   * / 
 
         d c l   c o m p _ e r r o r _ t a b l e _ $ s y n t a x _ e r r o r 
 	 	       e x t   f i x e d   b i n   ( 3 5 ) ; 
         d c l   c o m p _ e r r o r _ t a b l e _ $ u n k n o w n _ k e y w o r d 
 	 	       e x t   f i x e d   b i n   ( 3 5 ) ; 
         d c l   c o m p _ e r r o r _ t a b l e _ $ u s a g e _ e r r o r 
 	 	       e x t   f i x e d   b i n   ( 3 5 ) ; 
 
         d c l   ( a d d r ,   b e f o r e ,   c h a r ,   c o l l a t e ,   d i v i d e ,   f i x e d ,   h b o u n d ,   i n d e x ,   l e n g t h , 
                 l t r i m ,   m a x ,   m i n ,   n u l l ,   r e v e r s e ,   r t r i m ,   s e a r c h ,   s i z e ,   s u b s t r ,   u n s p e c , 
                 v e r i f y ) 	       b u i l t i n ; 
 
         d c l   ( c l e a n u p ,   c o m p _ a b o r t ) 
 	 	       c o n d i t i o n ; 
 
         d c l   a d j u s t _ b i t _ c o u n t _ 
 	 	       e n t r y   ( c h a r   ( 1 6 8 ) ,   c h a r   ( 3 2 ) ,   b i t   ( 1 ) ,   f i x e d , 
 	 	       f i x e d   ( 3 5 ) ) ; 
         d c l   c o m _ e r r _ 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   c u _ $ c p 	       e n t r y   ( p t r ,   f i x e d   ( 3 5 ) ,   f i x e d   ( 3 5 ) ) ; 
         d c l   e x p a n d _ p a t h n a m e _ 
 	 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   f i x e d   ( 3 5 ) ) ; 
         d c l   g e t _ w d i r _ 	       e n t r y   r e t u r n s   ( c h a r   ( 1 6 8 ) ) ; 
         d c l   i o a _ $ r s n n l 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   i o x _ $ a t t a c h _ n a m e 
 	 	       e n t r y   ( c h a r   ( * ) ,   p t r ,   c h a r   ( * ) ,   p t r ,   f i x e d   ( 3 5 ) ) ; 
         d c l   i o x _ $ d e t a c h _ i o c b 
 	 	       e n t r y   ( p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o x _ $ g e t _ l i n e     e n t r y   ( p t r ,   p t r ,   f i x e d   b i n   ( 3 5 ) ,   f i x e d   b i n   ( 3 5 ) , 
 	 	       f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o x _ $ o p e n 	       e n t r y   ( p t r ,   f i x e d   b i n ,   b i t   ( 1 )   a l i g n e d ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o x _ $ p u t _ c h a r s   e n t r y   ( p t r ,   p t r ,   f i x e d   b i n ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   p a t h n a m e _ 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) )   r e t u r n s   ( c h a r   ( 1 6 8 ) ) ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " c t l s :   ^ a " ,   c o m p _ u t i l _ $ d i s p l a y   ( l t r i m   ( c t l _ l i n e ) ,   0 ,   " 0 " b ) ) 
 	         ; 
 
         e x i t _ s t r   =   " " ; 	 	 	 / *   c l e a r   d e b u g   i n f o   s t r i n g   * / 
         c t l s _ p t r   =   a d d r   ( c o n t r o l s ) ; 	 / *   p o i n t   t o   c o n t r o l   a r r a y   * / 
 	 	 	 	 / *   c u r r e n t   i n p u t   f i l e   * / 
         c a l l _ b o x _ p t r   =   c a l l _ s t a c k . p t r   ( c a l l _ s t a c k . i n d e x ) ; 
 
         c a l l e r s _ n e s t   =   s h a r e d . i f _ n e s t . n d x ; 	 / *   i f   n e s t   l e v e l   a t   e n t r y   * / 
         t r i m _ f l a g ,   t e x t _ a d d e d   =   " 0 " b ; 	 / *   c l e a r   t h e   t e x t   f l a g   * / 
         a g a i n   =   " 1 " b ; 	 	 	 / *   s e t   f l a g   t o   p r o c e s s   c o n t r o l   l i n e   * / 
 
 c t l _ l o o p : 
         d o   w h i l e   ( a g a i n ) ; 	 	 / *   a s   l o n g   a s   t h e   f l a g   s t a y s   u p   * / 
             a g a i n   =   " 0 " b ; 	 	 	 / *   r e s e t   p r o c e s s   c o n t r o l   l i n e   f l a g   * / 
 
 ( n o s u b r g ) : 	 	 	 / *   i f   w e   a r e   i n d e n t i n g   * / 
             i f   s h a r e d . i n d c t l . s t k   ( s h a r e d . i n d c t l . n d x ) 
             t h e n 
 ( n o s t r g ) : 
 ( n o s t r z ) : 
                 c t l _ l i n e   =   l t r i m   ( c t l _ l i n e ) ; 
 
 / *   a c c e p t   o n l y   . b e l   a n d   . b e   i n   l i t e r a l   m o d e   * / 
             i f   s h a r e d . l i t e r a l _ m o d e   &   s h a r e d . l i t _ c o u n t   ^ =   0 
             t h e n 
                 d o ; 
 	 i f   c t l _ l i n e   =   " . b e l " 
 	 t h e n 
 	     d o ; 
 	         c a l l   c o m p _ b l o c k _ c t l s _   ( b e l _ c t l _ i n d e x ) ; 
 	         g o t o   e n d _ c t l _ l o o p ; 
 	     e n d ; 
 
 	 e l s e   i f   c t l _ l i n e   =   " . b e " 
 	 t h e n 
 	     d o ; 
 	         c a l l   c o m p _ b l o c k _ c t l s _   ( b e _ c t l _ i n d e x ) ; 
 	         g o t o   e n d _ c t l _ l o o p ; 
 	     e n d ; 
 
 	 e l s e 
 	     d o ; 
 	         t e x t _ a d d e d   =   " 1 " b ; 
 	         g o t o   r e t u r n _ ; 
 	     e n d ; 
                 e n d ; 
 
 / *   " . * " ,   " . ~ "   =   c o m m e n t   * / 
             i f   i n d e x   ( c t l _ l i n e ,   " . * " )   =   1   |   i n d e x   ( c t l _ l i n e ,   " . ~ " )   =   1 
             t h e n   g o t o   e n d _ c t l _ l o o p ; 
 
 / *   " . . "   =   s h o r t   f o r m   o f   " . i f i "   * / 
             i f   i n d e x   ( c t l _ l i n e ,   " . . " )   =   1 
             t h e n 
                 d o ; 
 	 c t l . i n d e x   =   3 ; 
 	 c a l l   c o m p _ i n s e r t _ c t l s _   ( i f i _ c t l _ i n d e x ) ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   e x t r a c t   c o n t r o l   t o k e n   * / 
             c t l _ t o k e n _ l e n   =   i n d e x   ( c t l _ l i n e ,   "   " )   -   2 ; 
             i f   c t l _ t o k e n _ l e n   <   0 	 	 / *   i f   n o   S P ,   t a k e   t h e   w h o l e   t h i n g   * / 
             t h e n   c t l _ t o k e n _ l e n   =   l e n g t h   ( c t l _ l i n e )   -   1 ; 
 
             i f   c t l _ t o k e n _ l e n   >   3 2 	 	 / *   c a n t   b e   m o r e   t h a n   3 2   c h a r s   * / 
             t h e n   g o t o   u n k _ c t l ; 	 	 / * * / 
 	 	 	 	 / *   a c c e p t   t h e   c o n t r o l   t o k e n   * / 
 ( n o s t r g ) : 
             c t l _ t o k e n   =   s u b s t r   ( c t l _ l i n e ,   2 ,   c t l _ t o k e n _ l e n ) ; 
             c t l . i n d e x   =   c t l _ t o k e n _ l e n   +   2 ; 	 / *   a n d   s t e p   o v e r   i t   * / 
 	 	 	 	 / *   s e t   s t a r t   o f   v a r i a b l e   f i e l d   * / 
             i f   c t l . i n d e x   <   l e n g t h   ( r t r i m   ( c t l _ l i n e ) ) 
             t h e n 
 ( n o s t r g ) : 
                 c t l . i n d e x   =   c t l . i n d e x   -   1   +   v e r i f y   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   "   " ) ; 
             e l s e   c t l . i n d e x   =   l e n g t h   ( c t l _ l i n e )   +   1 ; 
 	 	 	 	 / *   l o o k   f o r   t h e   c o n t r o l   * / 
             c t l _ i n d e x   =   i n d e x   ( c t l _ l i s t ,   c t l _ t o k e n ) ; 
 
             i f   c t l _ i n d e x   =   0 	 	 / *   i f   n o   c o n t r o l   w a s   f o u n d   * / 
             t h e n 
                 d o ; 
 u n k _ c t l : 
 	 t e x t _ a d d e d   =   " 1 " b ; 
 	 i f   s h a r e d . t a b l e _ m o d e 
 	 t h e n   i f   i n d e x   ( " 0 1 2 3 4 5 6 7 8 9 " ,   s u b s t r   ( c t l _ t o k e n ,   2 ,   1 ) )   ^ =   0 
 	           t h e n   g o t o   r e t u r n _ ; 
 
 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " U n k n o w n   c o n t r o l   r e q u e s t . " ,   a d d r   ( c t l . i n f o ) , 
 	           l t r i m   ( c t l _ l i n e ) ) ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   t r u e   i n d e x   * / 
             c t l _ i n d e x   =   d i v i d e   ( c t l _ i n d e x   +   6 3 ,   6 4 ,   1 7 ) ; 
 
             g o t o   c t l _   ( c t l _ i n d e x ) ; 	 	 / *   t r a n s f e r   t o   c o n t r o l   p r o c e s s o r   * / 
 
 / *   T E X T   A L I G N M E N T   C O N T R O L S   * / 
 c t l _   ( 1 ) : 	 	 	 	 / *   " . a l b "   =   a l i g n - b o t h   * / 
 c t l _   ( 2 ) : 	 	 	 	 / *   " . a l c "   =   a l i g n - c e n t e r   * / 
 c t l _   ( 3 ) : 	 	 	 	 / *   " . a l i "   =   a l i g n - i n s i d e   * / 
 c t l _   ( 4 ) : 	 	 	 	 / *   " . a l l "   =   a l i g n - l e f t   * / 
 c t l _   ( 5 ) : 	 	 	 	 / *   " . a l o "   =   a l i g n - o u t s i d e   * / 
 c t l _   ( 6 ) : 	 	 	 	 / *   " . a l r "   =   a l i g n - r i g h t   * / 
             c a l l   c o m p _ f o r m a t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   B E G I N - B L O C K   C O N T R O L S   * / 
 c t l _   ( 7 ) : 	 	 	 	 / *   " . b b "   =   b e g i n - b l o c k   O B S O E L T E   * / 
 c t l _   ( 8 ) : 	 	 	 	 / *   " . b a r t "   =   b e g i n - a r t w o r k   * / 
 c t l _   ( 9 ) : 	 	 	 	 / *   " . b b a "   =   b l o c k - b e g i n - a r t   O B S O L E T E   * / 
 c t l _   ( 1 0 ) : 	 	 	 / *   " . b b l k "   =   b e g i n - b l o c k   * / 
             c a l l   c o m p _ b l o c k _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 1 ) : 	 	 	 / *   " . b b c "   =   b l o c k - b e g i n - c o l u m n   O B S O L E T E   * / 
             c t l _ i n d e x   =   t a c _ c t l _ i n d e x ; 
             g o t o   t a c _ c t l ; 
 
 c t l _   ( 1 2 ) : 	 	 	 / *   " . b b e "   =   b l o c k - b e g i n - e q u a t i o n   O B S O L E T E   * / 
 c t l _   ( 1 3 ) : 	 	 	 / *   " . b b f "   =   b l o c k - b e g i n - f o o t n o t e   O B S O L E T E   * / 
 c t l _   ( 1 4 ) : 	 	 	 / *   " . b b i "   =   b l o c k - b e g i n - i n l i n e   O B S O L E T E   * / 
 c t l _   ( 1 5 ) : 	 	 	 / *   " . b b k "   =   b l o c k - b e g i n - k e e p   O B S O L E T E   * / 
 c t l _   ( 1 6 ) : 	 	 	 / *   " . b b l "   =   b l o c k - b e g i n - l i t e r a l   O B S O L E T E   * / 
 c t l _   ( 1 7 ) : 	 	 	 / *   " . b b n "   =   b l o c k - b e g i n - n a m e d   O B S O L E T E   * / 
 c t l _   ( 1 8 ) : 	 	 	 / *   " . b b p "   =   b l o c k - b e g i n - p i c t u r e   O B S O L E T E   * / 
 c t l _   ( 1 9 ) : 	 	 	 / *   " . b b t "   =   b l o c k - b e g i n - t i t l e   O B S O L E T E   * / 
             c a l l   c o m p _ b l o c k _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 2 0 ) : 	 	 	 / *   " . b c f "   =   b e g i n - c o l u m n - f o o t e r   * / 
 c t l _   ( 2 1 ) : 	 	 	 / *   " . b c h "   =   b e g i n - c o l u m n - h e a d e r   * / 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   B L O C K - E N D   C O N T R O L S   * / 
 c t l _   ( 2 2 ) : 	 	 	 / *   " . b e "   =   b l o c k - e n d   ( b e _ c t l _ i n d e x )   * / 
 c t l _   ( 2 3 ) : 	 	 	 / *   " . b e a "   =   b l o c k - e n d - a r t   * / 
             c a l l   c o m p _ b l o c k _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 2 4 ) : 	 	 	 / *   " . b e c "   =   b l o c k - e n d - c o l u m n   O B S O L E T E   * / 
             c t l _ i n d e x   =   t a c _ c t l _ i n d e x ; 
             g o t o   t a c _ c t l ; 
 
 c t l _   ( 2 5 ) : 	 	 	 / *   " . b e e "   =   b l o c k - e n d - e q u a t i o n   * / 
 c t l _   ( 2 6 ) : 	 	 	 / *   " . b e f "   =   b l o c k - e n d - f o o t n o t e   ( b e f _ c t l _ i n d e x )   * / 
 c t l _   ( 2 7 ) : 	 	 	 / *   " . b e k "   =   b l o c k - e n d - k e e p   * / 
 c t l _   ( 2 8 ) : 	 	 	 / *   " . b e l "   =   b l o c k - e n d - l i t e r a l   ( b e l _ c t l _ i n d e x )   * / 
 c t l _   ( 2 9 ) : 	 	 	 / *   " . b e n "   =   b l o c k - e n d - n a m e d   * / 
 c t l _   ( 3 0 ) : 	 	 	 / *   " . b e p "   =   b l o c k - e n d - p i c t u r e   ( b e p _ c t l _ i n d e x )   * / 
 c t l _   ( 3 1 ) : 	 	 	 / *   " . b e t "   =   b l o c k - e n d - t i t l e   * / 
             c a l l   c o m p _ b l o c k _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 3 2 ) : 	 	 	 / *   " . b p f "   =   b e g i n - p a g e - f o o t e r   * / 
 c t l _   ( 3 3 ) : 	 	 	 / *   " . b p h "   =   b e g i n - p a g e - h e a d e r   * / 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   B R E A K   C O N T R O L S   * / 
 c t l _   ( 3 4 ) : 	 	 	 / *   " . b r "   =   b r e a k   * / 
 c t l _   ( 3 5 ) : 	 	 	 / *   " . b r b "   =   b r e a k - b l o c k   * / 
 c t l _   ( 3 6 ) : 	 	 	 / *   " . b r c "   =   b r e a k - c o l u m n   * / 
 c t l _   ( 3 7 ) : 	 	 	 / *   " . b r f "   =   b r e a k - f o r m a t   * / 
 c t l _   ( 3 8 ) : 	 	 	 / *   " . b r n "   =   b r e a k - n e e d   * / 
 c t l _   ( 3 9 ) : 	 	 	 / *   " . b r p "   =   b r e a k - p a g e   * / 
 c t l _   ( 4 0 ) : 	 	 	 / *   " . b r s "   =   b r e a k - s k i p   * / 
             c a l l   c o m p _ b r e a k _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 4 1 ) : 	 	 	 / *   " . b r w "   =   b r e a k - w o r d   * / 
             i f   c t l . i n d e x   =   l e n g t h   ( c t l _ l i n e ) 	 / *   t a k e   a l l   s i n g l e   c h a r s   * / 
             t h e n   s h a r e d . w r d _ b r k r   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) ; 
 
             e l s e   i f   c t l . i n d e x   <   l e n g t h   ( c t l _ l i n e ) 
             t h e n 
                 d o ; 
 	 w r d _ b u f f e r   =   l t r i m   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   " ¿ " ) ; 
 
 	 i f   i n d e x   ( w r d _ b u f f e r ,   " * " )   =   1 / *   i s   i t   e s c a p e d ?   * / 
 	 t h e n 
 	     d o ; 
 	         c a l l   c o m p _ u t i l _ $ e s c a p e   ( w r d _ b u f f e r ,   a d d r   ( c t l . i n f o ) ) ; 
 	         w r d _ b u f f e r   =   l t r i m   ( w r d _ b u f f e r ,   " ¿ " ) ; 
 
 	         i f   l e n g t h   ( w r d _ b u f f e r )   =   1 
 	         t h e n   s h a r e d . w r d _ b r k r   =   w r d _ b u f f e r ; 
 
 	         e l s e 
 	             d o ; 
 	                 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ s y n t a x _ e r r o r , 
 	 	       a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	 	       " O n l y   a   s i n g l e   c h a r a c t e r   m a y   b e   g i v e n . " ) ; 
 	                 g o t o   e n d _ c t l _ l o o p ; 
 	             e n d ; 
 	     e n d ; 
 
 	 e l s e 
 	     d o ; 
 	         c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ s y n t a x _ e r r o r , 
 	                   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	                   " O n l y   a   s i n g l e   c h a r a c t e r   m a y   b e   g i v e n . " ) ; 
 	         g o t o   e n d _ c t l _ l o o p ; 
 	     e n d ; 
                 e n d ; 
 
             e l s e   s h a r e d . w r d _ b r k r   =   "   " ; 	 / *   d e f a u l t   i s   w o r d s p a c e   * / 
 
             i f   s h a r e d . b u g _ m o d e 
             t h e n   c a l l   i o a _ $ r s n n l   ( " w r d b r k r = ^ a " ,   e x i t _ s t r ,   0 , 
 	             c o m p _ u t i l _ $ d i s p l a y   ( ( s h a r e d . w r d _ b r k r ) ,   0 ,   " 0 " b ) ) ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 4 2 ) : 	 	 	 / *   " . b t c "   =   b e g i n - t e x t - c a p t i o n   * / 
 c t l _   ( 4 3 ) : 	 	 	 / *   " . b t t "   =   b e g i n - t e x t - t i t l e   * / 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   C H A N G E - B A R   C O N T R O L S   * / 
 c t l _   ( 4 4 ) : 	 	 	 / *   " . c b a "   =   c h a n g e - b a r - a d d i t i o n   * / 
             i f   ^ o p t i o n . c b a r _ o p t 	 	 / *   i f   c h a n g e   b a r s   a r e   n o t   a c t i v e   * / 
             t h e n   g o t o   e n d _ c t l _ l o o p ; 	 	 / *   f o r g e t   i t !   * / 
 	 	 	 	 / *   i f   a   c h a n g e   l e v e l   i s   g i v e n   * / 
             i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
             t h e n 
                 d o ; 	 	 	 / *   l e s s   t h a n   l e v e l   s e l e c t e d ?   * / 
 	 i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   <   o p t i o n . c b a r . l e v e l 
 	 t h e n   g o t o   e n d _ c t l _ l o o p ; 
 	 p a g e . h d r . p g c _ s e l e c t   = 
 	           b y t e   ( 
 	           m a x   ( 3 2 ,   r a n k   ( p a g e . h d r . p g c _ s e l e c t ) , 
 	           r a n k   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) ) ) ) ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   s e t   s h a r e d   f l a g s   * / 
             c u r r e n t _ p a r m s . c b a r . a d d   =   " 1 " b ; 
             i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   a n d   a c t i v e   f l a g   * / 
             t h e n   t e x t . p a r m s . c b a r . a d d ,   t e x t . i n p u t . c b a r . a d d   =   " 1 " b ; 
             s h a r e d . c b a r _ t y p e   =   " a d d " ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 4 5 ) : 	 	 	 / *   " . c b d "   =   c h a n g e - b a r - d e l e t e   * / 
             i f   ^ o p t i o n . c b a r _ o p t 	 	 / *   i f   c h a n g e   b a r s   a r e   n o t   a c t i v e   * / 
             t h e n   g o t o   e n d _ c t l _ l o o p ; 	 	 / *   f o r g e t   i t !   * / 
 	 	 	 	 / *   i f   a   c h a n g e   l e v e l   i s   g i v e n   * / 
             i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
             t h e n 
                 d o ; 	 	 	 / *   l e s s   t h a n   l e v e l   s e l e c t e d ?   * / 
 	 i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   <   o p t i o n . c b a r . l e v e l 
 	 t h e n   g o t o   e n d _ c t l _ l o o p ; 
 	 p a g e . h d r . p g c _ s e l e c t   = 
 	           b y t e   ( 
 	           m a x   ( 3 2 ,   r a n k   ( p a g e . h d r . p g c _ s e l e c t ) , 
 	           r a n k   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) ) ) ) ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   s e t   s h a r e d   f l a g s   * / 
             c u r r e n t _ p a r m s . c b a r . d e l   =   " 1 " b ; 
             i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   a n d   a c t i v e   f l a g s   * / 
             t h e n   t e x t . p a r m s . c b a r . d e l ,   t e x t . i n p u t . c b a r . d e l   =   " 1 " b ; 
 
             s h a r e d . c b a r _ t y p e   =   " d e l " ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 4 6 ) : 	 	 	 / *   " . c b f "   =   c h a n g e - b a r s - o f f   * / 
             i f   ^ o p t i o n . c b a r _ o p t 	 	 / *   i f   c h a n g e   b a r s   a r e   n o t   a c t i v e   * / 
             t h e n   g o t o   e n d _ c t l _ l o o p ; 	 	 / *   f o r g e t   i t !   * / 
 
             i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e )   / *   i f   a   c h a n g e   l e v e l   i s   g i v e n   * / 
             t h e n   i f 
 / * * * *   o p t i o n . c b a r . l e v e l   =   " "   | 	 / *   a n d   a l l   l e v e l s   w e r e   s e l e c t e d   * / 
 	 	 	 	 / *   o r   i t s   l e s s   t h a n   t h e   a c t i v e   l e v e l   * / 
 	             s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   <   o p t i o n . c b a r . l e v e l 
 	   t h e n   g o t o   e n d _ c t l _ l o o p ; 	 / * * / 
 	 	 	 	 / *   r e s e t   s h a r e d   f l a g s   * / 
             c u r r e n t _ p a r m s . c b a r . a d d ,   c u r r e n t _ p a r m s . c b a r . m o d   =   " 0 " b ; 
             i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   a n d   t h e   a c t i v e   f l a g s   * / 
             t h e n   t e x t . p a r m s . c b a r . a d d ,   t e x t . p a r m s . c b a r . m o d   =   " 0 " b ; 
 
             s h a r e d . c b a r _ t y p e   =   " " ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 4 7 ) : 	 	 	 / *   " . c b m "   =   c h a n g e - b a r s - m o d i f i e d   * / 
 c t l _   ( 4 8 ) : 	 	 	 / *   " . c b n "   =   c h a n g e - b a r s - o n   * / 
             i f   ^ o p t i o n . c b a r _ o p t 	 	 / *   i f   c h a n g e   b a r s   a r e   n o t   a c t i v e   * / 
             t h e n   g o t o   e n d _ c t l _ l o o p ; 	 	 / *   f o r g e t   i t !   * / 
 
             i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e )   / *   i f   a   c h a n g e   l e v e l   i s   g i v e n   * / 
             t h e n 
                 d o ; 	 	 	 / *   l e s s   t h a n   t h e   a c t i v e   l e v e l ?   * / 
 	 i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   <   o p t i o n . c b a r . l e v e l 
 	 t h e n   g o t o   e n d _ c t l _ l o o p ; 
 
 	 p a g e . h d r . p g c _ s e l e c t   = 
 	           b y t e   ( 
 	           m a x   ( 3 2 ,   r a n k   ( p a g e . h d r . p g c _ s e l e c t ) , 
 	           r a n k   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) ) ) ) ; 
                 e n d ; 
 
             c u r r e n t _ p a r m s . c b a r . m o d   =   " 1 " b ; 	 / *   s e t   s h a r e d   f l a g   * / 
             i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   s e t   a c t i v e   f l a g s   * / 
             t h e n   t e x t . p a r m s . c b a r . m o d ,   t e x t . i n p u t . c b a r . m o d   =   " 1 " b ; 
 
             i f   s h a r e d . t a b l e _ m o d e 	 	 / *   s e t   t a b l e   f l a g   * / 
             t h e n   t b l d a t a . p t r   ( t b l d a t a . n d x )   - >   t b l c o l . p a r m s . c b a r . m o d   =   " 1 " b ; 
             s h a r e d . c b a r _ t y p e   =   " m o d " ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 4 9 ) : 	 	 	 / *   " . c f l "   =   c o l u m n - f o o t e r - l i n e   * / 
 c t l _   ( 5 0 ) : 	 	 	 / *   " . c h l "   =   c o l u m n - h e a d e r - l i n e   * / 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 5 1 ) : 	 	 	 / *   " . c s d "   =   c h a n g e - s y m b o l - d e l i m i t e r   * / 
             i f   c t l . i n d e x   =   8 
             t h e n   s h a r e d . s y m _ d e l i m   =   " % " ; 
             e l s e   s h a r e d . s y m _ d e l i m   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 5 2 ) : 	 	 	 / *   " . c t d "   =   c h a n g e - t i t l e - d e l i m i t e r   * / 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
             t h e n   s h a r e d . t t l _ d e l i m   =   " | " ; 
             e l s e   s h a r e d . t t l _ d e l i m   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 5 3 ) : 	 	 	 / *   " . d f u "   =   d e f e r - u n t i l   * / 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
             t h e n   g o t o   e n d _ c t l _ l o o p ; 	 	 / *   i f   n o t h i n g   g i v e n   * / 
 
             c o n d _ n a m e   = 
 	   c o m p _ r e a d _ $ n a m e   ( c t l _ l i n e ,   c t l . i n d e x ,   c t l . i n d e x ,   a d d r   ( c t l . i n f o ) ) ; 
 
             d o   i   =   1   t o   h b o u n d   ( c o n d _ n a m e s ,   1 )   w h i l e   ( c o n d _ n a m e   ^ =   c o n d _ n a m e s   ( i ) ) ; 
             e n d ; 
 
             i f   i   >   h b o u n d   ( c o n d _ n a m e s ,   1 ) 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   0 ,   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	           " U n k n o w n   c o n d i t i o n   ^ a " ,   c o n d _ n a m e ) ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 
 
             c t l _ l i n e   =   l t r i m   ( a f t e r   ( c t l _ l i n e ,   c o n d _ n a m e ) ) ; 
 
             i f   s h a r e d . b l k p t r   =   n u l l 
             t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " t x " , 
 	             a d d r   ( c u r r e n t _ p a r m s ) ,   " 0 " b ) ; 
 
             c t l . l i n e s p a c e   =   0 ; 	 	 / *   n o   l e a d   f o r   s p e c i a l   l i n e s   * / 
             c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . b l k p t r ,   " 0 " b ,   " 0 " b ,   " 0 " b ,   " 0 " b , 
 	   a d d r   ( c t l ) ) ; 
 
             l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . c u r ; 
             t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( l i n e _ a r e a . n d x ) ; 
             t x t l i n . b l k _ s p l t   =   " 1 " b ; 
             c t l . l i n e s p a c e   =   t e x t . p a r m s . l i n e s p a c e ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 5 4 ) : 	 	 	 / *   " . d m p "   =   d u m p   -   N O T   I M P L E M E N T E D   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 5 5 ) : 	 	 	 / *   " . d o "   =   d o   -   N O T   I M P L E M E N T E D   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 5 6 ) : 	 	 	 / *   " . d v c "   =   d e v i c e - c o m m a n d   -   N O T   I M P L E M E N T E D   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 5 7 ) : 	 	 	 / *   " . e a r t "   =   e n d - a r t w o r k   -   N O T   I M P L E M E N T E D   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 5 8 ) : 	 	 	 / *   " . e c f "   =   e n d - c o l u m n - f o o t e r   * / 
 c t l _   ( 5 9 ) : 	 	 	 / *   " . e c h "   =   e n d - c o l u m n - h e a d e r   * / 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 6 0 ) : 	 	 	 / *   " . e l s e "   =   c o n d i t i o n a l - e l s e   * / 
             i f   s h a r e d . i f _ n e s t . n d x   =   0 	 / *   i f   n o   a c t i v e   n e s t   * / 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ u s a g e _ e r r o r , 
 	           a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	           " N o t   i n   a n   a c t i v e   c o n d i t i o n a l   e x e c u t i o n   g r o u p . " ) ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 
 
             f o u n d _ c l a u s e   =   " 1 " b ; 	 	 / * * / 
 	 	 	 	 / *   e x e c u t e   t h e   e l s e ?   * / 
             i f   s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . s w   =   E L S E 
             t h e n 
                 d o ; 
 	 i f   s h a r e d . i n d c t l . s t k   ( s h a r e d . i n d c t l . n d x ) 
 	 t h e n   c t l _ l i n e   =   l t r i m   ( a f t e r   ( c t l _ l i n e ,   " . e l s e   " ) ) ; 
 	 e l s e   c t l _ l i n e   =   a f t e r   ( c t l _ l i n e ,   " . e l s e   " ) ; 
 
 	 i f   i n d e x   ( c t l _ l i n e ,   " . " )   =   1 
 	 t h e n   a g a i n   =   " 1 " b ; 
 	 e l s e   i f   c t l _ l i n e   ^ =   " " 
 	 t h e n   t e x t _ a d d e d   =   " 1 " b ; 
                 e n d ; 
 
             e l s e 	 	 	 / *   n o   -   s e a r c h   f o r   i f / e n d i f   * / 
                 d o ; 	 	 	 / *   u n t i l   f o u n d   o r   e n d _ i n p u t   * / 
 	 t h i s _ n e s t   =   s h a r e d . i f _ n e s t . n d x ; 
 
 	 c t l _ l i n e   =   a f t e r   ( c t l _ l i n e ,   " e l s e   " ) ; 
 	 g o t o   c h e c k _ i f ; 
 
 	 d o   w h i l e   ( ^ s h a r e d . e n d _ i n p u t ) ;   / *   r e a d   n e x t   l i n e   * / 
 	     c a l l   c o m p _ r e a d _ $ l i n e   ( c a l l _ b o x _ p t r ,   c t l _ l i n e ,   " 1 " b ) ; 
 	     c t l . i n f o   =   c a l l _ b o x . i n f o ; 
 
 c h e c k _ i f : 
 	     i f   i n d e x   ( l t r i m   ( c t l _ l i n e ) ,   " . i f   " )   =   1 
 	     t h e n 
 	         d o ; 
 	             s h a r e d . i f _ n e s t . n d x   =   s h a r e d . i f _ n e s t . n d x   +   1 ; 
 	             s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . i n f o   =   c t l . i n f o ; 
 	             s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . l i n e   =   c t l _ l i n e ; 
 	             s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . s w   =   0 ; 
 
 / * 	             a g a i n   =   " 1 " b ;   
 / * 
 / * 	             i f   s h a r e d . b u g _ m o d e 
 / * 	             t h e n   c a l l 
 / * 	 	       i o a _   ( " ^ 5 x i f n e s t = ^ d   ( ^ d   " " ^ a " " ) " ,   s h a r e d . i f _ n e s t . n d x , 
 / * 	 	       c t l . l i n e n o ,   c t l _ l i n e ) ; 
 / * 
 / * 	             c a l l   c o m p _ c t l s _   ( " 0 " b ) ;   * / 
 	         e n d ; 
 
 	     e l s e   i f   i n d e x   ( l t r i m   ( c t l _ l i n e ) ,   " . e n d i f " )   =   1 
 	     t h e n 
 	         d o ; 
 	             i f   s h a r e d . b u g _ m o d e 
 	             t h e n   c a l l   i o a _   ( " ^ 5 x i f n e s t = ^ d   ( ^ d   " " ^ a " " ) " ,   s h a r e d . i f _ n e s t . n d x , 
 	 	             c t l . l i n e n o ,   c t l _ l i n e ) ; 
 
 	             i f   s h a r e d . i f _ n e s t . n d x   >   t h i s _ n e s t 
 	             t h e n   s h a r e d . i f _ n e s t . n d x   =   s h a r e d . i f _ n e s t . n d x   -   1 ; 
 
 	             e l s e 
 	                 d o ; 
 	 	 a g a i n   =   " 1 " b ; 	 / *   s e t   t h e   c o n t r o l   f l a g   * / 
 	 	 g o t o   e n d _ c t l _ l o o p ; 
 	                 e n d ; 
 	         e n d ; 
 	 e n d ; 
                 e n d ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 6 1 ) : 	 	 	 / *   " . e l s e i f "   -   c o n d i t i o n a l - e l s e i f   * / 
             i f   s h a r e d . i f _ n e s t . n d x   =   0 	 / *   i f   n o   a c t i v e   n e s t   * / 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ u s a g e _ e r r o r , 
 	           a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	           " N o t   i n   a n   a c t i v e   c o n d i t i o n a l   e x e c u t i o n   g r o u p . " ) ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   e x e c u t e   t h e   e l s e ?   * / 
             i f   s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . s w   =   E L S E 
             t h e n 
                 d o ; 	 	 	 / *   f o o l   t h e   n e s t   c o u n t e r   * / 
 	 s h a r e d . i f _ n e s t . n d x   =   s h a r e d . i f _ n e s t . n d x   -   1 ; 
 	 g o t o   i f _ c t l ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   s e a r c h   f o r   e l s e i f ,   e l s e ,   o r   e n d i f   * / 
             e l s e 	 	 	 / *   u n t i l   f o u n d   o r   e n d _ i n p u t   * / 
                 d o   w h i l e   ( ^ s h a r e d . e n d _ i n p u t ) ; 	 / *   r e a d   n e x t   l i n e   * / 
 	 c a l l   c o m p _ r e a d _ $ l i n e   ( c a l l _ b o x _ p t r ,   c t l _ l i n e ,   " 1 " b ) ; 
 	 c t l . i n f o   =   c a l l _ b o x . i n f o ; 	 / * * / 
 	 	 	 	 / *   i f   a   n e s t e d   . i f   * / 
 	 i f   i n d e x   ( l t r i m   ( c t l _ l i n e ) ,   " . i f   " )   =   1 
 	 t h e n 
 	     d o ; 	 	 	 / *   c o u n t   t h e   n e s t   * / 
 	         s h a r e d . i f _ n e s t . n d x   =   s h a r e d . i f _ n e s t . n d x   +   1 ; 
 
 / * 	         s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . i n f o   =   c t l . i n f o ; 
 / * 	         s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . l i n e   =   c t l _ l i n e ; 
 / * 	         s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . s w   =   0 ;   * / 
 
 	         i f   s h a r e d . b u g _ m o d e 
 	         t h e n   c a l l   i o a _   ( " ^ 5 x i f n e s t = ^ d   ( ^ d   " " ^ a " " ) " ,   s h a r e d . i f _ n e s t . n d x , 
 	 	         c t l . l i n e n o ,   c t l _ l i n e ) ; 
 	     e n d ; 
 
 	 e l s e   i f   i n d e x   ( l t r i m   ( c t l _ l i n e ) ,   " . e l s e " )   =   1 
 	 t h e n 
 	     d o ; 
 	         i f   s h a r e d . b u g _ m o d e 
 	         t h e n   c a l l   i o a _   ( " ^ 5 x i f n e s t = ^ d   ( ^ d   " " ^ a " " ) " ,   s h a r e d . i f _ n e s t . n d x , 
 	 	         c t l . l i n e n o ,   c t l _ l i n e ) ; 
 
 	         a g a i n   =   " 1 " b ; 	 	 / *   s e t   t h e   c o n t r o l   f l a g   * / 
 	         g o t o   e n d _ c t l _ l o o p ; 
 	     e n d ; 
 
 	 i f   i n d e x   ( l t r i m   ( c t l _ l i n e ) ,   " . e n d i f " )   =   1 
 	 t h e n   g o t o   e n d i f _ c t l ; 
 
                 e n d ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 6 2 ) : 	 	 	 / *   " . e n d d o "   =   e n d - d o   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 6 3 ) : 	 	 	 / *   " . e n d i f "   =   c o n d i t i o n a l - e n d   * / 
 e n d i f _ c t l : 
             i f   s h a r e d . i f _ n e s t . n d x   =   0 	 / *   i f   n o   a c t i v e   n e s t   * / 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ u s a g e _ e r r o r , 
 	           a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	           " N o t   i n   a n   a c t i v e   c o n d i t i o n a l   e x e c u t i o n   g r o u p . " ) ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 
 
             i f   ^ f o u n d _ c l a u s e 	 	 / *   i f   n o   c l a u s e   f o u n d   * / 
             t h e n   c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ u s a g e _ e r r o r , 
 	             a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	             " N o   e x e c u t a b l e   c l a u s e   f o r   a   c o n d i t i o n a l   e x e c u t i o n   g r o u p . " ) ; 
 
             s h a r e d . i f _ n e s t . n d x   =   s h a r e d . i f _ n e s t . n d x   -   1 ; 
 
             i f   s h a r e d . b u g _ m o d e 
             t h e n 
                 d o ; 
 	 c a l l   i o a _ $ r s n n l   ( " i f n e s t = ^ d " ,   e x i t _ s t r ,   0 ,   s h a r e d . i f _ n e s t . n d x ) ; 
 	 i f   s h a r e d . i f _ n e s t . n d x   >   0 
 	 t h e n   c a l l   i o a _ $ r s n n l   ( " ^ a   i f _ s w = ^ d " ,   e x i t _ s t r ,   0 ,   e x i t _ s t r , 
 	 	 s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . s w ) ; 
                 e n d ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 6 4 ) : 	 	 	 / *   " . e p f "   =   e n d - p a g e - f o o t e r   * / 
 c t l _   ( 6 5 ) : 	 	 	 / *   " . e p h "   =   e n d - p a g e - h e a d e r   * / 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 6 6 ) : 	 	 	 / *   " . e q c "   =   e q u a t i o n - c o u n t   * / 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 	 / *   i f   n o   v a l u e ,   t h e n   s t e p   c o u n t e r   * / 
             t h e n   s h a r e d . e q n _ r e f c t   =   s h a r e d . e q n _ r e f c t   +   1 ; 
             e l s e   s h a r e d . e q n _ r e f c t   = 
 	             c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   u n s c a l e d ,   c t l . i n d e x ,   c t l . i n d e x , 
 	             a d d r   ( c t l . i n f o ) ,   0 ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 6 7 ) : 	 	 	 / *   " . e r r "   =   e r r o r   * / 
             c a l l   c o m p _ r e p o r t _ $ e x a c t   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   a d d r   ( c t l . i n f o ) ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 6 8 ) : 	 	 	 / *   " . e t c "   =   e n d - t e x t - c a p t i o n   * / 
 c t l _   ( 6 9 ) : 	 	 	 / *   " . e t t "   =   e n d - t e x t - t i t l e   * / 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 7 0 ) : 	 	 	 / *   " . e x c "   =   e x e c u t e - c o m m a n d   * / 
             i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
             t h e n 
                 d o ; 
 	 c o m m a n d _ l i n e   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ; 
 	 c a l l   c u _ $ c p   ( a d d r   ( c o m m a n d _ l i n e ) ,   l e n g t h   ( c t l _ l i n e )   -   c t l . i n d e x   +   1 , 
 	           e r c d ) ; 
                 e n d ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   F O O T E R - B L O C K   C O N T R O L S   * / 
 c t l _   ( 7 1 ) : 	 	 	 / *   " . f b "   =   f o o t e r - b l o c k   * / 
 c t l _   ( 7 2 ) : 	 	 	 / *   " . f b b "   =   f o o t e r - b l o c k - b e g i n   * / 
 c t l _   ( 7 3 ) : 	 	 	 / *   " . f b e "   =   f o o t e r - b l o c k - e n d   * / 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   F I L L   M O D E   C O N T R O L S   * / 
 c t l _   ( 7 4 ) : 	 	 	 / *   " . f i "   =   f i l l   D E F A U L T   * / 
 c t l _   ( 7 5 ) : 	 	 	 / *   " . f i f "   =   f i l l - o f f   * / 
 c t l _   ( 7 6 ) : 	 	 	 / *   " . f i n "   =   f i l l - o n   ( f i n _ c t l _ i n d e x )   * / 
             c a l l   c o m p _ f o r m a t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   F O O T E R - L I N E   C O N T R O L S   * / 
 c t l _   ( 7 7 ) : 	 	 	 / *   " . f l "   =   f o o t e r - l i n e   * / 
 c t l _   ( 7 8 ) : 	 	 	 / *   " . f l a "   =   f o o t e r - l i n e - a l l   * / 
 c t l _   ( 7 9 ) : 	 	 	 / *   " . f l e "   =   f o o t e r - l i n e - e v e n   * / 
 c t l _   ( 8 0 ) : 	 	 	 / *   " . f l o "   =   f o o t e r - l i n e - o d d   * / 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 8 1 ) : 	 	 	 / *   " . f n t "   =   f o n t   * / 
             i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x )   =   " - r s " 
 	   |   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x )   =   " - r e s e t " 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ f o n t _   ( " 1 " b ,   " " ,   " " ) ; 
 	 c t l _ l i n e   =   " " ; 
                 e n d ; 
 
             e l s e 
                 d o ; 
 	 c a l l   c o m p _ f o n t _   ( " 0 " b ,   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   f c s _ s t r ) ; 
 	 c t l _ l i n e   =   f c s _ s t r ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i f   c h a n g i n g   i n   m i d - s t r e a m   * / 
             i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
             t h e n   i f   c t l _ l i n e   ^ =   " "   &   t e x t . i n p u t _ l i n e   ^ =   " " 
 	   t h e n   t e x t _ a d d e d ,   c t l . f n t _ c h n g   =   " 1 " b ; 
 	   e l s e   c t l . f o n t   =   t e x t . p a r m s . f n t s t k . e n t r y   ( t e x t . p a r m s . f n t s t k . i n d e x ) ; 
             e l s e   c t l . f o n t   =   c u r r e n t _ p a r m s . f n t s t k . e n t r y   ( c u r r e n t _ p a r m s . f n t s t k . i n d e x ) ; 
 
             c t l . c u r . f o n t   =   c u r r e n t _ p a r m s . f n t s t k . e n t r y   ( c u r r e n t _ p a r m s . f n t s t k . i n d e x ) ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 8 2 ) : 	 	 	 / *   " . f r f "   =   f o o t n o t e - r e f e r e n c e   * / 
 	 	 	 	 / *   w h i c h   n o t e ?   * / 
             i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
             t h e n   i   =   c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   u n s c a l e d ,   c t l . i n d e x ,   c t l . i n d e x , 
 	             a d d r   ( c t l . i n f o ) ,   0 ) ; 
             e l s e   i   =   1 ; 
 
             i f   s h a r e d . f t n r e f c t   -   i   < =   0 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " R e f e r e n c e d   f o o t n o t e   d o e s   n o t   e x i s t . " , 
 	           a d d r   ( c t l . i n f o ) ,   l t r i m   ( c t l _ l i n e ) ) ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 
 
             f o o t r e f _ a r r a y   ( 2 )   =   l t r i m   ( c h a r   ( s h a r e d . f t n r e f c t   -   i ) ) ; 
             c a l l   c o m p _ d v t . f o o t p r o c   ( f o o t r e f _ a r r a y ,   a d d r   ( c o m p _ d v t ) ) ; 
 
             f o o t r e f s t r   =   f o o t r e f _ a r r a y   ( 1 )   | |   f o o t r e f _ a r r a y   ( 2 )   | |   f o o t r e f _ a r r a y   ( 3 ) ; 
 
             i f   t e x t . p a r m s . f i l l _ m o d e 	 	 / *   i n s e r t   r e f e r e n c e   i n t o   f i l l e d   t e x t   * / 
             t h e n 
                 d o ; 
 	 c t l _ l i n e   =   " " ; 
 	 c a l l   a p p e n d _ f o o t r e f   ( a d d r   ( c t l ) ) ; 
 
 	 c a l l   c o m p _ f i l l _ ; 	 	 / *   t o   b e   s u r e   i t   f i t s   * / 
 	 i f   s h a r e d . f t n _ r e s e t   ^ =   " h o l d " 
 	 t h e n 
 	     d o ; 
 	         t e x t . i n p u t . f t n . c t   =   t e x t . i n p u t . f t n . c t   +   1 ; 
 	         t e x t . i n p u t . f t n . r e f n o   ( t e x t . i n p u t . f t n . c t )   =   s h a r e d . f t n r e f c t   -   i ; 
 	     e n d ; 
                 e n d ; 
 
             e l s e 	 	 	 / *   a p p e n d   r e f e r e n c e   t o   e n d   o f   * / 
                 d o ; 	 	 	 / *   l a s t   u n f i l l e d   o u t p u t   l i n e   * / 
 	 l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . c u r ; 
 	 t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( l i n e _ a r e a . n d x ) ; 
 
 / * 	 i f   s h a r e d . t a b l e _ m o d e 	 / *   b a c k   u p   t o   l a s t   * / 
 / * 	 t h e n 	 	 	 / *   l i n e   f o r   t h i s   t a b l e   c o l u m n   * / 
 / * 	     d o ; 
 / * 	         t b l f m t p t r   =   t b l d a t a . f m t   ( t b l d a t a . n d x ) . p t r ; 
 / * 	         d o   j   =   t e x t . h d r . c o u n t   t o   1   b y   - 1 
 / * 	                   w h i l e   ( t e x t . l i n p t r   ( j )   - >   t x t l i n . t b l c o l   ^ =   t b l f m t . c c o l ) ; 
 / * 	         e n d ; 
 / * 	     e n d ; * / 
 
 	 c a l l   a p p e n d _ f o o t r e f   ( t x t l i n p t r ) ; 
 	 c a l l   c o m p _ u t i l _ $ r e p l a c e _ t e x t   ( s h a r e d . b l k p t r ,   " 0 " b ,   t x t l i n p t r , 
 	           a d d r   ( c t l _ l i n e ) ) ; 	 / * * / 
 	 	 	 	 / *   i f   n o t e s   a r e n t   h e l d   * / 
 	 i f   s h a r e d . f t n _ r e s e t   ^ =   " h o l d " 
 	 t h e n 
 	     d o ; 
 	         t x t l i n . f t n . c t   =   t x t l i n . f t n . c t   +   1 ; 
 	         t x t l i n . f t n . r e f n o   ( t x t l i n . f t n . c t )   =   s h a r e d . f t n r e f c t   -   i ; 
 	     e n d ; 
 	 t e x t . h d r . f t n . c t   =   t e x t . h d r . f t n . c t   +   1 ; 
 	 c o l . h d r . f t n . c t   =   c o l . h d r . f t n . c t   +   1 ; 
                 e n d ; 
 
 a p p e n d _ f o o t r e f : 	 	 	 / *   a p p e n d   f o o t r e f   s t r i n g   o n t o   t e x t   * / 
     p r o c   ( r e f l i n e p t r ) ; 
 
         d c l   r e f l i n e p t r 	       p t r ; 	 	 / *   l i n e   t o   b e   a p p e n d e d   * / 
         d c l   1   r e f l i n e 	       a l i g n e d   l i k e   t e x t _ e n t r y   b a s e d   ( r e f l i n e p t r ) ; 
 
         t x t s t r p t r   =   r e f l i n e . p t r ; 
 
         i f   r e f l i n e . s w s . f o o t r e f 	 	 / *   d o e s   l i n e   a l r e a d y   h a v e   a   f o o t r e f ?   * / 
         t h e n 
             d o ; 
                 c t l _ l i n e   = 	 	 	 / *   t r i m   F C S   a n d   s u f f i x   * / 
 	       s u b s t r   ( t x t s t r ,   1 , 
 	       l e n g t h   ( t x t s t r )   -   8   -   l e n g t h   ( f o o t r e f _ a r r a y   ( 3 ) ) ) ; 
                 c t l _ l i n e   = 	 	 	 / *   a d d   s e p ,   r e f ,   s u f f i x ,   a n d   F C S   * / 
 	       c t l _ l i n e   | |   r e f l i n e . c u r . f o n t . f n t p t r   - >   f o n t . f o o t s e p 
 	       | |   f o o t r e f _ a r r a y   ( 2 )   | |   f o o t r e f _ a r r a y   ( 3 ) 
 	       | |   r e f l i n e . c u r . f o n t . f c s _ s t r ; 
             e n d ; 
 
         e l s e 	 	 	 	 / *   n o ,   a d d   t h e   w h o l e   r e f   s t r i n g   * / 
             d o ; 	 	 	 	 / *   b e   s u r e   f o o t r e f   i s   i n   r i g h t   f o n t   * / 
                 f o o t r e f s t r   = 
 	       f o o t n o t e _ p a r m s . f n t s t k . e n t r y   ( f o o t n o t e _ p a r m s . f n t s t k . i n d e x ) . f c s _ s t r 
 	       | |   f o o t r e f s t r ; 
                 c t l _ l i n e   =   t x t s t r   | |   f o o t r e f s t r   | |   r e f l i n e . c u r . f o n t . f c s _ s t r ; 
             e n d ; 
 
         r e f l i n e . s w s . f o o t r e f   =   " 1 " b ; 	 / *   s e t   f o o t r e f   f l a g   * / 
 
     e n d   a p p e n d _ f o o t r e f ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 8 3 ) : 	 	 	 / *   " . f t h "   =   f o o t n o t e - h o l d   * / 
             s h a r e d . s u p p r e s s _ f o o t r e f   =   " 0 " b ; 
             s h a r e d . f t n _ r e s e t   =   " h o l d " ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 8 4 ) : 	 	 	 / *   " . f t p "   =   f o o t n o t e - p a g e d   * / 
             s h a r e d . s u p p r e s s _ f o o t r e f   =   " 0 " b ; 
             s h a r e d . f t n _ r e s e t   =   " p a g e d " ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 8 5 ) : 	 	 	 / *   " . f t r "   =   f o o t n o t e - r u n n i n g   * / 
             s h a r e d . s u p p r e s s _ f o o t r e f   =   " 0 " b ; 
             s h a r e d . f t n _ r e s e t   =   " r u n n i n g " ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 8 6 ) : 	 	 	 / *   " . f t u "   =   f o o t n o t e - u n r e f e r e n c e d   * / 
             s h a r e d . s u p p r e s s _ f o o t r e f   =   " 1 " b ; 	 / *   s e t   f o o t n o t e   r e f   s u p p r e s s   f l a g   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 8 7 ) : 	 	 	 / *   " . g a l l e y "   =   g a l l e y - m o d e   * / 
 c t l _   ( 8 8 ) : 	 	 	 / *   " . g l "   =   g a l l e y - m o d e   * / 
             i f   c t l . f i l e n o   +   c t l . l i n e n o   ^ =   1 
             t h e n   c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   0 ,   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	             " g a l l e y   c o n t r o l   m u s t   b e   f i r s t ,   i t   w i l l   b e   i g n o r e d . " ) ; 
 
             e l s e   o p t i o n . g a l l e y _ o p t   =   " 1 " b ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 8 9 ) : 	 	 	 / *   " . g o "   =   g o t o   * / 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " N o   t a r g e t   l a b e l   g i v e n . " ,   a d d r   ( c t l . i n f o ) , 
 	           l t r i m   ( c t l _ l i n e ) ) ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 
 
             s e a r c h _ l a b e l   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ; 
 
             i f   i n s e r t . l a b e l . c o u n t   >   0 	 / *   s e e   i f   w e ' v e   b e e n   h e r e   a l r e a d y   * / 
             t h e n 
                 d o ; 
 	 i   =   i n d e x   ( 
 	           s u b s t r   ( a d d r   ( i n s e r t . l a b e l . v a l u e   ( 1 ) )   - >   l a b e l _ v a l u e _ s t r ,   1 , 
 	           3 2   *   i n s e r t . l a b e l . c o u n t ) ,   s e a r c h _ l a b e l ) ; 
 
 	 i f   i   >   0 
 	 t h e n 
 	     d o ; 
 	         i   =   d i v i d e   ( i ,   3 2 ,   1 7 )   +   1 ; 
 	         c a l l _ b o x . l i n e n o   =   i n s e r t . l a b e l . l i n e   ( i ) ; 
 	         c a l l _ b o x . p o s n   =   i n s e r t . l a b e l . p o s i t i o n   ( i ) ; 
 	         i f   s h a r e d . b u g _ m o d e 
 	         t h e n   c a l l   i o a _   ( " ^ 5 x ( l a b e l :   l i n e = ^ d   ^ d   ^ a ) " ,   c t l . i n f o . f i l e n o , 
 	 	         c a l l _ b o x . l i n e n o ,   r t r i m   ( s e a r c h _ l a b e l ) ) ; 
 	         g o t o   e n d _ c t l _ l o o p ; 
 	     e n d ; 
                 e n d ; 
 
             s a v e _ l i n e   =   c t l _ l i n e ; 	 	 / *   s a v e   c t l   l i n e   s t u f f   * / 
             s a v e _ i n f o   =   c t l . i n f o ; 
             s a v e _ p o s n   =   i n s e r t . p o s n ; 	 / *   s a v e   . g o   p o s i t i o n   * / 
             e n d _ f l a g   =   " 0 " b ; 	 	 / *   c l e a r   s t a t i c   f l a g   * / 
 
             d o   w h i l e   ( ^ s h a r e d . e n d _ i n p u t ) ; 	 / *   u n t i l   f o u n d   o r   e n d _ i n p u t   * / 
 	 	 	 	 / *   r e a d   n e x t   l i n e   * / 
                 c a l l   c o m p _ r e a d _ $ l i n e   ( c a l l _ b o x _ p t r ,   c t l _ l i n e ,   " 1 " b ) ; 
                 c t l . i n f o   =   c a l l _ b o x . i n f o ; 
 
                 i f   ^ s h a r e d . e n d _ i n p u t 
                 t h e n 
 	 d o ; 	 	 	 / * * / 
 	 	 	 	 / *   a   l a b e l   c o n t r o l ?   * / 
 	     i f   i n d e x   ( l t r i m   ( c t l _ l i n e ) ,   " . l a " )   =   1 
 	     t h e n 
 	         d o ; 	 	 	 / *   p r e s e t   s c a n   i n d e x   t o   1 s t   n o n b l a n k   * / 
 	             c t l . i n d e x   =   v e r i f y   ( c t l _ l i n e ,   "   " ) ; 
 	 	 	 	 / *   s e t   s c a n   i n d e x   * / 
 	             i f   l e n g t h   ( c t l _ l i n e )   >   c t l . i n d e x   +   3 
 	             t h e n   c t l . i n d e x   = 
 	 	             c t l . i n d e x 
 	 	             +   i n d e x   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   "   " ) ; 
 	             e l s e   c t l . i n d e x   =   l e n g t h   ( c t l _ l i n e )   +   1 ; 
 
 	             c a l l   s e t _ l a b e l ; 	 / *   r e c o r d   t h e   l a b e l   v a l u e   * / 
 	             i f   i n s e r t . l a b e l . v a l u e   ( i n s e r t . l a b e l . c o u n t )   =   s e a r c h _ l a b e l 
 	             t h e n 
 	                 d o ; 	 	 / *   i f   i t   m a t c h e s   * / 
 	 	 i f   s h a r e d . b u g _ m o d e 
 	 	 t h e n   c a l l   i o a _   ( " ^ 5 x ( l a b e l :   l i n e = ^ d   ^ d   ^ a ) " , 
 	 	 	 c t l . i n f o . f i l e n o ,   c t l . i n f o . l i n e n o , 
 	 	 	 r t r i m   ( s e a r c h _ l a b e l ) ) ; 
 	 	 g o t o   e n d _ c t l _ l o o p ; 
 	                 e n d ; 
 	         e n d ; 
 
 	     i f   i n d e x   ( l t r i m   ( c t l _ l i n e ) ,   " . e n d i f " )   =   1 
 	     t h e n   s h a r e d . i f _ n e s t . n d x   = 
 	 	     m a x   ( s h a r e d . i f _ n e s t . n d x   -   1 ,   c a l l e r s _ n e s t ) ; 
 	 e n d ; 
 
                 e l s e 
 	 d o ; 	 	 	 / *   n o   s u c h   l a b e l   * / 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	               " L a b e l   n o t   d e f i n e d .   " " "   | |   b e f o r e   ( s e a r c h _ l a b e l ,   "   " )   | |   " " " " , 
 	               a d d r   ( s a v e _ i n f o ) ,   l t r i m   ( s a v e _ l i n e ) ) ; 
 	     i n s e r t . p o s n   =   s a v e _ p o s n ; 	 / *   r e s t o r e   . g o   c o n t r o l   p o s i t i o n   * / 
 	     g o t o   e n d _ c t l _ l o o p ; 
 	 e n d ; 
             e n d ; 
 
 / *   H E A D E R - B L O C K   C O N T R O L S   * / 
 c t l _   ( 9 0 ) : 	 	 	 / *   " . h b "   =   h e a d e r - b l o c k   * / 
 c t l _   ( 9 1 ) : 	 	 	 / *   " . h b b "   =   h e a d e r - b l o c k - b e g i n   * / 
 c t l _   ( 9 2 ) : 	 	 	 / *   " . h b e "   =   h e a d e r - b l o c k - e n d   * / 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 9 3 ) : 	 	 	 / *   " . h i f "   =   h i t - f i l e   -   N O T   C O M P L E T E   * / 
 	 	 	 	 / *   L O C A L   S T O R A G E   * / 
             d c l   1   h i t _ d a t a           a l i g n e d   b a s e d   ( s h a r e d . h i t _ d a t a _ p t r ) , 
 	     2   f i l e _ n a m e     ( 0 : 9 )   c h a r   ( 3 2 )   v a r , 
 	 	 	 	 / *   e n t r y n a m e   o f   d a t a   f i l e   * / 
 	     2   i o c b _ p t r       ( 0 : 9 )   p t r , 	 / *   i o c b   p o i n t e r   * / 
 	     2   l a s t _ c a l l e r 
 	 	           ( 0 : 9 )   c h a r   ( 3 2 )   v a r ; 
 	 	 	 	 / *   l a s t   c a l l e r   f o r   e a c h   * / 
 
             i f   ^ o p t i o n . n o h i t _ o p t   &   s h a r e d . h i t _ d a t a _ p t r   =   n u l l   ( ) 
             t h e n 
                 d o ; 
 	 s h a r e d . h i t _ d a t a _ p t r   = 
 	           a l l o c a t e   ( c o n s t . l o c a l _ a r e a _ p t r ,   s i z e   ( h i t _ d a t a ) ) ; 
 	 h i t _ d a t a . f i l e _ n a m e   ( * )   =   " " ; 
 	 h i t _ d a t a . i o c b _ p t r   ( * )   =   n u l l   ( ) ; 
 	 h i t _ d a t a . l a s t _ c a l l e r   ( * )   =   " " ; 
                 e n d ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 9 4 ) : 	 	 	 / *   " . h i t "   =   h i t   * / 
 	 	 	 	 / *   i f   n o   d a t a   * / 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
             t h e n   g o t o   e n d _ c t l _ l o o p ; 
 
             i f   ^ o p t i o n . n o h i t _ o p t 
             t h e n 
                 d o ; 
 	 e n d c h a r   =   " ; " ; 
 	 h i t c h a r n d x   =   0 ; 
 
 	 i f   s h a r e d . h i t _ d a t a _ p t r   =   n u l l   ( ) 
 	 t h e n 	 	 	 / *   n e e d   t h e   h i t   f i l e   d a t a ?   * / 
 	     d o ; 
 	         s h a r e d . h i t _ d a t a _ p t r   = 
 	                   a l l o c a t e   ( c o n s t . l o c a l _ a r e a _ p t r ,   s i z e   ( h i t _ d a t a ) ) ; 
 	         h i t _ d a t a . f i l e _ n a m e   ( * )   =   " " ; 
 	         h i t _ d a t a . i o c b _ p t r   ( * )   =   n u l l   ( ) ; 
 	         h i t _ d a t a . l a s t _ c a l l e r   ( * )   =   " " ; 
 	     e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   c h e c k   f o r   a   h i t   f i l e   i n d e x   * / 
 	 i f   i n d e x   ( " 0 1 2 3 4 5 6 7 8 9 " ,   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) )   ^ =   0 
 	 t h e n   h i t f i l e n d x   = 
 	 	 c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   u n s c a l e d ,   c t l . i n d e x , 
 	 	 c t l . i n d e x ,   a d d r   ( c t l . i n f o ) ,   0 ) ; 
 	 e l s e   h i t f i l e n d x   =   0 ; 	 / * * / 
 	 	 	 	 / *   c o n s t r u c t   h i t   f i l e   n a m e   * / 
 	 i f   h i t _ d a t a . f i l e _ n a m e   ( h i t f i l e n d x )   =   " " 
 	 t h e n   c a l l   i o a _ $ r s n n l   ( " ^ a . ^ d . c n d x " ,   h i t _ d a t a . f i l e _ n a m e   ( h i t f i l e n d x ) , 
 	 	 0 ,   b e f o r e   ( c a l l _ b o x 0 . e n t r y n a m e ,   " . c o m p i n " ) ,   h i t f i l e n d x ) ; 
 	 	 	 	 / *   a t t a c h / o p e n   h i t   f i l e ,   w r i t e _ p a g e _   * / 
 	 	 	 	 / *   w i l l   w r i t e   t h e   d a t a ,   b u t   w e   h a v e   * / 
 	 	 	 	 / *   t o   g i v e   h i m   t h e   i o c b   p t r   a n d   * / 
 	 	 	 	 / *   a t t a c h   t h e   f i l e   * / 
 	 c a l l   a u x _ f i l e   ( h i t _ d a t a . f i l e _ n a m e   ( h i t f i l e n d x ) ,   1 ,   e r c d ) ; 
 	 i f   e r c d   ^ =   0 
 	 t h e n   g o t o   e n d _ c t l _ l o o p ; 
 
 	 h i t _ d a t a . i o c b _ p t r   ( h i t f i l e n d x )   = 
 	           a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) . i o c b _ p t r ; 
 	 	 	 	 / *   s e t   u p   h i t   l i n e   * / 
 	 h i t _ l i n e   =   t e x t _ e n t r y ; 
 	 h i t _ l i n e . i n f o   =   c t l . i n f o ; 
 	 h i t _ l i n e . f o n t   =   c t l . f o n t ; 
 	 h i t _ l i n e . p t r   =   a d d r   ( h i t _ t e x t ) ; 
 	 h i t _ l i n e . l i n e s p a c e   =   0 ; 
 	 h i t _ l i n e . s p c l . f i l e   =   " 1 " b ; 
 	 h i t _ l i n e . s p c l _ i o c b p   =   h i t _ d a t a . i o c b _ p t r   ( h i t f i l e n d x ) ; 
 	 h i t _ l i n e . d e f a u l t   =   " 1 " b ; 	 / *   d e f a u l t   m e a n s   h i t   l i n e   * / 
 
 	 i f   ^ p a g e . h d r . h e a d e d 	 	 / *   h e a d   p a g e   i f   n e e d e d   * / 
 	 t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( h e a d _ u s e d ) ; 
 	 	 	 	 / *   n e e d   a   t e x t   b l o c k ?   * / 
 	 i f   s h a r e d . b l k p t r   =   n u l l   ( ) 
 	 t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " t x " , 
 	 	 a d d r   ( c u r r e n t _ p a r m s ) ,   " 0 " b ) ; 
 
 	 i f   s h a r e d . i n p u t _ f i l e n a m e   ^ =   h i t _ d a t a . l a s t _ c a l l e r   ( h i t f i l e n d x ) 
 	 t h e n 
 	     d o ; 
 	         h i t _ t e x t   =   s h a r e d . i n p u t _ f i l e n a m e   | |   N L ; 
 	         c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . b l k p t r ,   " 0 " b ,   " 0 " b ,   " 0 " b ,   o f l o , 
 	                   a d d r   ( h i t _ l i n e ) ) ; 
 	         h i t _ d a t a . l a s t _ c a l l e r   ( h i t f i l e n d x )   =   s h a r e d . i n p u t _ f i l e n a m e ; 
 
 	         i f   o f l o   &   ^ t e x t . p a r m s . k e e p   &   t e x t . h d r . c o l n o   > =   0 
 	         t h e n   c a l l   c o m p _ b r e a k _   ( n e e d _ b r e a k ,   - 2 ) ; 
 	     e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   c h e c k   f o r   d e l i m i t e r   c h a n g e   * / 
 	 i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   =   " = " 
 	 t h e n 
 	     d o ; 
 	         h i t c h a r n d x   =   4 ; 
 	         e n d c h a r   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x   +   3 ,   1 ) ; 
 	     e n d ; 
 
 	 c a l l   i o a _ $ r s n n l   ( " ^ d ^ - . ~   H I T   ^ a ^ a " ,   h i t _ t e x t ,   0 ,   c t l . l i n e n o , 
 	           s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   e n d c h a r ) ; 
 
 	 h i t t y p e c h a r   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x   +   h i t c h a r n d x ,   1 ) ; 
 	 h i t t y p e n d x   = 
 	           i n d e x   ( h i t t y p e c o d e s , 
 	           t r a n s l a t e   ( h i t t y p e c h a r ,   " U L I A N S K " ,   " u l i a n s k " ) ) ; 
 	 g o t o   h i t t y p e   ( h i t t y p e n d x ) ; 
 
 h i t t y p e   ( 0 ) : 
 	 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ u n k n o w n _ k e y w o r d , 
 	           a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ,   " T h e   h i t   t y p e   k e y   ^ a   i s   u n k n o w n . " , 
 	           h i t t y p e c h a r ) ; 
 h i t t y p e   ( 1 ) : 	 	 	 / *   U   =   U P P E R   c a s e   p e r m u t e   * / 
 h i t t y p e   ( 2 ) : 	 	 	 / *   L   =   l o w e r   c a s e   p e r m u t e   * / 
 h i t t y p e   ( 3 ) : 	 	 	 / *   I   =   i n i t i a l   c a p   p e r m u t e   * / 
 h i t t y p e   ( 4 ) : 	 	 	 / *   A   =   a s - i s   p e r m u t e   * / 
 h i t t y p e   ( 5 ) : 	 	 	 / *   N   =   n o - r e f e r e n c e ,   e x p l i c i t l y   o m i t t e d   r e f e r e n c e   * / 
 h i t t y p e   ( 6 ) : 	 	 	 / *   S   =   " s e e "   r e f e r e n c e   * / 
 h i t t y p e   ( 7 ) : 	 	 	 / *   *   =   l i k e   K   w i t h   f l a g g e d   r e f e r e n c e   * / 
 h i t t y p e   ( 8 ) : 	 	 	 / *   K   =   k e y s   s u p p l i e d   * / 
 	 c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . b l k p t r ,   " 0 " b ,   " 0 " b ,   " 0 " b ,   o f l o , 
 	           a d d r   ( h i t _ l i n e ) ) ; 
 
 	 i f   o f l o   &   ^ t e x t . p a r m s . k e e p   &   t e x t . h d r . c o l n o   > =   0 
 	 t h e n   c a l l   c o m p _ b r e a k _   ( n e e d _ b r e a k ,   - 2 ) ; 
                 e n d ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   H E A D E R - L I N E   C O N T R O L S   * / 
 c t l _   ( 9 5 ) : 	 	 	 / *   " . h l "   =   h e a d e r - l i n e   * / 
 c t l _   ( 9 6 ) : 	 	 	 / *   " . h l a "   =   h e a d e r - l i n e - a l l   * / 
 c t l _   ( 9 7 ) : 	 	 	 / *   " . h l e "   =   h e a d e r - l i n e - e v e n   * / 
 c t l _   ( 9 8 ) : 	 	 	 / *   " . h l f "   =   h e a d e r - l i n e - f o o t n o t e   * / 
 c t l _   ( 9 9 ) : 	 	 	 / *   " . h l o "   =   h e a d e r - l i n e - o d d   * / 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 0 0 ) : 	 	 	 / *   " . h r u l "   -   h o r i z o n t a l - r u l e   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   H O R I Z O N T A L   T A B   C O N T R O L S   * / 
 c t l _   ( 1 0 1 ) : 	 	 	 / *   " . h t d "   =   h t a b - d e f i n e   * / 
 c t l _   ( 1 0 2 ) : 	 	 	 / *   " . h t f "   =   h t a b - o f f   * / 
 c t l _   ( 1 0 3 ) : 	 	 	 / *   " . h t n "   =   h t a b - o n   * / 
             c a l l   c o m p _ f o r m a t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 0 4 ) : 	 	 	 / *   " . h y "   =   d e f a u l t   h y p h e n a t i o n   m o d e   * / 
             s h a r e d . h y p h _ m o d e   =   o p t i o n . h y p h _ o p t ; 
             s h a r e d . h y p h _ s i z e   =   o p t i o n . h y p h _ s i z e ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 0 5 ) : 	 	 	 / *   " . h y f "   =   h y p h e n a t e - o f f   * / 
             s h a r e d . h y p h _ m o d e   =   " 0 " b ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 0 6 ) : 	 	 	 / *   " . h y n "   =   h y p h e n a t e - o n   * / 
             s h a r e d . h y p h _ m o d e   =   " 1 " b ; 
             c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( s h a r e d . h y p h _ s i z e ,   " h y p h e n a t i o n   s i z e " , 
 	   o p t i o n . h y p h _ s i z e ,   0 ,   - 1 ,   u n s c a l e d ,   1 ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 0 7 ) : 	 	 	 / *   " . h y w "   =   h y p h e n a t e - w o r d     * / 
             d c l   h w r d 	           c h a r   ( 2 5 6 )   v a r ; / *   n e e d   t h e   h w r d   d a t a ?   * / 
             i f   s h a r e d . h w r d _ d a t a _ p t r   =   n u l l 
             t h e n 
                 d o ; 
 	 s h a r e d . h w r d _ d a t a _ p t r   = 
 	           a l l o c a t e   ( c o n s t . l o c a l _ a r e a _ p t r ,   s i z e   ( h w r d _ d a t a ) ) ; 
 	 h w r d _ d a t a . c o u n t   =   0 ; 
 	 h w r d _ d a t a . w o r d   ( 1 )   =   " " ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   d e l e t e   a l l   w o r d s ?   * / 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
             t h e n 
                 d o ; 
 	 h w r d _ d a t a . c o u n t   =   0 ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 
 
             d o   w h i l e   ( c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) ) ; 
                 h w r d   =   b e f o r e   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   "   " ) ; 
                 j   =   v e r i f y   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x   +   l e n g t h   ( h w r d ) ) ,   "   " ) ; 
                 i f   j   >   0 
                 t h e n   c t l . i n d e x   =   c t l . i n d e x   +   l e n g t h   ( h w r d )   -   1   +   j ; 
                 e l s e   c t l . i n d e x   =   l e n g t h   ( c t l _ l i n e )   +   1 ; 
 
                 i f   h w r d   ^ =   " " 
                 t h e n   c a l l   p r o c e s s _ h w r d ; 
             e n d ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   I N S E R T I O N   C O N T R O L S   * / 
 c t l _   ( 1 0 8 ) : 	 	 	 / *   " . i b l "   =   i n s e r t - b l o c k   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 0 9 ) : 	 	 	 / *   " . i f "   =   c o n d i t i o n a l - i f   * * *   * / 
 i f _ c t l : 	 	 	 	 / *   i f _ c t l _ i n d e x   * / 
             f o u n d _ c l a u s e   =   " 0 " b ; 	 	 / * * / 
 	 	 	 	 / *   a d v a n c e   t h e   n e s t   * / 
             s h a r e d . i f _ n e s t . n d x   =   s h a r e d . i f _ n e s t . n d x   +   1 ; 
 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 	 / *   i f   n o   v a r f l d ,   a s s u m e   t r u e   * / 
             t h e n   s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . s w   =   T H E N ; 
 
             e l s e 	 	 	 / *   p r o c e s s   t h e   v a r f l d   * / 
                 d o ; 
 	 d o   w h i l e   ( i n d e x   ( c t l _ l i n e ,   s h a r e d . s y m _ d e l i m )   ^ =   0 ) ; 
 	     c a l l   c o m p _ u s e _ r e f _   ( c t l _ l i n e ,   c u r r e n t _ p a r m s . a r t ,   " 0 " b , 
 	               a d d r   ( c t l . i n f o ) ) ; 
 	 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   < e x p r >   m u s t   b e   l o g i c a l   * / 
 	 c a l l   c o m p _ e x p r _ e v a l _   ( c t l _ l i n e ,   c t l . i n d e x ,   a d d r   ( c t l . i n f o ) ,   L O G ,   0 , 
 	           s l o g ,   0 ,   " " ,   " " b ,   e r c d ) ; 
 
 	 i f   e r c d   ^ =   0 	 	 / *   t r u e   i f   t h e r e   w a s   a n   e r r o r   * / 
 	 t h e n   s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . s w   =   T H E N ; 
 
 	 e l s e   i f   s l o g 	 	 / *   T H E N   i f   T R U E ,   o t h e r w i s e   E L S E   * / 
 	 t h e n   s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . s w   =   T H E N ; 
 	 e l s e   s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . s w   =   E L S E ; 
                 e n d ; 
 
             i f   s h a r e d . b u g _ m o d e 
             t h e n   c a l l   i o a _ $ r s n n l   ( " i f n e s t = ^ d   i f _ s w = ^ [ E L S E ^ ; O F F ^ ; T H E N ^ ] " ,   e x i t _ s t r ,   0 , 
 	             s h a r e d . i f _ n e s t . n d x ,   s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . s w   +   2 ) 
 	             ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   I N S E R T I O N   C O N T R O L S   ( C O N T )   * / 
 c t l _   ( 1 1 0 ) : 	 	 	 / *   " . i f i "   =   i n s e r t - f i l e   * / 
 	 	 	 	 / *   i f i _ c t l _ i n d e x   * / 
             c a l l   c o m p _ i n s e r t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 1 1 ) : 	 	 	 / *   " . i f t "   =   i n s e r t - f o o t n o t e s   * / 
 	 	 	 	 / *   i f t _ c t l _ i n d e x   * / 
             i f   s h a r e d . f t n _ r e s e t   ^ =   " h o l d " 	 / *   n o t   h o l d i n g   n o t e s ?   * / 
             t h e n   g o t o   e n d _ c t l _ l o o p ; 	 	 / *   f o r g e t   i t   * / 
 
             i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   c l e a n   u p   c u r r e n t   b l o c k   * / 
             t h e n   c a l l   c o m p _ b r e a k _   ( b l o c k _ b r e a k ,   0 ) ; 
 
             i f   ^ p a g e . h d r . h e a d e d 	 	 / *   h e a d   p a g e   i f   n e e d e d   * / 
             t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( h e a d _ u s e d ) ; 
 	 	 	 	 / *   h a n g   n o t e s   o n   l a s t   b l o c k   * / 
             s h a r e d . c o l p t r   =   p a g e . c o l u m n _ p t r   ( p a g e . h d r . c o l _ c o u n t ) ; 
             s h a r e d . b l k p t r   =   c o l . b l k p t r   ( c o l . h d r . b l k c t ) ; 
             l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . c u r ; 
             t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( l i n e _ a r e a . n d x ) ; 
 
             c t l . d e f a u l t   =   " 1 " b ; 	 	 / *   u s e   t h i s   s w i t c h   t o   f o r c e   n o t e s   * / 
 	 	 	 	 / *   p i c k   u p   a l l   r e m a i n i n g   n o t e s   * / 
             d o   f t n d x   =   1   t o   f t n b l k _ d a t a . h i g h n d x ; 
                 f t n b l k p t r   =   f t n b l k _ d a t a . b l k p t r   ( f t n d x ) ; 
 
                 i f   f t n b l k p t r   ^ =   n u l l 
                 t h e n 
 	 d o ; 	 	 	 / *   m a r k   n o t e   a s   u n r e f f e d   * / 
 	     f t n b l k . h d r . u n r e f   =   " 1 " b ; 
 	     f t n b l k . h d r . r e f e r   =   0 ; 
 	     c o l 0 . h d r . f t n . c t   =   c o l 0 . h d r . f t n . c t   +   1 ; 
 	 	 	 	 / *   i f   f i r s t   f o o t n o t e ,   * / 
 	     i f   c o l 0 . h d r . f t n . c t   =   1 	 / *   c o u n t   s p a c e   f o r   t h e   h e a d e r   * / 
 	     t h e n   c o l 0 . h d r . f t n . u s d   =   f t n h d r . h d r . u s e d   +   1 2 0 0 0 ; 
 	     c o l 0 . h d r . f t n . u s d   = 	 / *   e x t r a   s p a c e   f o r   s e p a r a t o r   * / 
 	               c o l 0 . h d r . f t n . u s d   +   f t n b l k . h d r . u s e d   +   1 2 0 0 0 ; 
 	     c o l 0 . h d r . f t n . b l k n d x   ( c o l 0 . h d r . f t n . c t )   =   f t n d x ; 
 	 	 	 	 / *   c o u n t   i t   i n   t h e   p a g e   h e a d e r   * / 
 	     t e x t . h d r . f t n . c t   =   t e x t . h d r . f t n . c t   +   1 ; 
 	     t e x t . h d r . f t n . u s d   =   t e x t . h d r . f t n . u s d   +   f t n b l k . h d r . u s e d   +   1 2 0 0 0 ; 
 	     t e x t . h d r . f t n . b l k n d x   ( t e x t . h d r . f t n . c t )   =   f t n d x ; 
 	 	 	 	 / *   a n d   i n   t h e   f i r s t   l i n e   * / 
 	     t x t l i n . f t n . c t   =   t x t l i n . f t n . c t   +   1 ; 
 	     t x t l i n . f t n . u s e d   =   t x t l i n . f t n . u s e d   +   f t n b l k . h d r . u s e d   +   1 2 0 0 0 ; 
 	 e n d ; 
             e n d ; 
 
             c a l l   c o m p _ b r e a k _   ( p a g e _ b r e a k ,   0 ) ; 
 
             i f   s h a r e d . e n d _ o u t p u t 
             t h e n   g o t o   e n d _ c t l _ l o o p ; 
 
             c t l . d e f a u l t   =   " 0 " b ; 	 	 / *   r e s e t   t h e   s w i t c h   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 1 2 ) : 	 	 	 / *   " . i g r "   =   i n s e r t - g r a p h i c   * / 
             c a l l   c o m p _ i n s e r t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   I N D E N T A T I O N   C O N T R O L S   * / 
 c t l _   ( 1 1 3 ) : 	 	 	 / *   " . i n "     =   i n s e r t - l e f t   * / 
 c t l _   ( 1 1 4 ) : 	 	 	 / *   " . i n b "   =   i n d e n t - b o t h   * / 
 c t l _   ( 1 1 5 ) : 	 	 	 / *   " . i n l "   =   i n d e n t - l e f t   * / 
 c t l _   ( 1 1 6 ) : 	 	 	 / *   " . i n r "   =   i n d e n t - r i g h t   * / 
             c a l l   c o m p _ f o r m a t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 1 7 ) : 	 	 	 / *   " . i n d c t l "   =   i n d e n t - c o n t r o l s   * / 
             i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
             t h e n 
                 d o ; 
 	 i f   s h a r e d . i n d c t l . n d x   =   3 5 
 	 t h e n   i ,   s h a r e d . i n d c t l . n d x   =   0 ; 
 	 e l s e   i ,   s h a r e d . i n d c t l . n d x   =   s h a r e d . i n d c t l . n d x   +   1 ; 
 
 	 i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x )   =   " o n " 
 	 t h e n   s h a r e d . i n d c t l . s t k   ( i )   =   " 1 " b ; 
 	 e l s e   s h a r e d . i n d c t l . s t k   ( i )   =   " 0 " b ; 
                 e n d ; 
 
             e l s e   s h a r e d . i n d c t l . n d x   =   s h a r e d . i n d c t l . n d x   -   1 ; 
             i f   s h a r e d . i n d c t l . n d x   <   0 
             t h e n   s h a r e d . i n d c t l . n d x   =   3 5 ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 1 8 ) : 	 	 	 / *   " . i n d x "   =   i n s e r t _ i n d e x   * / 
             c a l l   c o m p _ i n s e r t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 1 9 ) : 	 	 	 / *   " . l a "   =   l i n e   l a b e l   * / 
             c a l l   s e t _ l a b e l ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 2 0 ) : 	 	 	 / *   " . l s "   =   l i n e - s p a c e   * / 
             c a l l   c o m p _ f o r m a t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   P A G E   D E F I N I T I O N   C O N T R O L S   * / 
 c t l _   ( 1 2 1 ) : 	 	 	 / *   " . p d "     =   p a g e - d e f i n e - a l l   * / 
 c t l _   ( 1 2 2 ) : 	 	 	 / *   " . p d c "   =   p a g e - d e f i n e - c o l u m n   * / 
 c t l _   ( 1 2 3 ) : 	 	 	 / *   " . p d l "   =   p a g e - d e f i n e - l e n g t h   * / 
 c t l _   ( 1 2 4 ) : 	 	 	 / *   " . p d w "   =   p a g e - d e f i n e - w i d t h   * / 
             c a l l   c o m p _ f o r m a t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 2 5 ) : 	 	 	 / *   " . p f l "   =   p a g e - f o o t e r - l i n e   * / 
 c t l _   ( 1 2 6 ) : 	 	 	 / *   " . p h l "   =   p a g e - h e a d e r - l i n e   * / 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 2 7 ) : 	 	 	 / *   " . p m l "   =   p a g e - m a r g i n - l e f t   * / 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( p a g e _ p a r m s . l m a r g . o d d , 
 	           " p a g e   l e f t   m a r g i n   o d d " ,   0 ,   0 ,   p a g e _ p a r m s . m e a s u r e ,   h s c a l e s , 
 	           c o m p _ d v t . m i n _ W S ) ; 
 	 c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( p a g e _ p a r m s . l m a r g . e v e n , 
 	           " p a g e   l e f t   m a r g i n   e v e n " ,   0 ,   0 ,   p a g e _ p a r m s . m e a s u r e ,   h s c a l e s , 
 	           c o m p _ d v t . m i n _ W S ) ; 
                 e n d ; 
 
             e l s e 
                 d o ; 
 	 i f   i n d e x   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   " , " )   ^ =   1 
 	 t h e n   c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( p a g e _ p a r m s . l m a r g . o d d , 
 	 	 " p a g e   l e f t   m a r g i n   o d d " , 
 	 	 c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   h s c a l e s ,   c t l . i n d e x ,   c t l . i n d e x , 
 	 	 a d d r   ( c t l . i n f o ) ,   0 ) ,   0 ,   p a g e _ p a r m s . m e a s u r e ,   h s c a l e s , 
 	 	 c o m p _ d v t . m i n _ W S ) ; 
 
 	 i f   i n d e x   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   " , " )   =   1 
 	 t h e n   c t l . i n d e x   =   c t l . i n d e x   +   1 ; 
 
 	 i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
 	 t h e n   c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( p a g e _ p a r m s . l m a r g . e v e n , 
 	 	 " p a g e   l e f t   m a r g i n   e v e n " , 
 	 	 c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   h s c a l e s ,   c t l . i n d e x ,   c t l . i n d e x , 
 	 	 a d d r   ( c t l . i n f o ) ,   0 ) ,   0 ,   p a g e _ p a r m s . m e a s u r e ,   h s c a l e s , 
 	 	 c o m p _ d v t . m i n _ W S ) ; 
                 e n d ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 2 8 ) : 	 	 	 / *   O B S O L E T E   * / 
 c t l _   ( 1 2 9 ) : 	 	 	 / *   " . r a c "   =   r u n a r o u n d - c e n t e r e d   * / 
             g o t o   e n d _ c t l _ l o o p ; 	 	 / *   N O T   D O C U M E N T E D   O R   I M P L E M E N T E D   * / 
 
 c t l _   ( 1 3 0 ) : 	 	 	 / *   " . r a l "   =   r u n a r o u n d - l e f t   * / 
             g o t o   e n d _ c t l _ l o o p ; 	 	 / *   N O T   D O C U M E N T E D   O R   I M P L E M E N T E D   * / 
 
 c t l _   ( 1 3 1 ) : 	 	 	 / *   " . r a r "   =   r u n a r o u n d - r i g h t   * / 
             g o t o   e n d _ c t l _ l o o p ; 	 	 / *   N O T   D O C U M E N T E D   O R   I M P L E M E N T E D   * / 
 
 c t l _   ( 1 3 2 ) : 	 	 	 / *   " . r d "   =   r e a d   f r o m   t e r m i n a l   * / 
             c a l l   i o x _ $ g e t _ l i n e   ( i o x _ $ u s e r _ i n p u t ,   a d d r   ( t y _ b u f ) ,   2 0 0 ,   r d c t ,   e r c d ) ; 
 
             i f   e r c d   ^ =   0 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ r e p o r t _   ( 4 ,   e r c d ,   " A t t e m p t i n g   . r d   c o n t r o l " , 
 	           a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	 s i g n a l   c o m p _ a b o r t ; 
                 e n d ; 
 
             c t l _ l i n e   =   s u b s t r   ( t y _ b u f ,   1 ,   r d c t   -   1 ) ; 
 
             i f   l e n g t h   ( c t l _ l i n e )   =   0 	 / *   t r e a t   a s   . s p b   * / 
             t h e n 
                 d o ; 
 	 c t l . i n d e x   =   1 ; 
 	 g o t o   s p b _ c t l ; 
                 e n d ; 
 
             i f   s u b s t r   ( c t l _ l i n e ,   1 ,   1 )   =   " . " 
             t h e n   a g a i n   =   " 1 " b ; 	 	 / *   s e t   r e p r o c e s s   i n p u t   l i n e   f l a g   * / 
             e l s e   t e x t _ a d d e d   =   " 1 " b ; 	 	 / *   o r   t e x t   f l a g   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 3 3 ) : 	 	 	 / *   " . r t "   =   r e t u r n   * / 
             c t l _ l i n e   =   " " ; 
             s h a r e d . e n d _ i n p u t   =   " 1 " b ; 
             r e t u r n ; 
 
 c t l _   ( 1 3 4 ) : 	 	 	 / *   " . s p "     =   s p a c e   * / 
 c t l _   ( 1 3 5 ) : 	 	 	 / *   " . s p b "   =   s p a c e - b r e a k   * / 
 s p b _ c t l : 
             i f   s h a r e d . b l k p t r   ^ =   n u l l 	 / *   i f   t h e r e   i s   a n   a c t i v e   b l o c k   * / 
             t h e n 
                 d o ; 
 	 i f   t e x t . i n p u t _ l i n e   ^ =   " " 	 / *   c l e a n   u p   l e f t o v e r s   * / 
 	 t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 	 	 	 	 / *   i n s e r t   p e n d i n g   h e a d e r   * / 
 / * * * * 	 i f   t e x t . p a r m s . h d r p t r   ^ =   n u l l   ( )   &   ^ s h a r e d . i n s e r t i n g _ h f c 
 / * * * * 	 t h e n   c a l l   c o m p _ t i t l e _ b l o c k _   ( t e x t . p a r m s . h d r p t r ) ; * / 
 	 	 	 	 / *   i n s e r t   p e n d i n g   c a p t i o n   * / 
 	 i f   t e x t . p a r m s . f t r p t r   ^ =   n u l l   ( )   &   ^ s h a r e d . i n s e r t i n g _ h f c 
 	 t h e n   c a l l   c o m p _ t i t l e _ b l o c k _   ( t e x t . p a r m s . f t r p t r ) ; 
 
 	 i f   ^ ( t e x t . p a r m s . k e e p 	 / *   i f   n o t . . .   a   k e e p   * / 
 	           |   t e x t . p a r m s . a r t 	 / *   o r   a r t   * / 
 	           |   t e x t . p a r m s . t i t l e _ m o d e 	 / *   o r   a   < t i t l e >   * / 
 	           |   t e x t . h d r . p i c t u r e 	 / *   o r   a   p i c t u r e   * / 
 	           |   s h a r e d . f t n _ m o d e 	 / *   o r   a   f o o t n o t e   * / 
 	           |   s h a r e d . t a b l e _ m o d e ) 	 / *   o r   t a b l e   m o d e   * / 
 	 t h e n 	 	 	 / *   t h e n   a   b l o c k   b r e a k   * / 
 	           b r e a k _ t y p e   =   b l o c k _ b r e a k ; / * * / 
 	 	 	 	 / *   o t h e r w i s e ,   a   f o r m a t   b r e a k   * / 
 	 e l s e   b r e a k _ t y p e   =   f o r m a t _ b r e a k ; 
                 e n d ; 
 
             e l s e   b r e a k _ t y p e   =   b l o c k _ b r e a k ; 	 / *   o t h e r w i s e ,   a   b l o c k   b r e a k   * / 
 
             g o t o   j o i n _ s p ; 
 
 c t l _   ( 1 3 6 ) : 	 	 	 / *   " . s p d "   =   s p a c e - t o - d e p t h   * / 
             b r e a k _ t y p e   =   b l o c k _ b r e a k ; 
             h e a d _ u s e d   =   0 ; 
 
             i f   s h a r e d . b l k p t r   ^ =   n u l l 	 / *   s p a c e   i n   a   l o o s e   b l o c k ?   * / 
             t h e n   i f   t e x t . h d r . c o l n o   <   0 
 	   t h e n   b r e a k _ t y p e   =   f o r m a t _ b r e a k ; 
 	   e l s e   ; 
 
             e l s e   i f   ^ o p t i o n . g a l l e y _ o p t 	 / *   h e a d   t h e   p a g e ?   * / 
             t h e n   i f   ^ p a g e . h d r . h e a d e d 
 	   t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( h e a d _ u s e d ) ; 
 	   e l s e   h e a d _ u s e d   =   c o l 0 . b l k p t r   ( 1 )   - >   t e x t . h d r . u s e d ; 
 
             t r i m _ f l a g   =   " 1 " b ; 	 	 / *   s p a c e   i s   n o t   t r i m a b l e   * / 
 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 	 / *   d e f a u l t   i s   + 1   * / 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ s p a c e _   ( 1 2 0 0 0 ,   s h a r e d . b l k p t r ,   " 1 " b ,   " 1 " b ,   " 1 " b ,   " 0 " b ) ; 
 	 c a l l   c o m p _ b r e a k _   ( b r e a k _ t y p e ,   - 1 ) ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   c a n t   b a c k   u p   * / 
             e l s e   i f   i n d e x   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   " - " )   =   1 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " N e g a t i v e   p a g e   d e p t h   i n c r e m e n t . " , 
 	           a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   a d d o n   v a l u e ?   * / 
             e l s e   i f   i n d e x   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   " + " )   =   1 
             t h e n   g o t o   j o i n _ s p _ 1 ; 
 
             e l s e 
                 d o ; 
 	 b l n k c t   = 
 	           - p a g e . p a r m s . i n i t _ p a g e _ d e p t h   -   1 2 0 0 0   -   h e a d _ u s e d 
 	           + 
 	           c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   v s c a l e s ,   c t l . i n d e x ,   c t l . i n d e x , 
 	           a d d r   ( c t l . i n f o ) ,   0 ) ; 
 
 	 i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
 	 t h e n   i f   s h a r e d . b l k p t r   =   s h a r e d . o p h d r p t r 
 	 	 |   s h a r e d . b l k p t r   =   s h a r e d . e p h d r p t r 
 	 	 |   s h a r e d . b l k p t r   =   s h a r e d . b l a n k _ h e a d e r _ p t r 
 	           t h e n   b l n k c t   =   b l n k c t   -   t e x t . h d r . u s e d   -   p a g e . p a r m s . m a r g i n . t o p ; 
 	           e l s e   b l n k c t   =   b l n k c t   -   m a x   ( c o l 0 . h d r . u s e d ,   p a g e . h d r . u s e d ) ; 
 	 e l s e   b l n k c t   =   b l n k c t   -   m a x   ( c o l 0 . h d r . u s e d ,   p a g e . h d r . u s e d ) ; 
 
 	 i f   b l n k c t   =   0 	 	 / *   i f   w e ' r e   a l r e a d y   t h e r e   * / 
 	 t h e n   g o t o   e n d _ c t l _ l o o p ; 
 
 	 i f   b l n k c t   <   0 	 	 / *   c a n t   b a c k   u p   * / 
 	 t h e n 
 	     d o ; 
 	         c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " G i v e n   d e p t h   l e s s   t h a n   c u r r e n t   d e p t h . " , 
 	                   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	         g o t o   e n d _ c t l _ l o o p ; 
 	     e n d ; 
 
 	 g o t o   j o i n _ s p _ 2 ; 	 	 / *   g o   d o   i t   * / 
                 e n d ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 3 7 ) : 	 	 	 / *   " . s p f "   =   s p a c e - f o r m a t   * / 
             b r e a k _ t y p e   =   f o r m a t _ b r e a k ; 	 / *   o t h e r w i s e ,   f o r m a t   b r e a k   * / 
 
 j o i n _ s p : 
             i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   i f   t h e r e   i s   a   b l o c k   * / 
             t h e n 
                 d o ; 
 	 i f   t e x t . i n p u t _ l i n e   ^ =   " " 	 / *   c l e a n   u p   l e f t o v e r s   * / 
 	 t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 	 t r i m _ f l a g   =   t e x t . h d r . p i c t u r e   |   t r i m _ f l a g ; 
                 e n d ; 
             e l s e   t r i m _ f l a g   =   " 0 " b ; 	 	 / *   s e t   t r i m   f l a g   * / 
             t r i m _ f l a g   =   c u r r e n t _ p a r m s . c b a r . d e l   |   t r i m _ f l a g ; 
 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
             t h e n   b l n k c t   =   1 2 0 0 0 ; 	 	 / *   d e f a u l t   i s   o n e   * / 
             e l s e 
 j o i n _ s p _ 1 : 
                 b l n k c t   = 
 	       c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   v s c a l e s ,   c t l . i n d e x ,   c t l . i n d e x , 
 	       a d d r   ( c t l . i n f o ) ,   0 ) ; 
 
 j o i n _ s p _ 2 : 
             i f   b l n k c t   ^ =   0 	 	 / *   p u t   i n   a n y   n e e d e d   s p a c e   * / 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ s p a c e _   ( b l n k c t ,   s h a r e d . b l k p t r ,   " 1 " b ,   t r i m _ f l a g ,   " 1 " b ,   " 0 " b ) 
 	           ; 
 	 i f   b r e a k _ t y p e   =   b l o c k _ b r e a k 
 	 t h e n 
 	     d o ; 
 	         i f   t e x t . i n p u t . o f l o 
 	         t h e n   c a l l   c o m p _ b r e a k _   ( n e e d _ b r e a k ,   - 2 ) ; 
 	         c a l l   c o m p _ b r e a k _   ( b l o c k _ b r e a k ,   0 ) ; 
 	     e n d ; 
                 e n d ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 3 8 ) : 	 	 	 / *   " . s p t "   =   s p a c e - t o t a l   * / 
 	 	 	 	 / *   h e a d   t h e   p a g e ?   * / 
             i f   ^ ( o p t i o n . g a l l e y _ o p t   |   p a g e . h d r . h e a d e d ) 
             t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( 0 ) ; 
 
             t r i m _ f l a g   =   " 0 " b ; 	 	 / *   s p a c e   i s   t r i m a b l e   * / 
 
             i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
             t h e n   i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   =   " - " 
 	   t h e n 	 	 	 / *   c a n t   b a c k   u p   * / 
 	       d o ; 
 	           c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " N e g a t i v e   t o t a l   s p a c e   n o t   a l l o w e d . " , 
 	 	 a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	           g o t o   e n d _ c t l _ l o o p ; 
 	       e n d ; 
 
             i f   s h a r e d . b l k p t r   ^ =   n u l l 
             t h e n   i f   t e x t . i n p u t _ l i n e   ^ =   " " 
 	   t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 / * * * * 	   e l s e 	 	 	 / *   i n s e r t   p e n d i n g   h e a d e r   * / 
 / * * * * 	             i f   t e x t . p a r m s . h d r p t r   ^ =   n u l l   ( )   &   ^ s h a r e d . i n s e r t i n g _ h f c 
 / * * * * 	   t h e n   c a l l   c o m p _ t i t l e _ b l o c k _   ( t e x t . p a r m s . h d r p t r ) ; * / 
 	 	 	 	 / *   a d d i t i o n a l   s p a c e   n e e d e d   * / 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 	 / *   d e f a u l t   i s   1   * / 
             t h e n   b l n k c t   =   1 2 0 0 0 ; 
 
             e l s e   b l n k c t   = 
 	             c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   v s c a l e s ,   c t l . i n d e x ,   c t l . i n d e x , 
 	             a d d r   ( c t l . i n f o ) ,   0 ) ; 
 
             i f   s h a r e d . b l k p t r   ^ =   n u l l 
             t h e n 
                 d o ; 
 	 i f   t e x t . p a r m s . h d r p t r   ^ =   n u l l 
 	 t h e n 
 	     d o ; 
 	         i f   s h a r e d . b u g _ m o d e 
 	         t h e n   c a l l   i o a _   ( " ^ 5 x ( n e e d = ^ f   h a v e = ^ f ) " ,   s h o w   ( b l n k c t ,   1 2 0 0 0 ) , 
 	 	         s h o w   ( t e x t . p a r m s . h d r p t r   - >   t e x t . h d r . t r l _ w s ,   1 2 0 0 0 ) ) ; 
 
 	         b l n k c t   =   b l n k c t   -   t e x t . p a r m s . h d r p t r   - >   t e x t . h d r . t r l _ w s ; 
 	     e n d ; 
 
 	 e l s e 
 	     d o ; 
 	         i f   s h a r e d . b u g _ m o d e 
 	         t h e n   c a l l   i o a _   ( " ^ 5 x ( n e e d = ^ f   h a v e = ^ f ) " ,   s h o w   ( b l n k c t ,   1 2 0 0 0 ) , 
 	 	         s h o w   ( t e x t . h d r . t r l _ w s ,   1 2 0 0 0 ) ) ; 
 
 	         b l n k c t   =   b l n k c t   -   t e x t . h d r . t r l _ w s ; 
 	     e n d ; 
                 e n d ; 
 
             e l s e 
                 d o ; 
 	 i f   s h a r e d . b u g _ m o d e 
 	 t h e n   c a l l   i o a _   ( " ^ 5 x ( n e e d = ^ f   h a v e = ^ f ) " ,   s h o w   ( b l n k c t ,   1 2 0 0 0 ) , 
 	 	 s h o w   ( c o l . h d r . p s p c ,   1 2 0 0 0 ) ) ; 
 
 	 b l n k c t   =   b l n k c t   -   c o l . h d r . p s p c ; 
                 e n d ; 
 
             i f   b l n k c t   < =   0 	 	 / *   i f   w e ' r e   a l r e a d y   t h e r e   * / 
             t h e n   g o t o   e n d _ c t l _ l o o p ; 
 
             i f   s h a r e d . b l k p t r   ^ =   n u l l 	 / *   c h e c k   h e a d e r   a d d i t i o n   * / 
             t h e n 
                 d o ; 
 	 i f   t e x t . p a r m s . h d r p t r   ^ =   n u l l 
 	 t h e n 
 	     d o ; 
 	         c a l l   c o m p _ s p a c e _   ( b l n k c t ,   t e x t . p a r m s . h d r p t r ,   " 1 " b ,   " 1 " b ,   " 1 " b , 
 	                   " 0 " b ) ; 
 	         g o t o   e n d _ c t l _ l o o p ; 
 	     e n d ; 
 
 	 i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   f i n i s h   b l o c k   * / 
 	 t h e n   i f   t e x t . i n p u t _ l i n e   ^ =   " " 
 	           t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 
 	 i f   ( t e x t . p a r m s . t i t l e _ m o d e   |   t e x t . p a r m s . k e e p   |   t e x t . p a r m s . a r t ) 
 	 t h e n   b r e a k _ t y p e   =   f o r m a t _ b r e a k ; 
 	 e l s e   b r e a k _ t y p e   =   b l o c k _ b r e a k ; 
                 e n d ; 
 
             e l s e   b r e a k _ t y p e   =   b l o c k _ b r e a k ; 
             g o t o   j o i n _ s p _ 2 ; 	 	 / *   g o   d o   i t   * / 
 
 c t l _   ( 1 3 9 ) : 	 	 	 / *   " . s r "     =   s e t - r e f e r e n c e   * / 
 c t l _   ( 1 4 0 ) : 	 	 	 / *   " . s r c "   =   s e t - r e f e r e n c e - c o u n t e r   * / 
 s r c _ c t l : 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 	 / *   i f   n o t h i n g   t h e r e   * / 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " M i s s i n g   v a r i a b l e   n a m e . " ,   a d d r   ( c t l . i n f o ) , 
 	           c t l _ l i n e ) ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 
 
             g i v e n _ s y m b o l   = 	 	 / *   r e a d   t h e   g i v e n   s y m b o l   * / 
 	   c o m p _ r e a d _ $ n a m e   ( c t l _ l i n e ,   c t l . i n d e x ,   c t l . i n d e x ,   a d d r   ( c t l . i n f o ) ) ; 
 
             i f   g i v e n _ s y m b o l   =   " " 	 	 / *   i n v a l i d   n a m e ?   * / 
             t h e n   g o t o   e n d _ c t l _ l o o p ; 	 	 / * * / 
 	 	 	 	 / *   r e s e r v e d   n a m e ?   * / 
             i f   i n d e x   ( g i v e n _ s y m b o l ,   " A r g " )   =   1   &   g i v e n _ s y m b o l   ^ =   " A r g C o u n t " 
             t h e n   i f   v e r i f y   ( r t r i m   ( s u b s t r   ( g i v e n _ s y m b o l ,   4 ) ) ,   " 0 1 2 3 4 5 6 7 8 9 " )   =   0 
 	   t h e n 
 	       d o ; 
 r e s r v d _ n m : 
 	           c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   0 ,   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	 	 " ^ a   i s   a   r e s e r v e d   n a m e . " ,   g i v e n _ s y m b o l ) ; 
 	           g o t o   e n d _ c t l _ l o o p ; 
 	       e n d ; 
 
             i f   g i v e n _ s y m b o l   =   " A r g C o u n t " 	 / *   t h i s   o n e ,   t o o   * / 
             t h e n   g o t o   r e s r v d _ n m ; 	 	 / * * / 
 	 	 	 	 / *   i s   a   v a l u e   g i v e n ?   * / 
             i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
             t h e n 
                 d o ; 	 	 	 / *   s u b s t i t u t i o n   n e e d e d ?   * / 
 	 i f   i n d e x   ( c t l _ l i n e ,   s h a r e d . s y m _ d e l i m )   ^ =   0 
 	 t h e n   c a l l   c o m p _ u s e _ r e f _   ( c t l _ l i n e ,   " 0 " b ,   " 0 " b ,   a d d r   ( c t l . i n f o ) ) ; 
 
 	 c a l l   c o m p _ u p d a t e _ s y m b o l _   ( " 0 " b ,   " 0 " b ,   " 0 " b ,   g i v e n _ s y m b o l , 
 	           s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ) ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i f   n o   v a l u e ,   u s e   " "   t o   d e f i n e   i t   * / 
             e l s e   c a l l   c o m p _ u p d a t e _ s y m b o l _   ( " 0 " b ,   " 0 " b ,   " 1 " b ,   g i v e n _ s y m b o l ,   " " ) ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 4 1 ) : 	 	 	 / *   " . s r m "   =   s e t - r e f e r e n c e - m o d e   * / 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
             t h e n 	 	 	 / *   n o   v a r i a b l e s   * / 
                 d o ; 
 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " N o   d i s p l a y   m o d e   k e y w o r d   g i v e n . " , 
 	           a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 
 
             m o d e _ k e y   = 	 	 	 / *   r e a d   t h e   k e y w o r d   * / 
 	   c o m p _ r e a d _ $ n a m e   ( c t l _ l i n e ,   c t l . i n d e x ,   c t l . i n d e x ,   a d d r   ( c t l . i n f o ) ) ; 
 	 	 	 	 / *     a n d   s e t   i n d e x   v a l u e   * / 
             m o d e n d x   =   i n d e x   ( m o d e _ s t r i n g ,   m o d e _ k e y ) ; 
 
             i f   m o d e n d x   =   0 	 	 / *   k e y   n o t   f o u n d   * / 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " U n k n o w n   d i s p l a y   m o d e   k e y w o r d . " , 
 	           a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 
 
             m o d e n d x   =   d i v i d e   ( m o d e n d x ,   2 ,   1 7 ) ; / *   c o m p u t e   t r u e   i n d e x   v a l u e   * / 
 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 	 / *   i f   n o t h i n g   f o l l o w s   * / 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " N o   v a r i a b l e   l i s t   g i v e n . " ,   a d d r   ( c t l . i n f o ) , 
 	           c t l _ l i n e ) ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 
 
             e l s e 
                 d o 	 	 	 / *   s c a n   t h e   g i v e n   v a r i a b l e   l i s t   * / 
 	       w h i l e   ( c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) ) ; 
 	 g i v e n _ s y m b o l   = 	 	 / *   r e a d   a   n a m e   * / 
 	           c o m p _ r e a d _ $ n a m e   ( c t l _ l i n e ,   c t l . i n d e x ,   c t l . i n d e x , 
 	           a d d r   ( c t l . i n f o ) ) ; 
 
 	 i f   g i v e n _ s y m b o l   =   " P a g e N o " 	 / *   P a g e N o   n o t   a l l o w e d   * / 
 	 t h e n 
 	     d o ; 
 	         c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	                   " P a g e   n u m b e r   d i s p l a y   m o d e   m a y   n o t   b e   c h a n g e d   " 
 	                   | |   " w i t h   t h i s   c o n t r o l . " ,   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	     e n d ; 
 
 	 e l s e 
 	     d o ; 
 	         c a l l   c o m p _ u t i l _ $ s e a r c h _ t r e e   ( g i v e n _ s y m b o l ,   C R E A T E ) ; 
 	         t r e e _ v a r _ p t r   =   t r e e . v a r _ p t r   ( t r e e . a r e a n d x ) ; 
 	         t r e e _ v a r . m o d e   ( t r e e . e n t r y n d x )   =   m o d e n d x ; 
 	     e n d ; 
                 e n d ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 4 2 ) : 	 	 	 / *   " . s r v "   =   s e t - r e f e r e n c e - v a r i a b l e   * / 
             g o t o   s r c _ c t l ; 
 
 c t l _   ( 1 4 3 ) : 	 	 	 / *   " . s t l "   =   s p l i t _ t i t l e _ l i n e   * / 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   T A B L E   C O N T R O L S   * / 
 c t l _   ( 1 4 4 ) : 	 	 	 / *   " . t a b "   =       t a b l e - d e f i n e   * / 
 c t l _   ( 1 4 5 ) : 	 	 	 / *   " . t a c "   =       t a b l e - c o l u m n   * / 
 c t l _   ( 1 4 6 ) : 	 	 	 / *   " . t a f "   =       t a b l e - o f f   * / 
 c t l _   ( 1 4 7 ) : 	 	 	 / *   " . t a n "   =       t a b l e - o n   * / 
 	 	 	 	 / *   t a c _ c t l _ i n d e x ,   t a f _ c t l _ i n d e x   * / 
 t a c _ c t l : 
             c a l l   c o m p _ t b l _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   T I T L E - B L O C K   C O N T R O L S   * / 
 c t l _   ( 1 4 8 ) : 	 	 	 / *   " . t b "     =       t i t l e - b l o c k   * / 
 c t l _   ( 1 4 9 ) : 	 	 	 / *   " . t b b "   =       t i t l e - b l o c k - b e g i n   * / 
 c t l _   ( 1 5 0 ) : 	 	 	 / *   " . t b e "   =       t i t l e - b l o c k - e n d   * / 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 5 1 ) : 	 	 	 / *   " . t c l "   =   t e x t - c a p t i o n - l i n e   * / 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 5 2 ) : 	 	 	 / *   " . t h e n "   =   c o n d i t i o n a l - t h e n   * / 
             i f   s h a r e d . i f _ n e s t . n d x   =   0 	 / *   i f   n o   a c t i v e   n e s t   * / 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ u s a g e _ e r r o r , 
 	           a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	           " N o t   i n   a n   a c t i v e   c o n d i t i o n a l   e x e c u t i o n   g r o u p . " ) ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 
 
             f o u n d _ c l a u s e   =   " 1 " b ; 	 	 / * * / 
 	 	 	 	 / *   e x e c u t e   t h e   t h e n ?   * / 
             i f   s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . s w   =   T H E N 
             t h e n 
                 d o ; 
 	 i f   s h a r e d . i n d c t l . s t k   ( s h a r e d . i n d c t l . n d x ) 
 	 t h e n   c t l _ l i n e   =   l t r i m   ( a f t e r   ( c t l _ l i n e ,   " . t h e n " ) ) ; 
 	 e l s e   c t l _ l i n e   =   a f t e r   ( c t l _ l i n e ,   " . t h e n   " ) ; 
 
 	 i f   i n d e x   ( c t l _ l i n e ,   " . " )   =   1 
 	 t h e n   a g a i n   =   " 1 " b ; 
 	 e l s e   i f   c t l _ l i n e   ^ =   " " 
 	 t h e n   t e x t _ a d d e d   =   " 1 " b ; 
                 e n d ; 
 
             e l s e 	 	 	 / *   s e a r c h   f o r   i f / e l s e / e l s e i f / e n d i f   * / 
                 d o ; 	 	 	 / *   u n t i l   f o u n d   o r   e n d _ i n p u t   * / 
 	 t h i s _ n e s t   =   s h a r e d . i f _ n e s t . n d x ; 
 	 i f   i n d e x   ( l t r i m   ( a f t e r   ( c t l _ l i n e ,   " t h e n " ) ) ,   " . i f   " )   =   1 
 	 t h e n 
 	     d o ; 	 	 	 / *   c o u n t   a n o t h e r   n e s t   * / 
 	         s h a r e d . i f _ n e s t . n d x   =   s h a r e d . i f _ n e s t . n d x   +   1 ; 
 	         i f   s h a r e d . b u g _ m o d e 
 	         t h e n   c a l l   i o a _   ( " ^ 5 x i f n e s t = ^ d   ( ^ d   " " ^ a " " ) " ,   s h a r e d . i f _ n e s t . n d x , 
 	 	         c t l . l i n e n o ,   c t l _ l i n e ) ; 
 	     e n d ; 
 
 	 d o   w h i l e   ( ^ s h a r e d . e n d _ i n p u t ) ;   / * * / 
 	 	 	 	 / *   r e a d   n e x t   l i n e   * / 
 	     c a l l   c o m p _ r e a d _ $ l i n e   ( c a l l _ b o x _ p t r ,   c t l _ l i n e ,   " 1 " b ) ; 
 	     c t l . i n f o   =   c a l l _ b o x . i n f o ; 
 
 	     i f   i n d e x   ( l t r i m   ( c t l _ l i n e ) ,   " . i f   " )   =   1 
 	     t h e n 
 	         d o ; 	 	 	 / *   c o u n t   a n o t h e r   n e s t   * / 
 	             s h a r e d . i f _ n e s t . n d x   =   s h a r e d . i f _ n e s t . n d x   +   1 ; 
 	             i f   s h a r e d . b u g _ m o d e 
 	             t h e n   c a l l   i o a _ $ r s n n l   ( " i f n e s t = ^ d   i f _ s w = ^ d " ,   e x i t _ s t r ,   0 , 
 	 	             s h a r e d . i f _ n e s t . n d x , 
 	 	             s h a r e d . i f _ n e s t   ( s h a r e d . i f _ n e s t . n d x ) . s w ) ; 
 	         e n d ; 
 
 	     e l s e   i f   i n d e x   ( l t r i m   ( c t l _ l i n e ) ,   " . e l s e " )   =   1 
 	               |   i n d e x   ( l t r i m   ( c t l _ l i n e ) ,   " . e n d i f " )   =   1 
 	     t h e n 
 	         d o ; 
 	             i f   s h a r e d . b u g _ m o d e 
 	             t h e n   c a l l   i o a _   ( " ^ 5 x i f n e s t = ^ d   ( ^ d   " " ^ a " " ) " ,   s h a r e d . i f _ n e s t . n d x , 
 	 	             c t l . l i n e n o ,   c t l _ l i n e ) ; 
 
 	             i f   i n d e x   ( l t r i m   ( c t l _ l i n e ) ,   " . e n d i f " )   =   1 
 	             t h e n 
 	                 d o ; 
 	 	 i f   s h a r e d . i f _ n e s t . n d x   >   t h i s _ n e s t 
 	 	 t h e n   s h a r e d . i f _ n e s t . n d x   =   s h a r e d . i f _ n e s t . n d x   -   1 ; 
 
 	 	 e l s e 
 	 	     d o ; 
 	 	         a g a i n   =   " 1 " b ; 	 / *   s e t   t h e   c o n t r o l   f l a g   * / 
 	 	         g o t o   e n d _ c t l _ l o o p ; 
 	 	     e n d ; 
 	                 e n d ; 
 
 	             e l s e   i f   i n d e x   ( l t r i m   ( c t l _ l i n e ) ,   " . e l s e " )   =   1 
 	             t h e n   i f   s h a r e d . i f _ n e s t . n d x   =   t h i s _ n e s t 
 	 	   t h e n 
 	 	       d o ; 
 	 	           a g a i n   =   " 1 " b ; 	 / *   s e t   t h e   c o n t r o l   f l a g   * / 
 	 	           g o t o   e n d _ c t l _ l o o p ; 
 	 	       e n d ; 
 	         e n d ; 
 	 e n d ; 
                 e n d ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 5 3 ) : 	 	 	 / *   " . t h l "   =   t e x t - h e a d e r - l i n e   * / 
 t h l _ c t l : 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 / *   T I T L E - L I N E   C O N T R O L S   * / 
 c t l _   ( 1 5 4 ) : 	 	 	 / *   " . t l c "   =   t i t l e - l i n e - c a p t i o n   * / 
 c t l _   ( 1 5 5 ) : 	 	 	 / *   " . t l h "   =   t i t l e - l i n e - h e a d e r   * / 
             i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
             t h e n   i f   t e x t . b l k t y p e   =   " t h "   |   t e x t . b l k t y p e   =   " t f " 
 	   t h e n 
 	       d o ; 
 	           c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	 " A l r e a d y   p r o c e s s i n g   a   t e x t   h e a d e r   o r   c a p t i o n . " , 
 	 	 a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	           g o t o   e n d _ c t l _ l o o p ; 
 	       e n d ; 
 
             c a l l   c o m p _ h f t _ c t l s _   ( c t l _ i n d e x ) ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 5 6 ) : 	 	 	 / *   " . t r e "   =   t r a n s l a t e - e x c e p t i o n s   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 5 7 ) : 	 	 	 / *   " . t r f "   =   t r a n s l a t e - f o r m a t t e d   * / 
 c t l _   ( 1 5 8 ) : 	 	 	 / *   " . t r n "   =   t r a n s l a t e   * / 
             d c l   t r _ i n 	           c h a r   ( 1 ) ; 	 / *   i n p u t   c h a r   * / 
             d c l   t r _ o u t 	           c h a r   ( 1 ) ; 	 / *   o u t p u t   c h a r   * / 
 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 	 / *   r e s e t t i n g   a l l ?   * / 
             t h e n 
                 d o ; 
 	 s h a r e d . t r a n s . i n ,   s h a r e d . t r a n s . o u t   =   "   " ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 
 
             d o   c t l . i n d e x   =   c t l . i n d e x   t o   l e n g t h   ( c t l _ l i n e )   b y   2 ; 
                 t r _ i n   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) ; 
 	 	 	 	 / *   c a n t   t r f   t h e   s y m   d e l i m   * / 
                 i f   t r _ i n   =   s h a r e d . s y m _ d e l i m 
                 t h e n   c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " C a n n o t   t r a n s l a t e   s y m b o l - d e l i m i t e r . " , 
 	                 a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	 	 	 	 / *   o r   t h e   t t l   d e l i m   * / 
                 e l s e   i f   t r _ i n   =   s h a r e d . t t l _ d e l i m 
                 t h e n   c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " C a n n o t   t r a n s l a t e   t i t l e - d e l i m i t e r . " , 
 	                 a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 
                 e l s e 
 	 d o ; 
 	     i f   c t l . i n d e x   <   l e n g t h   ( c t l _ l i n e ) 
 	     t h e n   i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x   +   1 ,   1 )   ^ =   "   " 
 	               t h e n   t r _ o u t   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x   +   1 ,   1 ) ; 
 	               e l s e   t r _ o u t   =   E N ; 
 	     e l s e   t r _ o u t   =   E N ; 
 
 	     i   =   i n d e x   ( s h a r e d . t r a n s . i n ,   t r _ i n ) ; 
 	 	 	 	 / *   l o o k   f o r   i t   * / 
 
 	     i f   i   >   0 	 	 / *   r e s e t t i n g   o r   c h a n g i n g   * / 
 	     t h e n 
 	         d o ; 
 	             i f   t r _ i n   =   t r _ o u t 	 / *   r e s e t t i n g   * / 
 	             t h e n 
 	                 d o ; 
 	 	 s h a r e d . t r a n s . i n   = 
 	 	           s u b s t r   ( s h a r e d . t r a n s . i n ,   1 ,   i   -   1 ) 
 	 	           | |   s u b s t r   ( s h a r e d . t r a n s . i n ,   i   +   1 ) ; 
 	 	 s h a r e d . t r a n s . o u t   = 
 	 	           s u b s t r   ( s h a r e d . t r a n s . o u t ,   1 ,   i   -   1 ) 
 	 	           | |   s u b s t r   ( s h a r e d . t r a n s . o u t ,   i   +   1 ) ; 
 	                 e n d ; 	 	 / *   c h a n g i n g   * / 
 	             e l s e   s u b s t r   ( s h a r e d . t r a n s . o u t ,   i ,   1 )   =   t r _ o u t ; 
 	         e n d ; 
 
 	     e l s e 
 	         d o ; 	 	 	 / *   a d d i n g   * / 
 	             s h a r e d . t r a n s . i n   =   s h a r e d . t r a n s . i n   | |   t r _ i n ; 
 	             s h a r e d . t r a n s . o u t   =   s h a r e d . t r a n s . o u t   | |   t r _ o u t ; 
 	         e n d ; 
 	 e n d ; 
             e n d ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 5 9 ) : 	 	 	 / *   " . t t l "   =   t e x t - t i t l e - l i n e   * / 
             g o t o   t h l _ c t l ; 
 
 c t l _   ( 1 6 0 ) : 	 	 	 / *   " . t s "   =   t e s t   * / 
             i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e )   / *   p r o c e s s   s y m b o l   r e f s   * / 
             t h e n   i f   i n d e x   ( c t l _ l i n e ,   s h a r e d . s y m _ d e l i m )   ^ =   0 
 	   t h e n   c a l l   c o m p _ u s e _ r e f _   ( c t l _ l i n e ,   c u r r e n t _ p a r m s . a r t ,   " 0 " b , 
 	 	   a d d r   ( c t l . i n f o ) ) ; 
 
             s l o g   =   " 0 " b ; 
             i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ e x p r _ e v a l _   ( c t l _ l i n e ,   c t l . i n d e x ,   a d d r   ( c t l . i n f o ) ,   L O G ,   0 , 
 	           s l o g ,   0 ,   " " ,   " " b ,   e r c d ) ; 
 	 i f   e r c d   ^ =   0 	 	 / *   w a s   t h e r e   a n   e r r o r ?   * / 
 	 t h e n   g o t o   e n d _ c t l _ l o o p ; 	 / *   s a m e   a s   t r u e   * / 
 
 	 e l s e   i f   ^ s l o g 	 	 / *   s k i p   n e x t   l i n e   i f   F A L S E   * / 
 	 t h e n 
 	     d o ; 
 	         c a l l   c o m p _ r e a d _ $ l i n e   ( c a l l _ b o x _ p t r ,   c t l _ l i n e ,   " 1 " b ) ; 
 	         c t l . i n f o   =   c a l l _ b o x . i n f o ; 
 	     e n d ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   s k i p   n e x t   l i n e   * / 
             e l s e 
                 d o ; 
 	 c a l l   c o m p _ r e a d _ $ l i n e   ( c a l l _ b o x _ p t r ,   c t l _ l i n e ,   " 1 " b ) ; 
 	 c t l . i n f o   =   c a l l _ b o x . i n f o ; 
                 e n d ; 
 
             i f   s h a r e d . b u g _ m o d e 
             t h e n   c a l l   i o a _ $ r s n n l   ( " ^ [ T ^ ; F ^ ] " ,   e x i t _ s t r ,   0 ,   s l o g ) ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 6 1 ) : 	 	 	 / *   " . t y "   =   w r i t e   o n   e r r o r _ o u t p u t   * / 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
             t h e n   c a l l   i o x _ $ p u t _ c h a r s   ( i o x _ $ e r r o r _ o u t p u t ,   a d d r   ( N L ) ,   1 ,   e r c d ) ; 
 
             e l s e 
                 d o ; 
 	 c a l l   c o m p _ u s e _ r e f _   ( c t l _ l i n e ,   " 0 " b ,   " 0 " b ,   a d d r   ( c t l . i n f o ) ) ; 
 	 t y _ b u f   =   t r a n s l a t e   ( s u b s t r   ( c t l _ l i n e ,   5 ) ,   P A D ,   " ¿ " )   | |   N L ; 
 	 c a l l   i o x _ $ p u t _ c h a r s   ( i o x _ $ e r r o r _ o u t p u t ,   a d d r   ( t y _ b u f ) , 
 	           l e n g t h   ( c t l _ l i n e )   -   3 ,   e r c d ) ; 
 	 i f   e r c d   ^ =   0 
 	 t h e n 
 	     d o ; 
 	         c a l l   c o m _ e r r _   ( e r c d ,   " c o m p o s e " , 
 	                   " . t y   a t t e m p t i n g   t o   w r i t e   t o   e r r o r _ o u t p u t . " ) ; 
 	         s i g n a l   c o m p _ a b o r t ; 
 	         r e t u r n ; 
 	     e n d ; 
                 e n d ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 6 2 ) : 	 	 	 / *   " . u n "     =   u n d e n t   * / 
 c t l _   ( 1 6 3 ) : 	 	 	 / *   " . u n b "   =   u n d e n t - b o t h   * / 
 c t l _   ( 1 6 4 ) : 	 	 	 / *   " . u n h "   =   u n d e n t - h a n g i n g   * / 
 c t l _   ( 1 6 5 ) : 	 	 	 / *   " . u n l "   =   u n d e n t - l e f t   * / 
 c t l _   ( 1 6 6 ) : 	 	 	 / *   " . u n n "   =   u n d e n t - n o b r e a k   -   O B S O L E T E D   B Y   . u n h   * / 
 c t l _   ( 1 6 7 ) : 	 	 	 / *   " . u n r "   =   u n d e n t - r i g h t   * / 
             c a l l   c o m p _ f o r m a t _ c t l s _   ( c t l _ i n d e x ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 6 8 ) : 	 	 	 / *   " . u n s o n "   =   u n d e r s c o r e - o n   * / 
             c t l _ l i n e   =   u n s t a r t _ s i g n a l ; 
             c t l . u n s t r t ,   t e x t _ a d d e d ,   c t l . D V c t l   =   " 1 " b ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 6 9 ) : 	 	 	 / *   " . u n s o f f "   =   u n d e r s c o r e - o f f   * / 
             c t l _ l i n e   =   u n s t o p _ s i g n a l ; 
             c t l . u n s t o p ,   t e x t _ a d d e d ,   c t l . D V c t l   =   " 1 " b ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 7 0 ) : 	 	 	 / *   " . u r "   =   u s e   r e f e r e n c e   * / 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 	 / *   i f   n o t h i n g   t h e r e   * / 
             t h e n   g o t o   r e t u r n _ ; 
 
             c a l l   c o m p _ u s e _ r e f _   ( c t l _ l i n e ,   c u r r e n t _ p a r m s . a r t ,   " 0 " b ,   a d d r   ( c t l . i n f o ) ) ; 
             c t l _ l i n e   =   a f t e r   ( c t l _ l i n e ,   " . u r   " ) ; 
             c t l . i n d e x   =   1 ; 
 
             i f   c t l _ l i n e   =   " " 	 	 / *   c o n v e r t   n u l l   l i n e s   * / 
             t h e n   c t l _ l i n e   =   " . s p b " ; 
 
             i f   s h a r e d . t a b l e _ m o d e 	 	 / *   t a b l e   m o d e ?   * / 
             t h e n 
                 d o ; 
 	 t b l f m t p t r   =   t b l d a t a . f m t   ( t b l d a t a . n d x ) . p t r ; 
 	 i f   t b l f m t . c o n t e x t 	 	 / *   c o n t e x t   m o d e ?   * / 
 	           &   i n d e x   ( c t l _ l i n e ,   " . " )   =   1 
 	           &   s e a r c h   ( s u b s t r   ( c t l _ l i n e ,   2 ) ,   " 0 1 2 3 4 5 6 7 8 9 " )   =   1 
 	 t h e n 
 	     d o ; 
 	         i f   i n d e x   ( c t l _ l i n e ,   " * " )   ^ =   0   &   p a g e . h d r . c o l _ i n d e x   > =   0 
 	         t h e n   c a l l   c o m p _ u t i l _ $ e s c a p e   ( c t l _ l i n e ,   a d d r   ( c t l . i n f o ) ) ; 
 	         t e x t _ a d d e d   =   " 1 " b ; 
 	         g o t o   e n d _ c t l _ l o o p ; 
 	     e n d ; 
                 e n d ; 
 
             i f   i n d e x   ( c t l _ l i n e ,   " . " )   =   1 	 / *   i f   n e s t e d   c o n t r o l s   * / 
 	   &   c t l _ l i n e   ^ =   " . "   &   i n d e x   ( c t l _ l i n e ,   " . . . " )   ^ =   1 
             t h e n   a g a i n   =   " 1 " b ; 	 	 / *   s e t   f l a g   t o   r e p r o c e s s   l i n e   * / 
             e l s e 
                 d o ; 
 	 t e x t _ a d d e d   =   " 1 " b ; 
 	 i f   i n d e x   ( c t l _ l i n e ,   " * " )   ^ =   0   &   p a g e . h d r . c o l _ i n d e x   > =   0 
 	 t h e n   c a l l   c o m p _ u t i l _ $ e s c a p e   ( c t l _ l i n e ,   a d d r   ( c t l . i n f o ) ) ; 
                 e n d ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 7 1 ) : 	 	 	 / *   " . v a b "   =   v e r t i c a l - a l i g n - b o t t o m   -   N O T   I M P L E M E N T E D   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 7 2 ) : 	 	 	 / *   " . v a c "   =   v e r t i c a l - a l i g n - c e n t e r   -   N O T   I M P L E M E N T E D   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 7 3 ) : 	 	 	 / *   " . v a j "   =   v e r t i c a l - a l i g n - j u s t i f y   -   N O T   I M P L E M E N T E D   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 7 4 ) : 	 	 	 / *   " . v a t "   =   v e r t i c a l - a l i g n - t o p   -   N O T   I M P L E M E N T E D   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 7 5 ) : 	 	 	 / *   " . v m "   =   v e r t i c a l - m a r g i n - a l l   * / 
             g o t o   v m t _ c t l ; 
 
 c t l _   ( 1 7 6 ) : 	 	 	 / *   " . v m b "   =   v e r t i c a l - m a r g i n - b o t t o m   * / 
 v m b _ c t l : 
             c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( p a g e _ p a r m s . m a r g i n . b o t t o m ,   " b o t t o m   m a r g i n " , 
 	   4 8 0 0 0 ,   c o m p _ d v t . v m b _ m i n , 
 	   p a g e _ p a r m s . l e n g t h   -   p a g e _ p a r m s . m a r g i n . t o p 
 	   -   p a g e _ p a r m s . m a r g i n . h e a d e r   -   p a g e _ p a r m s . m a r g i n . f o o t e r ,   v s c a l e s , 
 	   c o m p _ d v t . m i n _ l e a d ) ; 
             p a g e . p a r m s . m a r g i n . b o t t o m   =   p a g e _ p a r m s . m a r g i n . b o t t o m ; 
 
             i f   ^ o p t i o n . g a l l e y _ o p t 
             t h e n   c a l l   c o m p _ u t i l _ $ s e t _ n e t _ p a g e   ( " 1 " b ) ; 
 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 7 7 ) : 	 	 	 / *   " . v m f "   =   v e r t i c a l - m a r g i n - f o o t e r   * / 
 v m f _ c t l : 
             c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( p a g e _ p a r m s . m a r g i n . f o o t e r ,   " f o o t e r   m a r g i n " , 
 	   2 4 0 0 0 ,   0 , 
 	   p a g e _ p a r m s . l e n g t h   -   p a g e _ p a r m s . m a r g i n . t o p 
 	   -   p a g e _ p a r m s . m a r g i n . h e a d e r   -   p a g e _ p a r m s . m a r g i n . b o t t o m ,   v s c a l e s , 
 	   c o m p _ d v t . m i n _ l e a d ) ; 
             p a g e . p a r m s . m a r g i n . f o o t e r   =   p a g e _ p a r m s . m a r g i n . f o o t e r ; 
 
             i f   i n d e x   ( c t l _ l i n e ,   " . v m f " )   ^ =   1 
             t h e n   g o t o   v m b _ c t l ; 
 
             i f   ^ o p t i o n . g a l l e y _ o p t 
             t h e n   c a l l   c o m p _ u t i l _ $ s e t _ n e t _ p a g e   ( " 1 " b ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 7 8 ) : 	 	 	 / *   " . v m h "   =   v e r t i c a l - m a r g i n - h e a d e r   * / 
 v m h _ c t l : 
             c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( p a g e _ p a r m s . m a r g i n . h e a d e r ,   " h e a d e r   m a r g i n " , 
 	   2 4 0 0 0 ,   0 , 
 	   p a g e _ p a r m s . l e n g t h   -   p a g e _ p a r m s . m a r g i n . t o p 
 	   -   p a g e _ p a r m s . m a r g i n . f o o t e r   -   p a g e _ p a r m s . m a r g i n . b o t t o m ,   v s c a l e s , 
 	   c o m p _ d v t . m i n _ l e a d ) ; 
             p a g e . p a r m s . m a r g i n . h e a d e r   =   p a g e _ p a r m s . m a r g i n . h e a d e r ; 
 
             i f   ^ ( p a g e . h d r . h e a d e d   |   o p t i o n . g a l l e y _ o p t ) 
             t h e n 
                 d o ; 
 	 p a g e . h d r . h d s p c   =   p a g e . p a r m s . m a r g i n . t o p ; 
 	 	 	 	 / *   p r e s e t   s p a c e   t o   t o p   m a r g i n   * / 
 
 	 i f   p a g e . h d r . f r o n t p a g e 	 / *   i f   a   h e a d e d   o d d   p a g e   * / 
 	 t h e n   i f   s h a r e d . o p h d r p t r   ^ =   n u l l   ( ) 
 	           t h e n   i f   s h a r e d . o p h d r p t r   - >   h f c b l k . h d r . c o u n t   ^ =   0 
 	 	 t h e n   p a g e . h d r . h d s p c   =   0 ; 
 	 	 e l s e   ; 
 	           e l s e   ; 	 	 / * * / 
 	 	 	 	 / *   o r   a   h e a d e d   e v e n   p a g e   * / 
 	 e l s e   i f   s h a r e d . e p h d r p t r   ^ =   n u l l   ( ) 
 	 t h e n   i f   s h a r e d . e p h d r p t r   - >   h f c b l k . h d r . c o u n t   ^ =   0 
 	           t h e n   p a g e . h d r . h d s p c   =   0 ; 
 	 p a g e . h d r . h d s p c   =   p a g e . h d r . h d s p c   +   p a g e . p a r m s . m a r g i n . h e a d e r ; 
                 e n d ; 
             i f   i n d e x   ( c t l _ l i n e ,   " . v m h " )   ^ =   1 
             t h e n   g o t o   v m f _ c t l ; 
 
             i f   ^ o p t i o n . g a l l e y _ o p t 
             t h e n   c a l l   c o m p _ u t i l _ $ s e t _ n e t _ p a g e   ( " 1 " b ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 7 9 ) : 	 	 	 / *   " . v m t "   =   v e r t i c a l - m a r g i n - t o p   * / 
 v m t _ c t l : 
             c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( p a g e _ p a r m s . m a r g i n . t o p ,   " t o p   m a r g i n " ,   4 8 0 0 0 , 
 	   c o m p _ d v t . v m t _ m i n , 
 	   p a g e _ p a r m s . l e n g t h   -   p a g e _ p a r m s . m a r g i n . h e a d e r 
 	   -   p a g e _ p a r m s . m a r g i n . f o o t e r   -   p a g e _ p a r m s . m a r g i n . b o t t o m ,   v s c a l e s , 
 	   c o m p _ d v t . m i n _ l e a d ) ; 
             p a g e . p a r m s . m a r g i n . t o p   =   p a g e _ p a r m s . m a r g i n . t o p ; 
 
             i f   ^ ( p a g e . h d r . h e a d e d   |   o p t i o n . g a l l e y _ o p t ) 
             t h e n 
                 d o ; 
 	 p a g e . h d r . h d s p c   =   p a g e _ p a r m s . m a r g i n . t o p ; 
 
 	 i f   p a g e . h d r . f r o n t p a g e 	 / *   i f   a   h e a d e d   o d d   p a g e   * / 
 	 t h e n   i f   s h a r e d . o p h d r p t r   ^ =   n u l l   ( ) 
 	           t h e n   i f   s h a r e d . o p h d r p t r   - >   h f c b l k . h d r . c o u n t   ^ =   0 
 	 	 t h e n   p a g e . h d r . h d s p c   =   0 ; 
 	 	 e l s e   ; 
 	           e l s e   ; 	 	 / * * / 
 	 	 	 	 / *   o r   a   h e a d e d   e v e n   p a g e   * / 
 	 e l s e   i f   s h a r e d . e p h d r p t r   ^ =   n u l l   ( ) 
 	 t h e n   i f   s h a r e d . e p h d r p t r   - >   h f c b l k . h d r . c o u n t   ^ =   0 
 	           t h e n   p a g e . h d r . h d s p c   =   0 ; 
 
 	 p a g e . h d r . h d s p c   =   p a g e . h d r . h d s p c   +   p a g e . p a r m s . m a r g i n . h e a d e r ; 
                 e n d ; 
 
             i f   i n d e x   ( c t l _ l i n e ,   " . v m t " )   ^ =   1 
             t h e n   g o t o   v m h _ c t l ; 
 
             i f   ^ o p t i o n . g a l l e y _ o p t 
             t h e n   c a l l   c o m p _ u t i l _ $ s e t _ n e t _ p a g e   ( " 1 " b ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 8 0 ) : 	 	 	 / *   " . v r u l "   =   v e r t i c a l - r u l e   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 8 1 ) : 	 	 	 / *   " . w i "   =   w i d o w   * / 
             g o t o   w i t _ c t l ; 
 
 c t l _   ( 1 8 2 ) : 	 	 	 / *   " . w i f "   =   w i d o w - f o o t n o t e s   * / 
             c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( s h a r e d . w i d o w _ f o o t ,   " f o o t n o t e   w i d o w " ,   1 ,   0 ,   - 1 , 
 	   u n s c a l e d ,   1 ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 8 3 ) : 	 	 	 / *   " . w i t "   =   w i d o w - t e x t   * / 
 w i t _ c t l : 
             c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( s h a r e d . w i d o w _ s i z e ,   " t e x t   w i d o w " ,   2 ,   0 ,   - 1 , 
 	   u n s c a l e d ,   1 ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 8 4 ) : 	 	 	 / *   " . w r f "   =   w r i t e - f o r m a t t e d   -   N O T   I M P L E M E N T E D   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 8 5 ) : 	 	 	 / *   " . w r o "   =   w r i t e - o r d e r   -   N O T   I M P L E M E N T E D   * / 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 8 6 ) : 	 	 	 / *   " . w r t "   =   w r i t e - t e x t   * / 
             d c l   b i t s 	           f i x e d ; 	 / *   b i t c o u n t   o f   a u x   w r i t e   f i l e   * / 
 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
             t h e n 
                 d o ; 
 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " P a t h   m u s t   b e   g i v e n . " ,   a d d r   ( c t l . i n f o ) , 
 	           c t l _ l i n e ) ; 
 	 g o t o   e n d _ c t l _ l o o p ; 
                 e n d ; 
 
             c a l l   a u x _ f i l e   ( c t l _ l i n e ,   c t l . i n d e x ,   e r c d ) ; 
             i f   e r c d   ^ =   0 
             t h e n   g o t o   e n d _ c t l _ l o o p ; 
 
             i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
             t h e n   c a l l   i o x _ $ p u t _ c h a r s   ( a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) . i o c b _ p t r , 
 	             a d d r   ( N L ) ,   1 ,   e r c d ) ; 
 
             e l s e 
                 d o ; 
 	 a u x _ w r t _ b u f   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ; 
 
 	 i f   ( s u b s t r   ( a u x _ w r t _ b u f ,   1 ,   1 )   ^ =   " . " 
 	           |   s u b s t r   ( a u x _ w r t _ b u f ,   1 ,   3 )   =   " . . . " ) 
 	           &   i n d e x   ( a u x _ w r t _ b u f ,   " * " )   ^ =   0 
 	 t h e n   c a l l   c o m p _ u t i l _ $ e s c a p e   ( a u x _ w r t _ b u f ,   a d d r   ( c t l . i n f o ) ) ; 
 
 	 i f   s h a r e d . t r a n s . i n   ^ =   "   " 
 	 t h e n   a u x _ w r t _ b u f   =   c o m p _ u t i l _ $ t r a n s l a t e   ( a u x _ w r t _ b u f ) ; 
 	 a u x _ w r t _ b u f   =   a u x _ w r t _ b u f   | |   N L ; 
 	 c a l l   i o x _ $ p u t _ c h a r s   ( a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) . i o c b _ p t r , 
 	           a d d r e l   ( a d d r   ( a u x _ w r t _ b u f ) ,   1 ) ,   l e n g t h   ( a u x _ w r t _ b u f ) ,   e r c d ) ; 
                 e n d ; 
 
             i f   e r c d   ^ =   0 
             t h e n   c a l l   c o m p _ r e p o r t _   ( 2 ,   e r c d ,   " W r i t i n g   t o   a u x i l i a r y   w r i t e   f i l e . " , 
 	             a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 
             c a l l   a d j u s t _ b i t _ c o u n t _   ( ( a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) . d i r ) , 
 	   ( a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) . n a m e ) ,   " 1 " b ,   b i t s ,   e r c d ) ; 
 
             i f   e r c d   ^ =   0 
             t h e n   c a l l   c o m p _ r e p o r t _   ( 2 ,   e r c d , 
 	             " A d j u s t i n g   b i t c o u n t   o f   a u x i l i a r y "   | |   "   w r i t e   f i l e . " , 
 	             a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
             g o t o   e n d _ c t l _ l o o p ; 
 
 c t l _   ( 1 8 7 ) : 	 	 	 / *   " . w t "   =   w a i t   * / 
             i f   s h a r e d . b l k p t r   =   n u l l 
             t h e n 
                 d o ; 
 	 c t l _ l i n e   =   w a i t _ s i g n a l ; 
 	 t e x t _ a d d e d ,   c t l . D V c t l   =   " 1 " b ; 
 	 c t l . l i n e s p a c e   =   0 ; 
                 e n d ; 
 
             e l s e 
                 d o ; 
 	 i f   t e x t . i n p u t _ l i n e   ^ =   " " 
 	 t h e n 
 	     d o ; 
 	         c t l _ l i n e   =   w a i t _ s i g n a l ; 
 	         t e x t _ a d d e d ,   c t l . D V c t l   =   " 1 " b ; 
 	         c t l . l i n e s p a c e   =   0 ; 
 	     e n d ; 
 	 e l s e 
 	     d o ; 
 	         l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . c u r ; 
 	         t x t s t r p t r   =   l i n e _ a r e a . l i n p t r   ( l i n e _ a r e a . n d x )   - >   t x t l i n . p t r ; 
 	         t x t s t r   =   t x t s t r   | |   w a i t _ s i g n a l ; 
 	     e n d ; 
                 e n d ; 
 
 e n d _ c t l _ l o o p : 
         e n d   c t l _ l o o p ; 
 
 r e t u r n _ : 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( "           ( c t l s : ^ [   ^ a ^ ; ^ s ^ ] ^ [   t e x t   a d d e d = ^ d ^ ] ) " , 
 	         ( e x i t _ s t r   ^ =   " " ) ,   e x i t _ s t r ,   t e x t _ a d d e d ,   l e n g t h   ( c t l _ l i n e ) ) ; 
         r e t u r n ; 
 % p a g e ; 
 / *   R E C O R D / C H E C K   S T A T U S / O P E N   A U X I L I A R Y   F I L E S   * / 
 a u x _ f i l e : 
     p r o c   ( b u f f e r ,   s t a r t ,   c o d e ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   b u f f e r 	       c h a r   ( * )   v a r ; 	 / *   b u f f e r   c o n t a i n i n g   f i l e   n a m e   * / 
         d c l   s t a r t 	       f i x e d   b i n   ( 2 1 ) ; 	 / *   b u f f e r   p o s i t i o n   i n d e x   * / 
         d c l   c o d e 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   e r r o r   c o d e   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   a u x _ n a m e 	       c h a r   ( 3 2 ) ; 	 / *   n a m e   o f   a u x i l i a r y   w r i t e   f i l e   * / 
         d c l   a u x _ p a t h 	       c h a r   ( 2 0 0 ) ; 	 / *   p a t h   o f   a u x i l i a r y   w r i t e   f i l e   * / 
         d c l   p i c _ i 	       p i c   " 9 9 " ; 	 / *   p i c t u r e d   a u x _ f i l e _ f i l e   i n d e x   * / 
 	 	 	 	 / *   o p e n i n g   m o d e ,   s t r e a m - i n p u t - o u t p u t   * / 
         d c l   s i o 	       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 3 ) ; 
 
 / *   f o r   f u t u r e   e x t e n s i b l e   f i l e s 
 / * 	 d c l     s a f e t y _ s w i t c h   b i t   ( 1 )   a l i g n e d ; 
 / * 	 d c l     h c s _ $ g e t _ s a f e t y _ s w   e n t r y   ( c h a r   ( * ) a l i g n e d ,   c h a r   ( * ) a l i g n e d ,   b i t   ( 1 ) a l i g n e d ,   f i x e d   b i n   ( 3 5 ) ) ; 
 / * 	 	 	 c a l l   h c s _ $ g e t _ s a f e t y _ s w   ( d n ,   e n ,   s a f e t y _ s w i t c h ,   c o d e ) ;   * / 
 
         c o d e   =   0 ; 	 	 	 / * * / 
 	 	 	 	 / *   n e e d   f i l e   d a t a   s t r u c t u r e ?   * / 
         i f   s h a r e d . a u x _ f i l e _ d a t a _ p t r   =   n u l l   ( ) 
         t h e n 
             d o ; 
                 s h a r e d . a u x _ f i l e _ d a t a _ p t r   = 
 	       a l l o c a t e   ( c o n s t . l o c a l _ a r e a _ p t r ,   s i z e   ( a u x _ f i l e _ d a t a ) ) ; 
                 a u x _ f i l e _ d a t a . c o u n t   =   0 ; 
                 a u x _ f i l e _ d a t a . i o c b _ p t r   =   n u l l ; 
                 a u x _ f i l e _ d a t a . n a m e   =   " " ; 
                 a u x _ f i l e _ d a t a . d i r   =   " " ; 
                 a u x _ f i l e _ d a t a . p a t h   =   " " ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   e x t r a c t   f i l e   n a m e   * / 
         n a m e l   =   i n d e x   ( s u b s t r   ( b u f f e r ,   s t a r t ) ,   "   " )   -   1 ; 
         i f   n a m e l   >   0 	 	 	 / *   i f   d a t a   f o l l o w s   t h e   n a m e   * / 
         t h e n 
             d o ; 
                 a u x _ p a t h ,   a u x _ n a m e   =   s u b s t r   ( b u f f e r ,   s t a r t ,   n a m e l ) ; 
                 s t a r t   =   s t a r t   +   n a m e l   +   1 ; 
             e n d ; 
         e l s e 	 	 	 	 / *   o n l y   a   n a m e   * / 
             d o ; 
                 a u x _ p a t h ,   a u x _ n a m e   =   s u b s t r   ( b u f f e r ,   s t a r t ) ; 
                 s t a r t   =   l e n g t h   ( b u f f e r )   +   1 ; 
             e n d ; 
 
         d i r n a m e   =   " " ; 	 	 	 / *   c l e a n   u p   p o s s i b l e   g a r b a g e   * / 
         i f   s e a r c h   ( a u x _ p a t h ,   " < > " )   ^ =   0 	 / *   i f   a   p a t h   i s   g i v e n ,   e x p a n d   i t   * / 
         t h e n 
             d o ; 
                 c a l l   e x p a n d _ p a t h n a m e _   ( a u x _ p a t h ,   d i r n a m e ,   a u x _ n a m e ,   e r c d ) ; 
 
                 i f   e r c d   ^ =   0 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   e r c d , 
 	               " E x p a n d i n g   g i v e n   a u x i l i a r y   w r i t e   f i l e   p a t h n a m e . " , 
 	               a d d r   ( c t l . i n f o ) ,   ( b u f f e r ) ) ; 
 	     c o d e   =   1 ; 
 	     r e t u r n ; 
 	 e n d ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   s e a r c h   t a b l e   f o r   t h i s   f i l e   * / 
         i f   a u x _ f i l e _ d a t a . c o u n t   >   0 
         t h e n 
             d o   a u x _ f i l e _ i n d e x   =   1   t o   a u x _ f i l e _ d a t a . c o u n t 
 	   w h i l e   ( a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) . n a m e   ^ =   a u x _ n a m e ) ; 
             e n d ; 
         e l s e   a u x _ f i l e _ i n d e x   =   1 ; 	 	 / * * / 
 	 	 	 	 / *   i f   t h i s   i s   a   n e w   o n e   * / 
         i f   a u x _ f i l e _ i n d e x   >   a u x _ f i l e _ d a t a . c o u n t 
         t h e n 
             d o ; 	 	 	 	 / *   c h e c k   f i l e   c o u n t   * / 
                 i f   a u x _ f i l e _ d a t a . c o u n t   =   h b o u n d   ( a u x _ f i l e _ d a t a . e n t r y ,   1 ) 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   0 ,   a d d r   ( c t l . i n f o ) ,   b u f f e r , 
 	               " M o r e   t h a t   ^ d   a u x i l i a r y   w r i t e   f i l e s . " , 
 	               h b o u n d   ( a u x _ f i l e _ d a t a . e n t r y ,   1 ) ) ; 
 	     c o d e   =   1 ; 
 	     r e t u r n ; 
 	 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   s e t   t h e   n a m e   * / 
                 a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) . n a m e   =   a u x _ n a m e ; 
 
                 i f   d i r n a m e   ^ =   " " 	 	 / *   i f   a   p a t h   w a s   g i v e n   * / 
                 t h e n   a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) . d i r   =   d i r n a m e ; 
                 e l s e   a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) . d i r   =   g e t _ w d i r _   ( ) ; 
 
                 a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) . p a t h   = 
 	       p a t h n a m e _   ( ( a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) . d i r ) , 
 	       ( a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) . n a m e ) ) ; 
 
                 p i c _ i   =   a u x _ f i l e _ i n d e x ; 
                 c a l l   i o x _ $ a t t a c h _ n a m e   ( " c o m p _ a u x _ f i l e _ "   | |   p i c _ i , 
 	       a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) . i o c b _ p t r , 
 	       " v f i l e _   "   | |   a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) . p a t h ,   n u l l   ( ) , 
 	       e r c d ) ; 
                 i f   e r c d   ^ =   0 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   e r c d ,   " A t t a c h i n g   a u x i l i a r y   w r i t e   f i l e . " , 
 	               a d d r   ( c t l . i n f o ) ,   ( b u f f e r ) ) ; 
 	     c o d e   =   1 ; 
 	     r e t u r n ; 
 	 e n d ; 
 
                 c a l l   i o x _ $ o p e n   ( a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) . i o c b _ p t r ,   s i o , 
 	       " 0 " b ,   e r c d ) ; 
                 i f   e r c d   ^ =   0 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   e r c d ,   " O p e n i n g   a u x i l i a r y   w r i t e   f i l e . " , 
 	               a d d r   ( c t l . i n f o ) ,   ( b u f f e r ) ) ; 
 	     c a l l   i o x _ $ d e t a c h _ i o c b   ( a u x _ f i l e _ d a t a . e n t r y   ( a u x _ f i l e _ i n d e x ) 
 	               . i o c b _ p t r ,   e r c d ) ; 
 	     c o d e   =   1 ; 
 	     r e t u r n ; 
 	 e n d ; 
 
                 a u x _ f i l e _ d a t a . c o u n t   =   a u x _ f i l e _ i n d e x ; 
 	 	 	 	 / *   n o w   w e   k n o w   o n e   m o r e   * / 
             e n d ; 
     e n d   a u x _ f i l e ; 
 % p a g e ; 
 p r o c e s s _ h w r d : 
     p r o c ; 
 
 / *   T h i s   p r o c e d u r e   a d d s   t h e   c u r r e n t   w o r d   t o   t h e   i n t e r n a l   h w r d   l i s t .     I t 
       f i r s t   p a r s e s   t h e   w o r d   f o r   h y p h e n a t i o n   a n d / o r   b r e a k   p o i n t s .     I f   t h e   w o r d 
       a l r e a d y   e x i s t s   i n   t h e   l i s t ,   i t   i s   r e p l a c e d   w i t h   t h e   c u r r e n t   d a t a   u n l e s s 
       t h e   f i r s t   c h a r a c t e r   i s   " ^ " .   I t   t h a t   c a s e ,   i t   i s   s i m p l y   r e m o v e d . 
 * / 
 
         d c l   b r k p o i n t s 	       b i t   ( 2 8 8 ) ; 	 / *   w o r d   b r e a k   p o i n t s   * / 
         d c l   d e l e t e 	       b i t   ( 1 ) ; 	 / *   1 =   d e l e t e   w o r d   * / 
         d c l   h p o i n t s 	       b i t   ( 2 8 8 ) ; 	 / *   h y p h e n a t i o n   p o i n t s   * / 
         d c l   k e y w r d 	       c h a r   ( 2 5 6 )   v a r y i n g ; 
         d c l   n e x t _ c h a r 	       c h a r   ( 1 ) ; 
         d c l   t r i g g e r 	       c h a r   ( 1 ) ; 
 
         i f   h w r d   =   " ^ " 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ s y n t a x _ e r r o r , 
 	       a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	       " N u l l   s p e c i a l   h y p h e n a t i o n   w o r d .   " " ^ a " " " ,   h w r d ) ; 
                 r e t u r n ; 
             e n d ; 
 
         k e y w r d   =   " " ; 
         b r k p o i n t s ,   h p o i n t s   =   " 0 " b ; 
 
         i f   i n d e x   ( h w r d ,   " ^ " )   =   1 	 	 / *   c h e c k   f o r   d e l e t e   o n l y   * / 
         t h e n 
             d o ; 
                 d e l e t e   =   " 1 " b ; 
                 h w r d   =   a f t e r   ( h w r d ,   " ^ " ) ; 
             e n d ; 
         e l s e   d e l e t e   =   " 0 " b ; 	 	 / * * / 
 	 	 	 	 / *   p a r s e   t h e   w o r d   * / 
         d o   j   =   1   b y   1   w h i l e   ( j   < =   l e n g t h   ( h w r d ) ) ; 
 	 	 	 	 / *   l o o k   f o r   a   t r i g g e r   * / 
             i   =   s e a r c h   ( s u b s t r   ( h w r d ,   j ) ,   " - ^ " )   -   1 ; 
             i f   i   =   - 1 
             t h e n   i   =   l e n g t h   ( h w r d )   -   j   +   1 ; 	 / * * / 
 	 	 	 	 / *   a d d   c h a r s   t o   k e y   * / 
             k e y w r d   =   k e y w r d   | |   s u b s t r   ( h w r d ,   j ,   i ) ; 
             j   =   j   +   i ; 	 	 	 / *   s t e p   o v e r   t h e m   * / 
 
             i f   j   < =   l e n g t h   ( h w r d ) 	 	 / *   s o m e t h i n g   l e f t   * / 
             t h e n 
                 d o ; 
 	 t r i g g e r   =   s u b s t r   ( h w r d ,   j ,   1 ) ; / *   g e t   t h e   t r i g g e r   * / 
 
 	 i f   j   <   l e n g t h   ( h w r d ) 	 / *   g e t   t h e   n e x t   c h a r a c t e r   * / 
 	 t h e n   n e x t _ c h a r   =   s u b s t r   ( h w r d ,   j   +   1 ,   1 ) ; 
 	 e l s e   n e x t _ c h a r   =   "   " ; 
 
 	 i f   t r i g g e r   =   " ^ " 	 	 / *   a   w o r d   b r e a k   p o i n t ?   * / 
 	 t h e n 
 	     d o ; 	 	 	 / *   d o e s   i t   f o l l o w   a   l i t e r a l   h y p h e n ?   * / 
 	         i f   s u b s t r   ( k e y w r d ,   l e n g t h   ( k e y w r d ) ,   1 )   =   " - " 
 	         t h e n   ; 	 	 / *   t h e n   i g n o r e   i t   * / 
 
 	         e l s e 
 	             d o ; 
 	                 s u b s t r   ( b r k p o i n t s ,   l e n g t h   ( k e y w r d ) ,   1 )   =   " 1 " b ; 
 	 	 	 	 / *   t r e a t   a   f o l l o w i n g   h y p h e n   a s   a   l i t e r a l   * / 
 	                 i f   n e x t _ c h a r   =   " - " 
 	                 t h e n   j   =   j   +   1 ; 
 	             e n d ; 
 	     e n d ; 
 
 	 e l s e 	 	 	 / *   h y p h e n a t i o n   p o i n t   * / 
 	     d o ; 
 	         i f   n e x t _ c h a r   ^ =   " = " 	 / *   m u s t   b e   a   h y p h e n a t i o n   p o i n t   * / 
 	         t h e n 
 	             d o ; 
 	                 i f   l e n g t h   ( k e y w r d )   =   0 
 	                 t h e n 
 	 	 d o ; 
 	 	     c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   0 ,   a d d r   ( c t l . i n f o ) , 
 	 	               c t l _ l i n e , 
 	 	               " H y p h e n a t i o n   p o i n t   p r e c e d e s   w o r d .   " 
 	 	               | |   " W o r d   i g n o r e d .   " " ^ a " " " ,   h w r d ) ; 
 	 	     r e t u r n ; 
 	 	 e n d ; 
 
 	                 i f   s u b s t r   ( k e y w r d ,   l e n g t h   ( k e y w r d ) ,   1 )   =   " - " 
 	                 t h e n 
 	 	 d o ; 
 	 	     c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   0 ,   a d d r   ( c t l . i n f o ) , 
 	 	               c t l _ l i n e , 
 	 	               " H y p h e n a t i o n   p o i n t   i m m e d i a t e l y   f o l l o w s   " 
 	 	               | |   " h y p h e n .   W o r d   i g n o r e d .   ^ a " ,   h w r d ) ; 
 	 	     r e t u r n ; 
 	 	 e n d ; 	 	 / * * / 
 	 	 	 	 / *   i n d i c a t e   h y p h e n a t i o n   p o i n t   * / 
 	                 s u b s t r   ( h p o i n t s ,   l e n g t h   ( k e y w r d ) ,   1 )   =   " 1 " b ; 
 	             e n d ; 	 	 / * * / 
 	 	 	 	 / *   m u s t   b e   a   l i t e r a l   h y p h e n   * / 
 	         i f   n e x t _ c h a r   =   " = "   |   n e x t _ c h a r   =   " - " 
 	         t h e n 
 	             d o ; 	 	 	 / *   i n d i c a t e   l i t e r a l   h y p h e n   * / 
 	                 k e y w r d   =   k e y w r d   | |   " - " ; 
 	                 j   =   j   +   1 ; 	 	 / *   t o   s k i p   o v e r   t w o   c h a r a c t e r   s e q u e n c e   * / 
 	             e n d ; 
 	     e n d ; 
                 e n d ; 
         e n d ; 	 	 	 	 / * * / 
 	 	 	 	 / *   l o o k   f o r   t h e   w o r d   * / 
         d o   i   =   1   t o   h w r d _ d a t a . c o u n t   w h i l e   ( h w r d _ d a t a . w o r d   ( i )   ^ =   k e y w r d ) ; 
         e n d ; 
 
         h w r d _ d a t a . w o r d   ( i )   =   " " ; 	 	 / *   e r a s e   i t   * / 
 
         i f   d e l e t e 	 	 	 / *   d e l e t e   o n l y ?   * / 
         t h e n   r e t u r n ; 	 	 	 / * * / 
 	 	 	 	 / *   a d d   t h e   w o r d   t o   t h e   l i s t   * / 
         h w r d _ d a t a . w o r d   ( i )   =   k e y w r d ; 
         h w r d _ d a t a . h p t s   ( i )   =   h p o i n t s ; 
         h w r d _ d a t a . b r k p t s   ( i )   =   b r k p o i n t s ; 
 
         i f   i   >   h w r d _ d a t a . c o u n t 
         t h e n   h w r d _ d a t a . c o u n t   =   i ; 
 
     e n d   p r o c e s s _ h w r d ; 
 % p a g e ; 
 s e t _ l a b e l : 
     p r o c ; 	 	 	 	 / *   R E C O R D   L A B E L   C O N T R O L   D A T A   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   t h i s _ l a b e l 	       c h a r   ( 3 2 ) ; 	 / *   l a b e l   f r o m   c o n t r o l   * / 
 	 	 	 	 / *   c h e c k   l a b e l   c o u n t   * / 
         i f   i n s e r t . l a b e l . c o u n t   =   h b o u n d   ( i n s e r t . l a b e l . v a l u e ,   1 ) 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " T o o   m a n y   l a b e l s . " ,   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) 
 	       ; 
                 r e t u r n ; 
             e n d ; 	 	 	 / *   e x t r a c t   t h e   g i v e n   l a b e l   * / 
         t h i s _ l a b e l   =   l t r i m   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ) ; 
 
         i f   t h i s _ l a b e l   =   " "   |   t h i s _ l a b e l   =   "   " 
 	 	 	 	 / *   i f   n u l l   o r   b l a n k   * / 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " M i s s i n g   l a b e l   n a m e . " ,   a d d r   ( c t l . i n f o ) , 
 	       c t l _ l i n e ) ; 
                 r e t u r n ; 
             e n d ; 
 
         i f   i n s e r t . l a b e l . c o u n t   >   0 	 	 / *   i f   a n y   l a b e l s   a r e   r e c o r d e d   . . .   * / 
         t h e n 
             d o ; 
                 j   =   i n d e x   ( 
 	       s u b s t r   ( a d d r   ( i n s e r t . l a b e l . v a l u e   ( 1 ) )   - >   l a b e l _ v a l u e _ s t r ,   1 , 
 	       3 2   *   i n s e r t . l a b e l . c o u n t ) ,   t h i s _ l a b e l ) ; 
                 i f   j   >   0 
                 t h e n   r e t u r n ; 	 	 / *   w e   a l r e a d y   h a v e   t h i s   o n e   * / 
             e n d ; 
 
         j ,   i n s e r t . l a b e l . c o u n t   =   i n s e r t . l a b e l . c o u n t   +   1 ; 
 	 	 	 	 / *   a   n e w   l a b e l   * / 
 
         i n s e r t . l a b e l . v a l u e   ( j )   =   t h i s _ l a b e l ; 
         i n s e r t . l a b e l . l i n e   ( j )   =   c t l . i n f o . l i n e n o ; 
         i n s e r t . l a b e l . p o s i t i o n   ( j )   = 
                   c a l l _ s t a c k . p t r   ( c a l l _ s t a c k . i n d e x )   - >   c a l l _ b o x . p o s n ; 
 
     e n d   s e t _ l a b e l ; 
 % p a g e ; 
 s h o w : 
     p r o c   ( d a t u m ,   s c a l e )   r e t u r n s   ( f i x e d   d e c   ( 1 1 ,   3 ) ) ; 
         d c l   d a t u m 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   s c a l e 	       f i x e d   b i n   ( 3 1 ) ; 
 
         r e t u r n   ( r o u n d   ( d e c   ( r o u n d   ( d i v i d e   ( d a t u m ,   s c a l e ,   3 1 ,   1 1 ) ,   1 0 ) ,   1 1 ,   4 ) ,   3 ) ) ; 
     e n d   s h o w ; 
 % p a g e ; 
 % i n c l u d e   c o m p _ a u x _ f i l e ; 
 % i n c l u d e   c o m p _ b r k t y p e s ; 
 % i n c l u d e   c o m p _ c o l u m n ; 
 % i n c l u d e   c o m p _ c t l _ i n d e x ; 
 % i n c l u d e   c o m p _ D C d a t a ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ f o n t ; 
 % i n c l u d e   c o m p _ f o o t n o t e s ; 
 % i n c l u d e   c o m p _ h w r d _ d a t a ; 
 % i n c l u d e   c o m p _ i n s e r t ; 
 % i n c l u d e   c o m p _ m e t a c o d e s ; 
 % i n c l u d e   c o m p _ o p t i o n ; 
 % i n c l u d e   c o m p _ p a g e ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t a b l e ; 
         d c l   1   s a v e _ i n f o 	       l i k e   t e x t _ e n t r y . i n f o ; 
 	 	 	 	 / *   t o   h o l d   i n f o   o f   . g o   l i n e   * / 
         d c l   1   h i t _ l i n e 	       a l i g n e d   l i k e   t e x t _ e n t r y ; 
 	 	 	 	 / *   t h e   h i t   l i n e   e n t r y   * / 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p _ d v t ; 
 / *   D I S O R D E R   D U E   T O   S Y M B O L   T A B L E   S I Z E   L I M I T   * / 
 % i n c l u d e   c o m p _ t r e e ; 
 % i n c l u d e   c o m p s t a t ; 
 % i n c l u d e   t r a n s l a t o r _ t e m p _ a l l o c ; 
 
     e n d   c o m p _ c t l s _ ; 
    
 
 
  
 	 	         c o m p _ e j e c t _ p a g e _ . p l 1                         0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 0 9 . 0               7 0 8 6 6     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   s u b r o u t i n e   t o   f i n i s h   a n d   e j e c t   t h e   c u r r e n t   p a g e   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ e j e c t _ p a g e _ : 
     p r o c ; 
 
 / *   P A R A M E T E R S   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   f o o t e r _ d e p t h       f i x e d   b i n   ( 3 1 ) ; 	 / *   d e p t h   o f   f i r s t   f o o t e r   l i n e   * / 
 	 	 	 	 / *   c o p y   o f   p a g e   f o o t e r   p o i n t e r   * / 
         d c l   ( i ,   j ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   1   l o c o l 	       a l i g n e d   l i k e   c o l   b a s e d   ( l o c o l p t r ) ; 
 	 	 	 	 / *   f o r   l o c a l   r e f e r e n c e   * / 
         d c l   l o c o l p t r 	       p t r ; 	 	 / *   f o r   l o c a l   r e f e r e n c e   * / 
         d c l   t m p l i n e 	       c h a r   ( 1 0 2 0 )   v a r ;   / *   f o r   h e a d e r   s y m b o l   r e p l a c e m e n t   * / 
 
         d c l   ( i n d e x ,   l e n g t h ,   m a x ,   m o d ,   n u l l ) 
 	 	       b u i l t i n ; 
         d c l   e n d _ o u t p u t 	       c o n d i t i o n ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " e j e c t _ p a g e :   ( ^ a   ^ [ f r o n t ^ ; b a c k ^ ] ^ [   b l a n k ^ ] " 
 	         | |   " ^ [   M O D   p g c = ^ a ^ ; ^ s ^ ]   d ^ f   u ^ f / ^ f ) " ,   p a g e . h d r . p a g e n o , 
 	         p a g e . h d r . f r o n t p a g e ,   p a g e . h d r . b l a n k p a g e ,   p a g e . h d r . m o d i f i e d , 
 	         p a g e . h d r . p g c _ s e l e c t ,   s h o w   ( p a g e . h d r . d e p t h ,   1 2 0 0 0 ) , 
 	         s h o w   ( p a g e . h d r . u s e d ,   1 2 0 0 0 ) ,   s h o w   ( p a g e . h d r . n e t ,   1 2 0 0 0 ) ) ; 
 
         i f   s h a r e d . f t n _ m o d e 	 	 / *   i f   b u i l d i n g   f o o t n o t e s   * / 
         t h e n   g o t o   r e t u r n _ ; 
 
         p a g e . h d r . c o l _ i n d e x   =   0 ; 	 	 / *   r e t u r n   t o   c o l u m n   0   * / 
         s h a r e d . c o l p t r   =   p a g e . c o l u m n _ p t r   ( 0 ) ; 
         s h a r e d . b l k p t r   =   c o l 0 . b l k p t r   ( 1 ) ; 	 / *   a n d   s e l e c t   p a g e   h e a d e r   * / 
 	 	 	 	 / *   r e p l a c e   h e a d e r   s y m b o l s   * / 
         d o   l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . f i r s t   r e p e a t   ( l i n e _ a r e a . n e x t ) 
                   w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
             d o   i   =   1   t o   l i n e _ a r e a . n d x ; 
                 t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( i ) ; 
                 t x t s t r p t r   =   t x t l i n . p t r ; 	 / *   d o e s   i t   h a v e   s y m b o l s   o r   e s c a p e s ?   * / 
                 i f   i n d e x   ( t x t s t r ,   s h a r e d . s y m _ d e l i m )   ^ =   0 
 	       |   ( ^ t x t l i n . a r t   &   i n d e x   ( t x t s t r ,   " * " )   ^ =   0 ) 
                 t h e n 
 	 d o ; 
 	     t m p l i n e   =   t x t s t r ; 	 	 / *   c o p y   t h e   t e x t   * / 
 	     i f   i n d e x   ( t m p l i n e ,   s h a r e d . s y m _ d e l i m )   ^ =   0 
 	     t h e n   c a l l   c o m p _ u s e _ r e f _   ( t m p l i n e ,   t x t l i n . a r t ,   " 1 " b , 
 	 	     a d d r   ( t x t l i n . i n f o ) ) ; 
 
 	     i f   i n d e x   ( t m p l i n e ,   " * " )   ^ =   0 
 	     t h e n   c a l l   c o m p _ u t i l _ $ e s c a p e   ( t m p l i n e ,   a d d r   ( t x t l i n . i n f o ) ) ; 
 
 	     c a l l   c o m p _ u t i l _ $ r e p l a c e _ t e x t   ( s h a r e d . b l k p t r , 
 	               ( t x t l i n . q u a d   ^ =   q u a d l   &   t x t l i n . q u a d   ^ =   j u s t ) ,   t x t l i n p t r , 
 	               a d d r   ( t m p l i n e ) ) ; 
 	 e n d ; 
             e n d ; 
         e n d ; 
 
         i f   p a g e . h d r . b l a n k p a g e 	 	 / *   b l a n k   p a g e ?   * / 
         t h e n   h f c b l k _ p t r   =   s h a r e d . b l a n k _ f o o t e r _ p t r ; 
         e l s e   i f   p a g e . h d r . f r o n t p a g e 	 / *   o d d   p a g e ?   * / 
         t h e n   h f c b l k _ p t r   =   s h a r e d . o p f t r p t r ; 
         e l s e   i f   ^ p a g e . h d r . f r o n t p a g e 	 / *   e v e n   p a g e ?   * / 
         t h e n   h f c b l k _ p t r   =   s h a r e d . e p f t r p t r ; 
 
         i f   h f c b l k _ p t r   ^ =   n u l l 	 	 / *   d o   t h e   p a g e   f o o t e r   * / 
         t h e n   i f   h f c b l k . h d r . u s e d   >   0 
                   t h e n 
 	   d o ; 
 	       f o o t e r _ d e p t h   = 
 	                 p a g e . p a r m s . l e n g t h   -   p a g e . p a r m s . m a r g i n . b o t t o m 
 	                 -   h f c b l k . h d r . u s e d   -   p a g e . p a r m s . i n i t _ p a g e _ d e p t h ; 
 
 	       i f   s h a r e d . b u g _ m o d e 
 	       t h e n   c a l l   i o a _   ( " ^ - ( f o o t e r   d e p t h = ^ f ) " ,   s h o w   ( f o o t e r _ d e p t h ,   1 2 0 0 0 ) ) 
 	 	       ; 
 
 	       i f   p a g e . h d r . a r t 	 	 / *   i f   p a g e   h e a d e r   s t a r t s   a r t w o r k ,   * / 
 	       t h e n 	 	 	 / *   e x t e n d   i t   a n d   a p p e n d   f o o t e r   * / 
 	           d o ; 
 	               s h a r e d . b l k p t r   =   c o l 0 . b l k p t r   ( 1 ) ; 
 	 	 	 	 / *   p u t   i n   r e a l   s p a c e   * / 
 	               c a l l   c o m p _ s p a c e _   ( f o o t e r _ d e p t h   -   t e x t . h d r . u s e d ,   s h a r e d . b l k p t r , 
 	 	     " 0 " b ,   " 1 " b ,   " 0 " b ,   " 1 " b ) ; 
 	 	 	 	 / *   b u i l d   t h e   f o o t e r   * / 
 	               c a l l   c o m p _ t i t l e _ b l o c k _   ( h f c b l k _ p t r ) ; 
 	 	 	 	 / *   f i l l   i n   p a g e   d e p t h   * / 
 	               p a g e . h d r . d e p t h ,   c o l 0 . h d r . d e p t h   =   0 ; 
 	               d o   l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . f i r s t 
 	 	     r e p e a t   ( l i n e _ a r e a . n e x t )   w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 	                   d o   i   =   1   t o   l i n e _ a r e a . n d x ; 
 	 	   t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( i ) ; 
 	 	   t x t s t r p t r   =   t x t l i n . p t r ; 
 	 	 	 	 / *   d o e s   i t   h a v e   s y m b o l s   o r   e s c a p e s ?   * / 
 	 	   i f   i n d e x   ( t x t s t r ,   s h a r e d . s y m _ d e l i m )   ^ =   0 
 	 	             |   ( ^ t x t l i n . a r t   &   i n d e x   ( t x t s t r ,   " * " )   ^ =   0 ) 
 	 	   t h e n 
 	 	       d o ; 
 	 	           t m p l i n e   =   t x t s t r ; 
 	 	 	 	 / *   c o p y   t h e   t e x t   * / 
 	 	           i f   i n d e x   ( t m p l i n e ,   s h a r e d . s y m _ d e l i m )   ^ =   0 
 	 	           t h e n   c a l l   c o m p _ u s e _ r e f _   ( t m p l i n e ,   t x t l i n . a r t ,   " 1 " b , 
 	 	 	           a d d r   ( t x t l i n . i n f o ) ) ; 
 
 	 	           i f   i n d e x   ( t m p l i n e ,   " * " )   ^ =   0 
 	 	           t h e n   c a l l   c o m p _ u t i l _ $ e s c a p e   ( t m p l i n e , 
 	 	 	           a d d r   ( t x t l i n . i n f o ) ) ; 
 
 	 	           c a l l   c o m p _ u t i l _ $ r e p l a c e _ t e x t   ( s h a r e d . b l k p t r , 
 	 	 	 ( t x t l i n . q u a d   ^ =   q u a d l   &   t x t l i n . q u a d   ^ =   j u s t ) , 
 	 	 	 t x t l i n p t r ,   a d d r   ( t m p l i n e ) ) ; 
 	 	       e n d ; 
 
 	 	   t x t l i n . d e p t h   =   p a g e . h d r . d e p t h ; 
 	 	   p a g e . h d r . d e p t h ,   c o l 0 . h d r . d e p t h   = 
 	 	             p a g e . h d r . d e p t h   +   t x t l i n . l i n e s p a c e ; 
 	                   e n d ; 
 	               e n d ; 
 
 	               i f   t e x t . h d r . a r t 
 	               t h e n   c a l l   c o m p _ a r t _   ( s h a r e d . b l k p t r ,   " 0 " b ) ; 
 	           e n d ; 
 
 	       e l s e 	 	 	 / *   c r e a t e   a   s e p a r a t e   f o o t e r   b l o c k   * / 
 	           d o ; 
 	               c a l l   c o m p _ u t i l _ $ g e t b l k   ( 0 ,   s h a r e d . b l k p t r ,   " p f " , 
 	 	     a d d r   ( h f c b l k . p a r m s ) ,   " 0 " b ) ; 
 	               t e x t . p a r m s . p a g e   =   " 1 " b ; 
 	               u n s p e c   ( t e x t . p a r m s . c b a r )   =   " 0 " b ; 
 	 	 	 	 / *   b u i l d   t h e   f o o t e r   * / 
 	               c a l l   c o m p _ t i t l e _ b l o c k _   ( h f c b l k _ p t r ) ; 
 / * * * * 	 	 	 	 / *   f i l l   i n   p a g e   d e p t h   * / 
 / * * * * 	               p a g e . h d r . d e p t h ,   c o l 0 . h d r . d e p t h   =   f o o t e r _ d e p t h   -   1 2 0 0 0 ; 
 / * * * * 	               d o   l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . f i r s t 
 / * * * * 	 	     r e p e a t   ( l i n e _ a r e a . n e x t )   w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 / * * * * 	                   d o   i   =   1   t o   l i n e _ a r e a . n d x ; 
 / * * * * 	 	   t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( i ) ; 
 / * * * * 	 	   t x t l i n . d e p t h   =   p a g e . h d r . d e p t h ; 
 / * * * * 	 	   p a g e . h d r . d e p t h ,   c o l 0 . h d r . d e p t h   = 
 / * * * * 	 	             p a g e . h d r . d e p t h   +   t x t l i n . l i n e s p a c e ; 
 / * * * * 	                   e n d ; 
 / * * * * 	               e n d ; 
 / * * * * 
 / * * * * 	               i f   t e x t . h d r . a r t 
 / * * * * 	               t h e n   c a l l   c o m p _ a r t _   ( s h a r e d . b l k p t r ,   " 0 " b ) ; * / 
 
 	               p a g e . h d r . d e p t h ,   c o l 0 . h d r . d e p t h   =   f o o t e r _ d e p t h ; 
 	               c a l l   c o m p _ b r e a k _   ( f o o t e r _ b r e a k ,   0 ) ; 
 	           e n d ; 
 	   e n d ; 
 
         c a l l   c o m p _ w r i t e _ p a g e _ ; 	 	 / *   w r i t e   t h e   p a g e   * / 
 
         d o   i   =   0   t o   p a g e . h d r . c o l _ c o u n t ; 	 / *   c l e a n   u p   a l l   t h e   c o l u m n s   * / 
             l o c o l p t r   =   p a g e . c o l u m n _ p t r   ( i ) ; 
             l o c o l . h d r   =   c o l h d r ; 	 	 / *   e r a s e   c o l u m n   h e a d e r   * / 
             l o c o l . h d r . n e t   =   p a g e . h d r . n e t   -   l o c o l . f t r u s d ; 
         e n d ; 
 
         p a g e . h d r . u s e d ,   p a g e . h d r . b a l u s d ,   p a g e . h d r . b a l d e p t h   =   0 ; 
 
         i f   s h a r e d . p a s s _ c o u n t e r   < =   1 	 / *   i f   a n   o u t p u t   p a s s   * / 
         t h e n 
             d o ; 
                 i f   s h a r e d . p r i n t _ f l a g 	 	 / *   i f   p a g e   w a s   p r i n t e d   * / 
                 t h e n 
 	 d o ; 	 	 	 / *   a n d   p a g e   i s   l a s t   o f   c u r r e n t   r a n g e   * / 
 	     i f   p a g e . h d r . p a g e n o   =   o p t i o n . p g l s t   ( o p t i o n . p g l s t n d x ) . t o 
 	     t h e n 
 	         d o ; 	 	 	 / *   p r i n t   f l a g   O F F   * / 
 	             s h a r e d . p r i n t _ f l a g   =   " 0 " b ; 
 	 	 	 	 / *   n e x t   l i s t   e n t r y   * / 
 	             o p t i o n . p g l s t n d x   =   o p t i o n . p g l s t n d x   +   1 ; 
 	         e n d ; 
 	 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i f   e n d   h a s n ' t   b e e n   s i g n a l l e d   * / 
                 i f   ^ s h a r e d . e n d _ o u t p u t   & 	 / *   i f   - t o   a n d   t h i s   i s   i t   * / 
 	 	 	 	 / *   o r   t h e   l a s t   g i v e n   - p a g e   * / 
 	       ( o p t i o n . p g l s t   ( 0 ) . t o   ^ =   " " 
 	       &   p a g e . h d r . p a g e n o   =   o p t i o n . p g l s t   ( 0 ) . t o ) 
 	       |   ( o p t i o n . p a g e s _ o p t 
 	       &   p a g e . h d r . p a g e n o   =   o p t i o n . p g l s t   ( o p t i o n . p g l s t c t ) . t o ) 
                 t h e n 
 	 d o ; 
 	     s h a r e d . e n d _ o u t p u t   =   " 1 " b ; 
 / * * * * 	     s i g n a l   e n d _ o u t p u t ; * / 
 	     g o t o   r e t u r n _ ; 
 	 e n d ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   c o u n t   t h e   p a g e   * / 
         s h a r e d . p a g e c o u n t   =   s h a r e d . p a g e c o u n t   +   1 ; 
 
         i f   p a g e . p a r m s . c o l s . c o u n t   >   0 	 / *   i f   m u l t i c o l u m n   * / 
         t h e n 	 	 	 	 / *   n e x t   p a g e   s t a r t s   i n   c o l u m n   1   * / 
             d o ; 
                 p a g e . h d r . c o l _ i n d e x   =   1 ; 
                 s h a r e d . c o l p t r   =   p a g e . c o l u m n _ p t r   ( 1 ) ; 
                 p a g e . h d r . c o l _ c o u n t   =   p a g e . p a r m s . c o l s . c o u n t ; 
             e n d ; 
 
         i f   s h a r e d . f t n _ r e s e t   =   " p a g e d " 	 / *   i f   f o o t n o t e s   a r e   p a g e d   * / 
         t h e n   s h a r e d . f t n r e f c t   =   1 ; 	 	 / *   r e s e t   t h e   c o u n t e r   * / 
 
 r e t u r n _ : 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( e j e c t _ p a g e )   ( ^ [ E N D ^ ; ^ a   ^ [ f r o n t ^ ; b a c k ^ ] ^ ] ) " , 
 	         s h a r e d . e n d _ o u t p u t ,   p a g e . h d r . p a g e n o ,   p a g e . h d r . f r o n t p a g e ) ; 
         p a g e . h d r . h e a d e d   =   " 0 " b ; 
 % p a g e ; 
 s h o w : 
     p r o c   ( v a l u e ,   s c a l e )   r e t u r n s   ( f i x e d   d e c   ( 1 1 ,   3 ) ) ; 
         d c l   v a l u e 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   s c a l e 	       f i x e d   b i n   ( 3 1 ) ; 
         r e t u r n   ( d e c   ( d i v i d e   ( v a l u e ,   s c a l e ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) ) ; 
     e n d   s h o w ; 
 % p a g e ; 
 % i n c l u d e   c o m p _ b r k t y p e s ; 
 % i n c l u d e   c o m p _ c o l u m n ; 
 % i n c l u d e   c o m p _ c t l _ i n d e x ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ f o o t n o t e s ; 
 % i n c l u d e   c o m p _ o p t i o n ; 
 % i n c l u d e   c o m p _ p a g e ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t a b l e ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p s t a t ; 
 
     e n d   c o m p _ e j e c t _ p a g e _ ; 
      
 
 
  
 	 	         c o m p _ e r r o r _ t a b l e _ . a l m                       1 1 / 0 5 / 8 6     1 5 4 6 . 4 r   w   1 1 / 0 4 / 8 6     1 0 3 8 . 8                 7 1 3 7     
 
 
 
 "   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 "   *                                                                                                                   * 
 "   *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 5   * 
 "   *                                                                                                                   * 
 "   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 	 i n c l u d e   	 e t _ m a c r o s 
 	 e t   	 c o m p _ e r r o r _ 
 " 
 "   W r i t t e n   b y   E d   W a l l m a n   -   0 4 / 1 9 / 8 3 . 
 "   M o d i f i e d : 
 
 e c   i n c o n s i s t e n t , i n c o n , 
 	 ( I n c o n s i s t e n t   f o r m a t t i n g   v a l u e s . ) 
 
 e c   l i m i t a t i o n , l i m i t , 
 	 ( P r o g r a m   l i m i t a t i o n . ) 
 
 e c   m i s s i n g _ d e l i m i t e r , n o d e l i m , 
 	 ( M i s s i n g   d e l i m i t e r . ) 
 
 e c   n o t _ n u m e r i c , n o t n u m , 
 	 ( N u m e r i c   v a l u e   e x p e c t e d . ) 
 
 e c   p r o g r a m _ e r r o r , p r o g e r r , 
 	 ( P r o g r a m   e r r o r . ) 
 
 e c   s y n t a x _ e r r o r , s y n e r r , 
 	 ( C o n t r o l   s y n t a x   e r r o r . ) 
 
 e c   u n k n o w n _ k e y w o r d , u n k k e y , 
 	 ( U n k n o w n   k e y w o r d . ) 
 
 e c   u s a g e _ e r r o r , u s e r r , 
 	 ( U s a g e   e r r o r . ) 
 
 	 e n d 
        
 
 
  
 	 	         c o m p _ e x p r _ e v a l _ . p l 1                           0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 0 9 . 1             3 7 1 6 5 5     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   s u b r o u t i n e   t o   e v a l u a t e   e x p r e s s i o n s .   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ e x p r _ e v a l _ : 
     p r o c   ( b u f f e r ,   s t a r t ,   i n f o _ p t r ,   n e e d t y p ,   r e s t y p ,   r e s l o g ,   r e s n u m ,   r e s s t r , 
               r e s _ a t t r ,   e r c d ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   b u f f e r 	       c h a r   ( * )   v a r ; 	 / *   I N   b u f f e r   c o n t a i n i n g   < e x p r >   * / 
         d c l   s t a r t 	       f i x e d   b i n   ( 2 1 ) ; 	 / *   I N / O U T   s t a r t i n g   c h a r   o f   < e x p r >   * / 
         d c l   i n f o _ p t r 	       p t r ; 	 	 / *   I N   i n f o   s t r u c t u r e   f o r   b u f f e r   * / 
         d c l   n e e d t y p 	       f i x e d   b i n ; 	 / *   I N   n e e d e d   t y p e   L O G / N U M / S T R   * / 
         d c l   r e s t y p 	       f i x e d   b i n ; 	 / *   O U T   r e s u l t   t y p e   L O G / N U M / S T R   * / 
         d c l   r e s l o g 	       b i t   ( 1 ) ; 	 / *   O U T   r e s u l t   v a l u e   f o r   L O G   * / 
         d c l   r e s n u m 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   O U T   r e s u l t   v a l u e   f o r   N U M   * / 
         d c l   r e s s t r 	       c h a r   ( * )   v a r ; 	 / *   O U T   r e s u l t   v a l u e   f o r   S T R   * / 
         d c l   r e s _ a t t r 	       b i t   ( 9 ) ; 	 / *   O U T   a t t r i b u t e s   o f   r e s u l t   v a l u e   * / 
         d c l   e r c d 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   e r r o r   c o d e   * / 
 
 / *   T h i s   i s   a n   a n o t a t e d   d e b u g   o u t p u t   f r o m   t h i s   p r o c e d u r e . 	 	               * / 
 / * 	 	 	         " o   > "   p u s h   o p e r a t o r 	 	               * / 
 / *         + - - - - - - - - - - - - - -   a c t i o n   f l a g   "   v > "   p u s h   o p e r a n d   o n t o   o p e r a t o r 	               * / 
 / *         | 	 	 	         " < o v "   p o p   o p e r a n d   a n d   o p e r a t o r 	               * / 
 / *         | 	 	 	         " <   v "   p o p   o p e r a n d   ( o p e r a t o r   r e m a i n s ) 	               * / 
 / *         |     + - - - - - - - - - - -   d e p t h   i n   s t a c k 	 	 	 	               * / 
 / *         |     |     + - - - - - - - -   t y p e   o f   o p e r a t i o n 	 	 	 	               * / 
 / *         |     |     |   + - - - - - -   o p e r a t o r   p r e c e d e n c e ,   1 ( l o w )   9 ( h i g h ) 	 	               * / 
 / *         |     |     |   |   + - - - -   o p e r a n d     t y p e   ( i f   p r e s e n t )   L o g i c a l ,   N u m e r i c ,   S t r i n g         * / 
 / *         |     |     |   |   |   + - -   o p e r a n d   v a l u e   ( i f   p r e s e n t ) 	 	 	               * / 
 / *         |     |     |   |   |   | 	 	 	 	 	 	               * / 
 / *         |     |     |   |   |   | 	 	 	 	 	 	               * / 
 / *                                     e x p r _ e v a l :   " " a " = " b "   " D E "   &   ( 4   *   ( 1   -   " 4 " ) )   >   5   &   1 + 2 1 "       * / 
 / *       o   >     1   < <   0 	           :   p u s h   b e g i n - e x p r   o p e r a t o r   a t   d e p t h   1   t o   i n i t i a l i z e   * / 
 / *         v >     1   < <   0   S   " a "       :   n e x t   u p   i s   a   s t r i n g ,   t h i s   o p e r a n d   i s   p u s h e d   a t         * / 
 / * 	 	           : 	 d e p t h   1 	 	 	 	               * / 
 / *       o   >     2   =     6 	           :   t h e   " = "   o p e r a t o r   i s   n e x t .   s i n c e   i t s   p r e c e d e n c e         * / 
 / * 	 	           : 	 ( 6 )   i s   h i g h e r   t h a n   t h a t   o f   " < < "   ( 0 ) ,   t h e   " = "       * / 
 / * 	 	           : 	 i s   p u s h e d   a t   d e p t h   2 	 	               * / 
 / *         v >     2   =     6   S   " b D E "   :   t h e   p a i r   o f   s t r i n g s   w h i c h   f o l l o w   a r e   c o n c a t e n a t e d   * / 
 / * 	 	           : 	 a n d   t r e a t e d   a s   a   s i n g l e   o p e r a n d   w h i c h   i s               * / 
 / * 	 	           : 	 p u s h e d   a t   d e p t h   2 	 	 	               * / 
 / * 	 	           :   n e x t   u p   i s   t h e   " & "   o p e r a t o r   w h i c h   h a s   p r e c e d e n c e     * / 
 / * 	 	           :   	 5   ( w h i c h   w i l l   b e   s e e n   i n   a   f e w   l i n e s ) .   S i n c e       * / 
 / * 	 	           : 	 t h i s   i s   l e s s   t h a n   t h e   6   w h i c h   i s   o n   t o p   o f           * / 
 / * 	 	           : 	 t h e   s t a c k ,   t h e   o p e r a t i o n   s t a c k e d   m u s t   b e   d o n e     * / 
 / * 	 	           :         b e f o r e   t h e   " & "   c a n   b e   p u s h e d . 	 	               * / 
 / *       < o v     2   =     6   S   " b D E "   :         T a k i n g   t o   o p e r a n d s   i n   t h e   o r d e r   1 - 2   a n d   t h e         * / 
 / *       <   v     1   < <   0   S   " a "       : 	 o p e r a t o r   a t   2 ,   w e   c a n   s e e   t h a t   t h e   s t a c k e d           * / 
 / * 	 	           :         o p e r a t i o n   i s :   " a " = " b D E " 	 	               * / 
 / *         v >     1   < <   0   L   F           :   T h e   r e s u l t   o f   t h i s   i s   a   l o g i c a l   F A L S E   ( 0 )   w h i c h       * / 
 / * 	 	           :         g e t s   p u s h e d   a t   d e p t h   1   t o   b e c o m e   t h e   o p e r a n d       * / 
 / * 	 	           :         a t   t h a t   l e v e l 	 	 	               * / 
 / *       o   >     2   &     5 	           :   N o w ,   t h e   p r e c e d e n c e   5   i s   h i g h e r   t h a n   t h e   s t a c k e d     * / 
 / * 	 	           :         p r e c e d e n c e   0 ,   s o   t h e   " & "   i s   p u s h e d   a t   d e p t h   2     * / 
 / *       o   >     3   (     1 	           :   T h e n   c o m e s   a   " ( "   o p e r a t o r .   T h i s   h a s   a   t a b u l a r           * / 
 / * 	 	           :         p r e c e d e n c e   o f   B ,   h i g h e r   t h a n   a n y   o t h e r .   S o   i t     * / 
 / * 	 	           :         i s   p u s h e d ,   b u t   w i t h   t h e   s h o w n   p r e c e d e n c e   o f   1     * / 
 / * 	 	           :         s o   t h a t   A N Y T H I N G   w i l l   p u s h   o n   t o p   o f   i t .               * / 
 / *         v >     3   (     1   N   4 .         :   T h e   n u m e r i c   " 4 "   w h i c h   i s   n e x t   i s   t h e n   p u s h e d   a t       * / 
 / * 	 	           :         d e p t h   3 	 	 	 	               * / 
 / *       o   >     4   *     8 	           :   T h e   " * "   o p e r a t o r   h a s   a   p r e c e d e n c e   o f   8 ,   h i g h e r         * / 
 / * 	 	           :         t h a n   t h e   s t a c k e d   1 ,   s o   i t   i s   s t a c k e d . 	               * / 
 / *       o   >     5   (     1 	           :   T h i s   " ( "   i s   a l s o   s t a c k e d   a t   t h e   n e x t   l e v e l .               * / 
 / *         v >     5   (     1   N   1 .         :   T h e   n u m e r i c   o p e r a n d   " 1 "   i s   s t a c k e d   a t   d e p t h   5           * / 
 / *       o   >     6   -     7 	           :   T h e   " - "   o p e r a t o r   i s   o f   h i g h e r   p r e c e d e n c e   t h a n   t h e   * / 
 / * 	 	           :         s t a c k e d   " ( "   s o   i t   g e t s   s t a c k e d ,   t o o . 	               * / 
 / *         v >     6   -     7   S   " 4 "       :   A   s t r i n g   o p e r a n d   " 4 "   i s   p r e s e n t   n e x t   a n d   i s   a l s o     * / 
 / * 	 	           :         s t a c k e d ,   a t   d e p t h   6 	 	 	               * / 
 / * 	 	           :   N e x t   i n   t h e   e x p r e s s i o n   i s   a   " ) " .   T h i s   h a s   a               * / 
 / * 	 	           :         t a b u l a t e d   p r e c e d e n c e   o f   /   ( w h i c h   i s   < 0 ) .   S i n c e   * / 
 / * 	 	           :         t h e   s t a c k e d   o p e r a t o r   i s   h i g h e r ,   i t   m u s t   b e           * / 
 / * 	 	           :         p e r f o r m e d   a t   t h i s   t i m e . 	 	               * / 
 / *       < o v     6   -     7   N   4 .         :   T h e   e x p r e s s i o n   t o   b e   e v a l u a t e d   i s   m a d e   u p   o f             * / 
 / *       <   v     5   (     1   N   1 .         :         o p e r a n d s   5 - 6   a n d   o p e r a t o r   6 .   N o t e   t h a t   o p e r a n d   * / 
 / * 	 	           :         6   h a s   b e e n   c o n v e r t e d   t o   n u m e r i c   a s   i s   n e e d e d       * / 
 / * 	 	           :         b y   t h e   " - "   o p e r a t o r .   T h e   e x p r e s s i o n   i s :   1 - 4         * / 
 / *         v >     5   (     1   N   - 3 .       :   T h e   r e s u l t ,   " - 3 " ,   t h e n   r e p l a c e s   t h e   e x p r e s s i o n   i n   * / 
 / * 	 	           :         t h e   s t a c k 	 	 	 	               * / 
 / *       < o v     5   (     1   N   - 3 .       :   T h e   " ( "   o p e r a t o r   o n   t o p   o f   t h e   s t a c k   i s   o f   h i g h e r   * / 
 / *       <   v     4   *     8 	           :         p r e c e d e n c e   t h a n   t h e   " ) "   p e n d i n g ,   s o   i t   i s   a l s o   * / 
 / * 	 	           :         d o n e .   O p e r a n d   4   i s   n u l l ,   b u t   " ( "   o n l y   w a n t s   1     * / 
 / * 	 	           :         s o   t h i s   i s   j u s t   f i n e .   T h e   a c t i o n   i s   j u s t   t o         * / 
 / * 	 	           :         c o p y   t h e   o p e r a n d   5 .     T h e   p e n d i n g   " ) "   o p e r a t o r     * / 
 / * 	 	           :         g e t s   u s e d   u p   i n   t h e   p r o c e s s . 	 	               * / 
 / *         v >     4   *     8   N   - 3 .       :   T h i s   r e s u l t   i s   p u s h e d   a t   d e p t h   4 	 	               * / 
 / *       < o v     4   *     8   N   - 3 .       :   A n o t h e r   " ) "   f o l l o w s ,   s o   a n o t h e r   e v a l u a t i o n   m u s t       * / 
 / *       <   v     3   (     1   N   4 .         :         g e t   d o n e .   T h i s   t i m e   t h e   e x p r   i n d i c a t e d   b y   t h e     * / 
 / * 	 	           :         s t a c k   i s :   4   *   - 3 	 	 	               * / 
 / *         v >     3   (     1   N   - 1 2 .     :   T h e   r e s u l t i n g   " - 1 2 "   g e t s   s t a c k e d   a s   d e p t h   3               * / 
 / *       < o v     3   (     1   N   - 1 2 .     :   T h e   e v a l u a t i o n   c o n t i n u e s   w i t h   t h e   " ( "   o p e r a t o r .       * / 
 / *       <   v     2   &     5 	           :         T h e   " - 1 2 "   i s   c o p i e d   o u t   a n d   t h e   " ) "   d r o p p e d         * / 
 / *         v >     2   &     5   N   - 1 2 .     :   A N D   i t   i s   p u s h e d   b a c k   a s   t h e   v a l u e   a t   d e p t h   2           * / 
 / *       o   >     3   >     6 	           :   T h e   n e x t   o p e r a t o r ,   " > " ,   i s   o f   h i g h e r   p r e c e d e n c e       * / 
 / * 	 	           :         t h a n   t h e   s t a c k e d   " & "   a n d   s o   i t   g e t s   s t a c k e d .       * / 
 / *         v >     3   >     6   N   5 .         :   T h e   n u m e r i c   " 5 "   g e t s   s t a c k e d   a t   d e p t h   3 	               * / 
 / *       < o v     3   >     6   N   5 .         :   T h e   " & "   o p e r a t o r   w h i c h   f o l l o w s   c a u s e s   a n   e x p r   t o     * / 
 / *       <   v     2   &     5   N   - 1 2 .     :         b e   e v a l u a t e d .   T h i s   i s   m a d e   u p   o f   o p e r a n d s   2 - 3     * / 
 / * 	 	           :         a n d   o p e r a t o r   3   a n d   i s :   - 1 2   >   5 	               * / 
 / *         v >     2   &     5   L   F           :   T h e   r e s u l t ,   F A L S E   ( 0 ) ,   i s   p u s h e d   b a c k   a t   d e p t h   2     * / 
 / *       < o v     2   &     5   L   F           :   T h e   " & "   p e n d i n g   i s   n o t   l e s s   t h a n   t h e   " & "   s t a c k e d .   * / 
 / *       <   v     1   < <   0   L   F           :         S o   a n o t h e r   e v a l u a t i o n   i s   d o n e ,   m a d e   u p   o f             * / 
 / * 	 	           :         o p e r a n d s   1 - 2   a n d   o p e r a t o r   2   a r e   u s e d .   T h i s   i s     * / 
 / * 	 	           :         t h e   e x p r e s s i o n :   0   &   0   ( B o t h   0 ' s   a r e   F A L S E )           * / 
 / *         v >     1   < <   0   L   F           :   T h i s   F A L S E   ( 0 )   r e s u l t   i s   p u t   b a c k   i n t o   t h e   s t a c k     * / 
 / *       o   >     2   &     5 	           :   N o w   t h e   o p e r a t o r   " & "   c a n   b e   p u s h e d 	               * / 
 / *         v >     2   &     5   N   1 .         :   T h e   n e x t   n u m e r i c   o p e r a n d   " 1 "   g e t s   p u s h e d   a t   d e p t h   * / 
 / * 	 	           :         2 	 	 	 	               * / 
 / *       o   >     3   +     7 	           :   T h e   " + "   o p e r a t o r   g e t s   p u s h e d   b e c a u s e   i t   i s   o f           * / 
 / * 	 	           :         h i g h e r   p r e c e d e n c e 	 	 	               * / 
 / *         v >     3   +     7   N   2 1 .       :   T h e   n u m e r i c   " 2 1 "   i s   a l s o   s t a c k e d ,   d e p t h   3 	               * / 
 / *       < o v     3   +     7   N   2 1 .       :   F i n a l l y   t h e   e n d - e x p r e s s i o n   i s   r e a c h e d .   T h i s   h a s       * / 
 / *       <   v     2   &     5   N   1 .         :         l o w e r   p r e c e d e n c e   t h a n   a l l   o t h e r   e n t i t i e s   a n d       * / 
 / * 	 	           :         s o   t h e   w h o l e   s t a c k   w i l l   b e   f l u s h e d .   F i r s t             * / 
 / * 	 	           :         1   +   2 1   i s   p u l l e d   f r o m   t h e   s t a c k   a n d   e v a l u a t e d     * / 
 / *         v >     2   &     5   N   2 2 .       :   T h i s   r e s u l t ,   " 2 2 "   i s   p u s h e d   b a c k . 	               * / 
 / *       < o v     2   &     5   L   T           :   T h e   e x p r e s s i o n   T R U E   ( - 1 )   &   F A L S E   ( 0 )   i s   p u l l e d         * / 
 / *       <   v     1   < <   0   L   F           :         f r o m   t h e   s t a c k   a n d   e v a l u a t e d .   N o t e   t h a t   b e f o r e   * / 
 / * 	 	           :         o p e r a n d   2   w a s   u s e d ,   i t   w a s   c o n v e r t e d   f r o m   a         * / 
 / * 	 	           :         n u m e r i c   2 2   i n t o   a   l o g i c a l   T R U E   ( - 1 ) . 	               * / 
 / *         v >     1   < <   0   L   F           :   T h i s   r e s u l t   F A L S E   ( 0 )   i s   p u s h e d   b a c k   o n   t h e   s t a c k   * / 
 / *             ( e x p r _ e v a l )   L   F     :   T h e   e v a l u a t i o n   i s   n o w   c o m p l e t e .   T h e   b o t t o m   o f   t h e   * / 
 / * 	 	           :         s t a c k   c o n t a i n s   t h e   r e s u l t   w i t h   e x p r _ e v a l               * / 
 / * 	 	           :         r e t u r n s   t o   t h e   c a l l e r . 	 	               * / 
 / * 	 	 	 	 	 	 	               * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   ( 
                 B o E 	       i n i t   ( 3 7 ) , 	 / *   < <   b e g i n   e x p r           * / 
                 D I G I T 	       i n i t   ( 1 1 ) , 	 / *   a l l   n u m e r i c   d i g i t s   * / 
                 E o E 	       i n i t   ( 3 8 ) , 	 / *   > >   e n d   e x p r   * / 
                 S T R I N G 	       i n i t   ( 1 3 ) 	 / *   s t r i n g s   * / 
                 ) 	 	       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t ) ; 
         d c l   b u f p o s 	       f i x e d   b i n   ( 2 1 ) ; 	 / *   b u f f e r   p o s i t i o n   * / 
         d c l   d e b u g 	       b i t   ( 1 ) ; 	 / *   l o c a l   d e b u g   c o n t r o l   * / 
         d c l   d e p t h 	       f i x e d   b i n ; 	 / *   s t a c k   d e p t h   * / 
         d c l   d e t a i l 	       b i t   ( 1 ) ; 	 / *   l o c a l   d e b u g   c o n t r o l   * / 
         d c l   f b 7 1 	       f i x e d   b i n   ( 7 1 ) ; 	 / *   f o r   m u l t i p l i c a t i o n   * / 
         d c l   1   f o n t _ r e f 	       a l i g n e d   l i k e   f n t s t k _ e n t r y ; 
         d c l   1   f u n 	       b a s e d   ( a d d r   ( F u n c R e s ) ) , 
 	 2   l e n 	       f i x e d   b i n   ( 3 5 ) , 
 	 2   c h r 	       ( 1 0 2 0 )   c h a r   ( 1 ) ; 
         d c l   F u n c R e s 	       c h a r   ( 1 0 2 0 )   v a r ;   / *   r e s u l t   d u r i n g   f u n c t i o n   w o r k             * / 
 / * * * *         d c l   h s c a l e s 	       ( 7 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 / * * * * 	 	       i n i t   ( 7 2 0 0 ,   6 0 0 0 ,   7 2 0 0 0 ,   2 8 3 4 . 6 5 ,   1 2 0 0 0 ,   1 0 0 0 ,   0 ) ; * / 
         d c l   ( i ,   j ,   k ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   m a x _ w i d t h 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   m i l l i p o i n t s 	 	               * / 
         d c l   m s g 	       c h a r   ( 6 4 )   v a r ; 	 / *   e r r o r   m e s s a g e s   * / 
 	 	 	 	 / *   k e y w o r d   f o r   n u m e r i c s   * / 
         d c l   n u m _ v a l _ k e y 	       c h a r   ( 1 2 )   v a r   i n i t   ( " " ) ; 
 
         d c l   1   o p s t k 	       ( 2 0 ) , 	 	 / *   o p e r a t i o n   s t a c k   * / 
 	 2   e , 	 	 	 / *   e n t r y   s t r u c t u r e   * / 
 	     3   t y p 	       f i x e d   b i n , 	 / *   t y p e   o f   o p e r a t i o n   * / 
 	     3   p r e c 	       c h a r   ( 1 ) , 	 / *   p r e c e d e n c e   t h e r e o f   * / 
 	     3   l o g _ v a l     b i t   ( 1 ) , 	 / *   l o g i c a l   v a l u e   * / 
 	     3   n u m _ v a l     f i x e d   b i n   ( 3 1 ) , 	 / *   n u m e r i c   v a l u e   a s s o c i a t e d   w i t h   * / 
 	 	 	 	 / *   o p e r a t i o n ,   u s u a l l y   t h e   v a l u e   * / 
 	 	 	 	 / *   r i g h t   a f t e r   i t   i n   t h e   s t a c k   * / 
 	     3   s t r _ v a l , 	 	 / *   p o i n t s   t o   s t r i n g   v a l u e   * / 
 	         4   ( o f s t ,   l e n ) 
 	 	       f i x e d   b i n , 	 / *   o f f s e t , l e n g t h   i n   s t r s   * / 
 	     3   v a l _ t y p     f i x e d   b i n ; 	 / *   v a l u e   t y p e   ( t y p e s   f o l l o w )   - -   * / 
 	 	 	 	 / *   n o t   p r e s e n t   * / 
         d c l   N O N E 	       f i x e d   b i n   i n t   s t a t i c   i n i t   ( 0 ) ; 
 	 	 	 	 / *   l o g i c a l   * / 
         d c l   L O G 	       f i x e d   b i n   i n t   s t a t i c   i n i t   ( 1 ) ; 
 	 	 	 	 / *   n u m e r i c   * / 
         d c l   N U M 	       f i x e d   b i n   i n t   s t a t i c   i n i t   ( 2 ) ; 
 	 	 	 	 / *   s t r i n g   * / 
         d c l   S T R 	       f i x e d   b i n   i n t   s t a t i c   i n i t   ( 3 ) ; 
 	 	 	 	 / *   v a r i o u s   o p s t k   e n t r i e s   * / 
         d c l   c u r o p _ p t r 	       p t r ; 	 	 / *   t h e   c u r r e n t   o p e r a t i o n   * / 
         d c l   1   c u r o p 	       l i k e   o p s t k . e   b a s e d   ( c u r o p _ p t r ) ; 
         d c l   p r v o p _ p t r 	       p t r ; 	 	 / *   t h e   p r e v i o u s   o p e r a t i o n   * / 
         d c l   1   p r v o p 	       l i k e   o p s t k . e   b a s e d   ( p r v o p _ p t r ) ; 
 
         d c l   O F F 	       b i t   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 0 " b ) ; 
         d c l   O N 	       b i t   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 1 " b ) ; 
         d c l   o p 1 	       c h a r   ( 3 ) ; 	 / *   o p e r a n d s   f o r   e r r o r   r e p o r t i n g             * / 
         d c l   o p 2 	       c h a r   ( 2 ) ; 	 / *   o p e r a n d s   f o r   e r r o r   r e p o r t i n g             * / 
         d c l   o p n d _ n e e d 	       c h a r   ( 1 ) ; 	 / *   n u m b e r   o f   o p e r a n d s   n e e d e d   * / 
         d c l   o p _ t y p 	       f i x e d   b i n ; 	 / *   o p e r a t o r   t y p e 	 	               * / 
         d c l   o p r e c 	       c h a r   ( 1 ) ; 	 / *   w o r k i n g   p r e c e d e n c e 	               * / 
         d c l   o t 	       f i x e d   b i n ; 	 / *   w o r k i n g   o p e r a n d   t y p e 	               * / 
         d c l   R t P 	       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 3 9 ) ; 
 	 	 	 	 / *   )     r i g h t   p a r e n         * / 
         d c l   s c a l e 	       ( 1 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( 1 0 0 0 ) ; 
         d c l   s t r s 	       c h a r   ( 1 0 0 0 0 ) ; 	 / *   p l a c e   t o   h o l d   t e m p o r a r y   s t r i n g s       * / 
         d c l   s t r s e 	       f i x e d   b i n ; 	 / *   f i r s t   l o c a t i o n   i n   s t r s   a v a i l a b l e     * / 
         d c l   s t r s u 	       f i x e d   b i n ; 	 / *   a m o u n t   o f   s t r s   a c t u a l l y   i n   u s e         * / 
         d c l   t e m p _ l o g 	       b i t   ( 1 ) ; 	 / *   t e m p o r a r y   l o g i c a l   v a l u e   * / 
         d c l   t e m p _ n u m 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   t e m p o r a r y   n u m e r i c   v a l u e   * / 
         d c l   t e m p _ s t r 	       c h a r   ( 3 0 0 0 )   v a r ;   / *   t e m p o r a r y   s t r i n g   v a l u e   * / 
         d c l   t e m p _ t y p 	       f i x e d   b i n ; 	 / *   t e m p o r a r y   v a l u e   t y p e   * / 
 / * * * *         d c l   v s c a l e s 	       ( 7 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 / * * * * 	 	       i n i t   ( 1 2 0 0 0 ,   9 0 0 0 ,   7 2 0 0 0 ,   2 8 3 4 . 6 5 ,   1 2 0 0 0 ,   1 0 0 0 ,   0 ) ; * / 
         d c l   w i d t h 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   m i l l i p o i n t s   * / 
 	 	 	 	 / *   f o r   m e a s u r i n g   * / 
         d c l   1   m e a s 1 	       a l i g n e d   l i k e   t e x t _ e n t r y . c u r ; 
         d c l   1   m e a s 2 	       a l i g n e d   l i k e   t e x t _ e n t r y . c u r ; 
 
         d c l   ( a d d r ,   b i t ,   b o o l ,   c o n v e r t ,   f i x e d ,   i n d e x ,   l e n g t h ,   m a x ,   m o d ,   n u l l , 
                 s e a r c h ,   s u b s t r ,   v e r i f y ) 
 	 	       b u i l t i n ; 
 
         d c l   c o m p _ e r r o r _ t a b l e _ $ u s a g e _ e r r o r 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 
 / *   p r o c e s s i n g   c o n t r o l   d a t a   * / 
 
 / *   T h e   d u p l i c a t i o n   o f   c h a r a c t e r s   i n   p r o c _ c t l . t y p e   i s   f o r   t h e   p u r p o s e   o f     * / 
 / *   h o l d i n g   a   p l a c e .     T h e   " ( = = _ " ,   f o r   e x a m p l e .     T h e   2 n d   =   c a n   n e v e r   f o u n d   b y   * / 
 / *   i n d e x . H o w e v e r ,   t h e   l o c a t i o n   i n   t h e   s t r i n g   o f   t h e   2 n d   o n e ,   1 7 ,   r e p r e s e n t s   * / 
 / *   t h e   " o p c o d e "   t o   m a t c h   t h e   " = "   o p e r a t o r . 	 	 	               * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T h e   a l g o r i t h m   w o r k s   i n   t h i s   f a s h i o n : 	 	 	 	               * / 
 / *   0 )   p u s h   a   b e g i n - e x p r e s s i o n   ( " < < " )   o n   t o   t h e   o p e r a t o r   s t a c k 	               * / 
 / *   1 )   m a k e   s u r e   t h e   X O R   o p e r a t o r   i s   c a n o n i c a l   i f   i t   i s   n e x t   u p 	               * / 
 / *         i f   n o   m o r e   d a t a ,   g e n e r a t e   e n d - e x p r e s s i o n   ( " > > " )   t o k e n 	 	               * / 
 / *         p i c k   u p   t h e   n e x t   c h a r   o f   i n p u t   a n d   i n d e x   f o r   i t   i n t o   p r o c _ c t l . t y p e .         * / 
 / *         I f   i t   i s   n o t   f o u n d ,   g o   c h e c k   f o r   a   b u i l t i n   f u n c t i o n . 	 	               * / 
 / *   2 )   p i c k   u p   f r o m   p r o c _ c t l . p r e c   t h e   c o r r e s p o n d i n g   p r e c e d e n c e 	               * / 
 / *   3 )   i f   t h e   p r e c e d e n c e   i s   " s " ,   t h e n   s k i p   t h e   t o k e n 	 	               * / 
 / *         i f   t h e   p r e c e d e n c e   i s   ' x ' ,   t h e n   l o o k   f o r   a n   ' = '   f o l l o w i n g .     T h i s   t h e n       * / 
 / *             t e l l s   i f   " ^ = "   " < = "   " > = "   i s   t h e r e   i n s t e a d   o f   j u s t   " ^ "   " < "   " > " . 	               * / 
 / *             a l s o   c h e c k s   f o r   " ^ | " 	 	 	 	 	               * / 
 / *         i f   t h e   p r e c e d e n c e   i s   " y " ,   t h e n   l o o k   f o r   " < B S P > _ "   f o l l o w i n g .     T h i s             * / 
 / *             d i f f e r e n t i a t e s   " = < B S P > _ "   f r o m   " = " 	 	 	               * / 
 / *   4 )   I f   t h e   t o k e n   f o u n d   i s   a n   o p e r a n d   o r   " ( " ,   t h e n   g o   p u s h   i t   o n   t h e   s t a c k     * / 
 / *   5 )   I f   t h e   t h e   p r e c e d e n c e   o f   t h e   n e w   t o k e n   ( o p e r a t o r )   i s   h i g h e r   t h a n   t h e       * / 
 / *         s t a c k e d   o n e ,   p u s h   t h e   o p e r a t o r   o n   t h e   s t a c k . 	 	               * / 
 / *   6 )   o t h e r w i s e ,   p r o c e s s   t h i n g s   o f f   t h e   s t a c k   u n t i l   a   p o i n t   i s   r e a c h e d   w h e r e   * / 
 / *         t h e   n e w   o p e r a t o r   I S   h i g h e r   t h a n   w h a t   i s   o n   t h e   s t a c k . 	 	               * / 
 / *         E a c h   o p e r a t o r   i s   c h e c k e d   t o   s e e   i f   t h e   n e e d e d   n u m b e r   o f   o p e r a n d s   i s         * / 
 / *         p r e s e n t   i n   t h e   s t a c k . 	 	 	 	 	               * / 
 / *                 A   " > > "   t o k e n   w i l l   c a u s e   e v e r y t h i n g   t o   b e   r e m o v e d   f r o m   t h e   s t a c k ,       * / 
 / *         a s   w i l l   a   " , " .     I f   a   " ) "   i s   e n c o u n t e r e d   w h i c h   d o e s   n o t   h a v e   a   m a t c h i n g   * / 
 / *         " ( "   i n   t h e   s t a c k ,   t h i s   i s   n o t   a n   e r r o r .     I t   i s   a s s u m e d   t h a t   t h e   c a l l e r   * / 
 / *         r e c o g n i z e d   t h e   l e a d i n g   " ( " ,   r e m o v e d   i t ,   a n d   e x p e c t s   t o   s e e   t h e 	               * / 
 / *         m a t c h i n g   " ) "   u p o n   r e t u r n .     " a b c " ( 1 , 2 )   i s   a n   e x a m p l e   o f   w h e n   t h i s               * / 
 / *         c a n   h a p p e n . 	 	 	 	 	 	               * / 
 / * 	 	 	 	 	 	 	               * / 
 / *   T h i s   i s   t h e   p r e c e d e n c e   a s s i g n e d   b y   p r o c _ c t l . p r e c : 	 	               * / 
 / *   /     " ) " , " } " ,   " , "   " > > "   ( e n d - e x p r e s s i o n ) 	 	 	               * / 
 / *                 A l l   f o u r   o f   t h e s e   m u s t   f l u s h   o u t   m u c h   f r o m   t h e   s t a c k . 	               * / 
 / *                 T h e   " ) "   m u s t   f i n d   a   m a t c h i n g   " ( "   a l r e a d y   i n   t h e   s t a c k . 	               * / 
 / *                 T h e   " > > "   w i l l   f i n d   a   m a t c h i n g   " < < "   a l r e a d y   i n   t h e   s t a c k . 	               * / 
 / *                 T h e   o t h e r   2   m u s t   N O T   f i n d   " ( "   i n   t h e   s t a c k . 	 	               * / 
 / *   0     " < < "   b e g i n - e x p r e s s i o n 	 	 	 	 	               * / 
 / *   1     ( U N U S E D ,   h o w e v e r ,   " ( "   i s   p u s h e d   a s   t h i s   v a l u e   s o   A N Y T H I N G   w i l l   p u s h   o n   * / 
 / *                 t o p   o f   i t . 	 	 	 	 	               * / 
 / *   2     n u m e r i c   v a l u e ,   a n y   o p e r a t o r   w i l l   p u s h   o n   t o p   o f   i t 	 	               * / 
 / *   3     " | " 	 	 	 	 	 	 	               * / 
 / *   4     " ^ | " ,   " = < B S P > _ " 	 	 	 	 	               * / 
 / *   5     " & " 
       6     " = " ,   " ^ = " ,   " < " ,   " < = " ,   " > " ,   " > = " 
       7     " + " ,   " - " 
       8     " * " ,   " / " ,   " \ " 
       9     " ^ " 
       B     " ( "   T h i s   i s   s o   i t   w i l l   p u s h   o n   t o p   o f   a n y t h i n g .     H o w e v e r ,   i t   g e t s   p u s h e d 
 	 a s   a   " 1 "   s o   t h a t   a n y t h i n g   e l s e   w i l l ,   i n   t u r n ,   p u s h   o n   t o p   o f   i t .   * / 
 / * * * *   f o r m a t :   o f f   * / 
 d c l   1   p r o c _ c t l 	       i n t   s t a t i c   o p t i o n s   ( c o n s t a n t ) , 
 / *   	 	         0 0 0 0 0 0 0 0 0 1 1 1 . 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 4 4 4 4   * / 
 / * 	 	         1 2 3 4 5 6 7 8 9 0 1 2 . 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3   * / 
       ( 2   t y p e               i n i t   ( " 0 1 2 3 4 5 6 7 8 9 . # " " T F ( = = _ ^ ^ ^ ^ < < < > > > + - * / \ & | < > ) , }   	 " ) , 
         2   p r e c               i n i t   ( " 2 2 2 2 2 2 2 2 2 2 2 2 " "     B y 6 4 x 9 6 4 x 6 6 x 6 6 7 7 8 8 8 5 3 0 / / / / s s " ) , 
         2   d s p l _ s f x       i n i t   ( "                   9     " "           =     = |     =     =               < >           " ) , 
         2   o p s _ n e e d       i n i t   ( "                         " "     1   2 2   1 2 2   2 2   2 2 3 3 2 2 2 2 2 0             " ) ) 
 	 	       c h a r   ( 4 3 ) ; 	 / *   t h i s   i s   a n   H T   - - - - - - - - - - ^   * / 
 / * * * *   f o r m a t :   o n   * / 
 
         r e s t y p   =   N O N E ; 
         r e s _ a t t r   =   " " b ; 
         e r c d   =   0 ; 
 
         d e b u g   =   s h a r e d . b u g _ m o d e   |   d b _ s w ; 	 / *   s e t   l o c a l   d e b u g   c o n t r o l   * / 
         d e t a i l   =   d e b u g   &   d t _ s w ; 
 
         i f   d e b u g 
         t h e n 
             d o ; 
                 c a l l   i o a _   ( " e x p r _ e v a l :   ( ^ d   ^ d )   ^ a   " ,   s t a r t ,   l e n g t h   ( b u f f e r ) , 
 	       c o m p _ u t i l _ $ d i s p l a y   ( b u f f e r ,   0 ,   " 0 " b ) ) ; 
             e n d ; 
 
         d e p t h   =   0 ; 	 	 	 / *   i n i t i a l i z e   t h e   o p e r a t i o n   s t a c k   * / 
         o p s t k . n u m _ v a l ,   o p s t k . t y p ,   o p s t k . v a l _ t y p ,   t e m p _ n u m   =   0 ; 
         o p s t k . p r e c   =   " " ; 
         o p s t k . l o g _ v a l ,   t e m p _ l o g   =   O F F ; 
         o p s t k . s t r _ v a l . o f s t   =   1 ; 
         o p s t k . s t r _ v a l . l e n   =   0 ; 
         s t r s e   =   1 ; 	 	 	 / *   i n i t i a l i z e   s t r s   a r e a   * / 
         s t r s u   =   0 ; 
 
         i f   s t a r t   >   l e n g t h   ( b u f f e r ) 	 / *   i f   n o   s t a r t i n g   i n d e x   * / 
         t h e n   g o t o   r e t u r n _ ; 
 
         o p _ t y p   =   B o E ; 	 	 	 / *   s t a r t   b y   p u s h i n g   b e g i n - e x p r e s s i o n   * / 
         o p r e c   =   s u b s t r   ( p r o c _ c t l . p r e c ,   o p _ t y p ,   1 ) ; 
         b u f p o s   =   s t a r t ; 
 
         i f   i n d e x   ( s u b s t r   ( b u f f e r ,   s t a r t ) ,   " { " )   ^ =   1 
         t h e n   s t a r t   =   s t a r t   -   1 ; 	 	 / *   m a k e   s u r e   f i r s t   c h a r   g e t s   u s e d         * / 
 
 p u s h _ o p _ t y p : 
         d e p t h   =   d e p t h   +   1 ; 
         c u r o p _ p t r   =   a d d r   ( o p s t k . e   ( d e p t h ) ) ; 
         i f   d e p t h   >   1 
         t h e n   p r v o p _ p t r   =   a d d r   ( o p s t k . e   ( d e p t h   -   1 ) ) ; 
         c u r o p . t y p   =   o p _ t y p ; 
         c u r o p . p r e c   =   o p r e c ; 
         c u r o p . v a l _ t y p   =   N O N E ; 	 	 / *   s h o w   N O   V A L U E   t h e r e   * / 
         c u r o p . n u m _ v a l ,   c u r o p . s t r _ v a l . l e n   =   0 ; 
         c u r o p . s t r _ v a l . o f s t   =   1 ; 
 
         i f   d e t a i l 
         t h e n   c a l l   d u m p e r   ( " o   > " ,   d e p t h ) ; 
 
 p a r s e _ l o o p : 
         b u f p o s ,   s t a r t   =   s t a r t   +   1 ; 
         i f   s t a r t   >   l e n g t h   ( b u f f e r ) 
         t h e n   o p _ t y p   =   E o E ; 	 	 / *   e n d - o f - e x p r e s s i o n   * / 
 
         e l s e 
             d o ; 	 	 	 	 / * * / 
 	 	 	 	 / *   m a k e   s u r e   X O R   h a s   c a n o n i c a l   f o r m   * / 
                 i f   l e n g t h   ( b u f f e r )   -   s t a r t   +   1   > =   3 
                 t h e n   i f   i n d e x   ( s u b s t r   ( b u f f e r ,   s t a r t ) ,   " _  = " )   =   1 
 	       t h e n   s u b s t r   ( b u f f e r ,   s t a r t ,   3 )   =   " =  _ " ; 
 	 	 	 	 / *   l o o k   u p   t y p e   o f   n e x t   c h a r 	               * / 
                 o p _ t y p   =   i n d e x   ( p r o c _ c t l . t y p e ,   s u b s t r   ( b u f f e r ,   s t a r t ,   1 ) ) ; 
                 i f   o p _ t y p   =   0 	 	 / *   n o t   a   k n o w n   t y p e 	               * / 
                 t h e n 
 	 d o ; 	 	 	 / *   t r y   k n o w n   f u n c t i o n s   * / 
 
 / *   M e a s u r e (   < s t r i n g - e x p r e s s i o n >   )   * / 
 	     i f   i n d e x   ( s u b s t r   ( b u f f e r ,   s t a r t ) ,   " M e a s u r e " )   =   1 
 	     t h e n 
 	         d o ; 
 	             b u f p o s ,   s t a r t   =   s t a r t   +   7 ; 
 	 	 	 	 / *   s t e p   o v e r   f u n c t i o n   n a m e   * / 
 	 	 	 	 / *   t h e r e   m u s t   b e   a n   o p e n i n g   p a r e n   * / 
 	             i f   s u b s t r   ( b u f f e r ,   s t a r t ,   1 )   ^ =   " ( " 
 	             t h e n 
 	                 d o ; 
 	 	 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ u s a g e _ e r r o r , 
 	 	           i n f o _ p t r ,   b u f f e r , 
 	 	           " M i s s i n g   l e f t   p a r e n t h e s i s   f o r   M e a s u r e " ) ; 
 	 	 g o t o   e r r _ r e t u r n ; 
 	                 e n d ; 
 	             s t a r t   =   s t a r t   +   1 ; 	 / *   s t e p   o v e r   t h e   p a r e n   * / 
 	 	 	 	 / *   t h e   s t r i n g   m u s t   b e   q u o t e d   * / 
 	             i f   s u b s t r   ( b u f f e r ,   s t a r t ,   1 )   ^ =   " " " " 
 	             t h e n 
 	                 d o ; 
 	 	 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ u s a g e _ e r r o r , 
 	 	           i n f o _ p t r ,   b u f f e r ,   " M i s s i n g   s t r i n g   v a l u e   f o r   M e a s u r e " ) ; 
 	 	 g o t o   e r r _ r e t u r n ; 
 	                 e n d ; 
 
 	             F u n c R e s   = 	 	 / *   e x t r a c t   t h e   g i v e n   s t r i n g   * / 
 	 	   c o m p _ e x t r _ s t r _   ( " 1 " b ,   b u f f e r ,   s t a r t ,   s t a r t ,   0 ,   i n f o _ p t r ) ; 
 	             i f   s t a r t   =   0 	 	 / *   s o m e t h i n g   w a s   w r o n g 	               * / 
 	             t h e n   g o t o   e r r _ r e t u r n ; 
 
 	             i f   l e n g t h   ( F u n c R e s )   =   0   / *   f o r   a   n u l l   s t r i n g   * / 
 	             t h e n   t e m p _ n u m   =   0 ; 
 
 	             e l s e 
 	                 d o ; 
 	 	 f o n t _ r e f   = 
 	 	           c u r r e n t _ p a r m s . f n t s t k 
 	 	           . e n t r y   ( c u r r e n t _ p a r m s . f n t s t k . i n d e x ) ; 
 	 	 u n s p e c   ( m e a s 1 )   =   " 0 " b ; 
 	 	 c a l l   c o m p _ m e a s u r e _   ( F u n c R e s ,   a d d r   ( f o n t _ r e f ) ,   " 0 " b ,   " 0 " b , 
 	 	           " 0 " b ,   p a g e _ p a r m s . m e a s u r e ,   a d d r   ( m e a s 1 ) ,   a d d r   ( m e a s 2 ) , 
 	 	           i n f o _ p t r ) ; 
 	 	 t e m p _ n u m   =   m e a s 1 . w i d t h   +   m e a s 1 . a v g ; 
 	                 e n d ; 	 	 / * * / 
 	 	 	 	 / *   t h e r e   m u s t   a l s o   b e   a   c l o s i n g   p a r e n   * / 
 	             i f   ( s u b s t r   ( b u f f e r ,   s t a r t ,   1 )   ^ =   " ) " ) 
 	             t h e n 
 	                 d o ; 
 	 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	           " M i s s i n g   r i g h t   p a r e n t h e s i s   f o r   M e a s u r e " ,   i n f o _ p t r , 
 	 	           b u f f e r ) ; 
 	 	 g o t o   e r r _ r e t u r n ; 
 	                 e n d ; 
 
 	             t e m p _ t y p   =   N U M ; 
 	             n u m _ v a l _ k e y   =   " h s p a c e " ; 
 	             r e s _ a t t r   =   n u m e r i c _ a t t r   |   h s p a c e _ a t t r ; 
 	             g o t o   p u s h _ t e m p ; 
 	         e n d ; 	 	 	 / * * / 
 
 / *   W o r d l (   < s t r i n g - e x p r e s s i o n >   ,   < n u m e r i c - e x p r e s s i o n >   )   * / 
 	     e l s e   i f   i n d e x   ( s u b s t r   ( b u f f e r ,   s t a r t ) ,   " W o r d l " )   =   1 
 	     t h e n 
 	         d o ; 	 	 	 / *   s t e p   o v e r   f u n c t i o n   n a m e   * / 
 	             b u f p o s ,   s t a r t   =   s t a r t   +   5 ; 
 	 	 	 	 / *   m u s t   s t a r t   w i t h   a   l e f t   p a r e n   * / 
 	             i f   s u b s t r   ( b u f f e r ,   s t a r t ,   1 )   ^ =   " ( " 
 	             t h e n 
 	                 d o ; 
 	 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	           " M i s s i n g   l e f t   p a r e n t h e s i s   f o r   W o r d l " ,   i n f o _ p t r , 
 	 	           b u f f e r ) ; 
 	 	 g o t o   e r r _ r e t u r n ; 
 	                 e n d ; 	 	 / *   s t e p   o v e r   t h e   p a r e n   * / 
 	             s t a r t   =   s t a r t   +   1 ; 	 / * * / 
 	 	 	 	 / *   m u s t   b e   a   q u o t e d   s t r i n g   * / 
 	             i f   s u b s t r   ( b u f f e r ,   s t a r t ,   1 )   ^ =   " " " " 
 	             t h e n 
 	                 d o ; 
 	 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " M i s s i n g   s t r i n g   v a l u e   f o r   W o r d l " , 
 	 	           i n f o _ p t r ,   b u f f e r ) ; 
 	 	 g o t o   e r r _ r e t u r n ; 
 	                 e n d ; 
 
 	             F u n c R e s   = 
 	 	   c o m p _ e x t r _ s t r _   ( " 1 " b ,   b u f f e r ,   s t a r t ,   s t a r t ,   0 ,   i n f o _ p t r ) ; 
 	             i f   s t a r t   =   0 	 	 / *   s o m e t h i n g   w a s   w r o n g   * / 
 	             t h e n   g o t o   e r r _ r e t u r n ; 
 
 	             i f   s u b s t r   ( b u f f e r ,   s t a r t ,   1 )   ^ =   " , " 
 	             t h e n 
 	                 d o ; 
 s y n t a x _ e r r o r : 
 	 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " M i s s i n g   c o m m a   i n   W o r d l " , 
 	 	           i n f o _ p t r ,   b u f f e r ) ; 
 	 	 g o t o   e r r _ r e t u r n ; 
 	                 e n d ; 
 
 	             s t a r t   =   s t a r t   +   1 ; 	 / *   s k i p   o v e r   t h e   c o m m a   * / 
 	             c a l l   c o m p _ e x p r _ e v a l _   ( b u f f e r ,   s t a r t ,   i n f o _ p t r ,   N U M ,   0 ,   " 0 " b , 
 	 	   t e m p _ n u m ,   " " ,   r e s _ a t t r ,   e r c d ) ; 
 	             i f   e r c d   ^ =   0 	 	 / *   s o m e t h i n g   w a s   w r o n g   * / 
 	             t h e n   g o t o   e r r _ r e t u r n ; 
 
 	             i f   t e m p _ n u m   < =   0 
 	             t h e n 
 	                 d o ; 
 	 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " I m p r o p e r   v a l u e   f o r   W o r d l " , 
 	 	           i n f o _ p t r ,   b u f f e r ) ; 
 	 	 g o t o   e r r _ r e t u r n ; 
 	                 e n d ; 	 	 / * * / 
 	 	 	 	 / *   i f   n o t   h o r i z   s p a c e ,   c o n v e r t   i t   * / 
 	             i f   ( r e s _ a t t r   &   h s p a c e _ a t t r )   ^ =   h s p a c e _ a t t r 
 	             t h e n 
 	                 d o ; 
 	 	 i f   r e s _ a t t r   &   u n s c a l e d _ a t t r 
 	 	 t h e n   t e m p _ n u m   =   7 2 0 0   *   d i v i d e   ( t e m p _ n u m ,   1 0 0 0 ,   3 1 ,   1 0 ) ; 
 	 	 e l s e   i f   r e s _ a t t r   &   v s p a c e _ a t t r 
 	 	 t h e n   t e m p _ n u m   =   7 2 0 0   *   d i v i d e   ( t e m p _ n u m ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ; 
 	 	 e l s e   t e m p _ n u m   =   7 2 0 0   *   t e m p _ n u m ; 
 	                 e n d ; 
 
 	             i f   l e n g t h   ( F u n c R e s )   =   0   / *   n o t h i n g   t o   m e a s u r e   * / 
 	             t h e n   t e m p _ n u m   =   0 ; 
 
 	             e l s e 
 	                 d o ; 
 	 	 f o n t _ r e f   = 
 	 	           c u r r e n t _ p a r m s . f n t s t k 
 	 	           . e n t r y   ( c u r r e n t _ p a r m s . f n t s t k . i n d e x ) ; 
 	 	 u n s p e c   ( m e a s 1 )   =   " 0 " b ; 
 	 	 c a l l   c o m p _ m e a s u r e _   ( F u n c R e s ,   a d d r   ( f o n t _ r e f ) ,   " 1 " b ,   " 0 " b , 
 	 	           " 0 " b ,   t e m p _ n u m ,   a d d r   ( m e a s 1 ) ,   a d d r   ( m e a s 2 ) ,   i n f o _ p t r ) ; 
 	 	 t e m p _ n u m   =   1 0 0 0   *   m e a s 1 . c h r c t ; 
 	                 e n d ; 
 	             t e m p _ t y p   =   N U M ; 
 	             g o t o   p u s h _ t e m p ; 	 / *   S U C C E S S   * / 
 	         e n d ; 
 
 	     e l s e   g o t o   u n k _ f u n c ; 	 / *   t r e a t   a s   a   d e c i m a l   * / 
 	 e n d ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   g e t   c o r r e s p o n d i n g   p r e c e d e n c e     * / 
         o p r e c   =   s u b s t r   ( p r o c _ c t l . p r e c ,   o p _ t y p ,   1 ) ; 
 
 / *             c a l l 	 	 	 / *   q u a n t u m   l e v e l   d e b u g g i n g   * / 
 / *                   i o a _   ( " ^ - ^ i : ^ i   " " ^ 1 a " "   ^ i   ( ^ 1 a ) " ,   s t a r t ,   l e n g t h   ( b u f f e r ) , 
 / *                   s u b s t r   ( b u f f e r ,   s t a r t ,   1 ) ,   o p _ t y p ,   o p r e c ) ; * / 
 
         i f   o p r e c   =   " s " 	 	 	 / *   " s k i p "   c h a r a c t e r   * / 
         t h e n   g o t o   p a r s e _ l o o p ; 
 
         i f   o p r e c   =   " x " 	 	 	 / *   t y p e   " x " ,   h a n d l e s   ^ =   < =   > =   * / 
         t h e n 
             d o ; 
                 i f   ( s u b s t r   ( b u f f e r ,   s t a r t   +   1 ,   1 )   =   " = " ) 
                 t h e n 
 	 d o ; 
 	     s t a r t   =   s t a r t   +   1 ; 
 	     o p _ t y p   =   o p _ t y p   +   1 ; 
 	 e n d ; 
                 e l s e   i f   i n d e x   ( s u b s t r   ( b u f f e r ,   s t a r t ) ,   " ^ | " )   =   1 
                 t h e n 
 	 d o ; 
 	     s t a r t   =   s t a r t   +   1 ; 
 	     o p _ t y p   =   o p _ t y p   +   2 ; 
 	 e n d ; 
                 o p _ t y p   =   o p _ t y p   +   1 ; 
             e n d ; 
 
         e l s e   i f   o p r e c   =   " y " 	 	 / *   t y p e   " y " ,   h a n d l e s   E X O R             * / 
         t h e n 
             d o ; 
                 i f   i n d e x   ( s u b s t r   ( b u f f e r ,   s t a r t ) ,   " =  _ " )   =   1 
                 t h e n 
 	 d o ; 
 	     s t a r t   =   s t a r t   +   2 ; 
 	     o p _ t y p   =   o p _ t y p   +   2 ; 
 	 e n d ; 
                 e l s e   o p _ t y p   =   o p _ t y p   +   1 ; 
             e n d ; 
 
 u n k _ f u n c : 
         i f   o p _ t y p   <   D I G I T 
         t h e n 
             d o ; 
                 i f   s e a r c h   ( s u b s t r   ( b u f f e r ,   s t a r t ) ,   " T F " )   =   1 
                 t h e n   o p _ t y p   =   S T R I N G ; 
                 e l s e   o p _ t y p   =   D I G I T ; 	 	 / *   a n y   d i g i t   g e t s   t y p e   D I G I T   * / 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i n   c a s e   i t   c h a n g e d             * / 
         o p r e c   =   s u b s t r   ( p r o c _ c t l . p r e c ,   o p _ t y p ,   1 ) ; 
 
 / *                 c a l l 
 / * 	 i o a _   ( " ^ 8 x @   ^ a ^ a " ,   s u b s t r   ( p r o c _ c t l . t y p e ,   o p _ t y p ,   1 ) , 
 / * 	 s u b s t r   ( p r o c _ c t l . d s p l _ s f x ,   o p _ t y p ,   1 ) ) ;   * / 
 
         i f   o p _ t y p   <   1 7 	 	 	 / *   t h e s e   n e e d   s p e c i a l   h a n d l i n g   * / 
         t h e n   g o t o   o p e r a n d   ( o p _ t y p ) ; 
 
 t r y _ a g a i n : 
         o t   =   c u r o p . t y p ; 	 	 	 / *   t h e   s t a c k e d   o p e r a n d   t y p e 	               * / 
         o p n d _ n e e d   =   s u b s t r   ( p r o c _ c t l . o p s _ n e e d ,   o t ,   1 ) ; 
 	 	 	 	 / *   g e t   o p e r a n d   c o u n t e r 	               * / 
 
         i f   ( o p r e c   >   c u r o p . p r e c ) 	 	 / *   i f   t h i s   h a s   g r e a t e r   p r e c e d e n c e         * / 
         t h e n 
             d o ; 	 	 	 	 / *   t h e n   i t   g o e s   i n   o n   t o p 	               * / 
                 i f   o p n d _ n e e d   =   " 2 " 	 	 / *   n e e d   2   o p e r a n d s 	 	               * / 
 	       &   o p s t k . v a l _ t y p   ( d e p t h   -   1 )   =   N O N E 
 	 	 	 	 / *     b u t   f i r s t   o n e   i s n t   t h e r e 	               * / 
                 t h e n 
 	 d o ; 
 	     m s g   =   " 1 s t   o p e r a n d   m i s s i n g .   " ; 
 	     o p 2   =   s u b s t r   ( p r o c _ c t l . t y p e ,   o p _ t y p ,   1 ) 
 	               | |   s u b s t r   ( p r o c _ c t l . d s p l _ s f x ,   o p _ t y p ,   1 ) ; 
 	     g o t o   p r t _ e r r 2 ; 
 	 e n d ; 
                 g o t o   p u s h _ o p _ t y p ; 
             e n d ; 
 
         i f   o p n d _ n e e d   =   " 1 " 	 	 / *   n e e d   1   o p e r a n d 	 	               * / 
         t h e n 
             d o ; 
                 i f   ( c u r o p . v a l _ t y p   =   N O N E ) 	 / *       N O T   T H E R E ! 	 	               * / 
                 t h e n 
 	 d o ; 
 	     m s g   =   " O p e r a n d   m i s s i n g .   " ; 
 	     g o t o   p r t _ e r r 1 ; 
 	 e n d ; 
 
                 i f   o p s t k . v a l _ t y p   ( d e p t h   -   1 )   ^ =   N O N E 
 	 	 	 	 / *   o r p h a n   o p e r a n d   i n   f r o n t 	               * / 
                 t h e n 
 	 d o ; 
 	     m s g   =   " U s e d   a s   b i n a r y   o p e r a t o r .   " ; 
 	     g o t o   p r t _ e r r 1 ; 
 	 e n d ; 
             e n d ; 
 
         e l s e   i f   o p n d _ n e e d   =   " 2 " 	 	 / *   n e e d   2   o p e r a n d s 	 	               * / 
         t h e n 
             d o ; 
                 i f   c u r o p . v a l _ t y p   =   N O N E 
                 t h e n 
 	 d o ; 
 	     m s g   =   " 2 n d   o p e r a n d   m i s s i n g .   " ; 
 c h e c k _ f o r _ u n a r y _ o p : 	 	 	 / *   w a i t   a   m i n u t e !   i s   i t   u n a r y ?               * / 
 	     i f   ( s u b s t r   ( p r o c _ c t l . o p s _ n e e d ,   o p _ t y p ,   1 )   =   " 3 " ) 
 	 	 	 	 / *   y e s   i t   i s 	               * / 
 	     t h e n 
 	         d o ; 
 	             o p r e c   =   " 9 " ; 	 	 / *   p r o m o t e   i t   a n d   p u s h   i t 	               * / 
 	             g o t o   p u s h _ o p _ t y p ; 
 	         e n d ; 
 p r t _ e r r 1 : 
 	     o p 2   =   " " ; 
 p r t _ e r r 2 : 
 	     o p 1   =   s u b s t r   ( p r o c _ c t l . t y p e ,   o t ,   1 ) 
 	               | |   s u b s t r   ( p r o c _ c t l . d s p l _ s f x ,   o t ,   1 ) ; 
 p r t _ e r r : 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   m s g   | |   o p 1   | |   o p 2 ,   i n f o _ p t r ,   b u f f e r ) ; 
 	     g o t o   e r r _ r e t u r n ; 
 	 e n d ; 
 
                 i f   o p s t k . v a l _ t y p   ( d e p t h   -   1 )   =   N O N E 
                 t h e n 
 	 d o ; 
 	     m s g   =   " 1 s t   o p e r a n d   m i s s i n g .   " ; 
 	     g o t o   p r t _ e r r 1 ; 
 	 e n d ; 
             e n d ; 
 
         e l s e   i f   o p n d _ n e e d   =   " 3 " 	 	 / *   e i t h e r   1   o r   2   o p e r a n d s 	               * / 
         t h e n 
             d o ; 
                 i f   c u r o p . v a l _ t y p   =   N O N E 	 / *   i f   o n l y   1   i t   m u s t   b e   A F T E R 	               * / 
                 t h e n 
 	 d o ; 
 	     m s g   =   " M i s s i n g   o p e r a n d .   " ; 
 	     g o t o   c h e c k _ f o r _ u n a r y _ o p ; 
 	 e n d ; 
             e n d ; 
 
         g o t o   t y p e   ( c u r o p . t y p ) ; 	 	 / *   w e   c a n   a c t u a l l y   d o   t h e   o p e r a t i o n     * / 
 
 o p e r a n d   ( 1 1 ) : 	 	 	 / *   d e c i m a l   v a l u e 	 	               * / 
         t e m p _ n u m   =   c o m p _ r e a d _ $ n u m b e r   ( b u f f e r ,   s c a l e ,   s t a r t ,   s t a r t ,   i n f o _ p t r ,   e r c d ) ; 
         i f   e r c d   ^ =   0 
         t h e n   g o t o   e r r _ r e t u r n ; 
 
         t e m p _ t y p   =   N U M ; 
         s t a r t   =   s t a r t   -   1 ; 	 	 / *   a n   i n c r e m e n t   w i l l   f o l l o w   a n d   i t       * / 
 	 	 	 	 / *     w a s   l e f t   o n   f i r s t   c h a r   n o t   u s e d     * / 
 p u s h _ t e m p : 
         i f   ( c u r o p . v a l _ t y p   ^ =   N O N E ) 	 / *   2   o p e r a n d s   i n   a   r o w 	               * / 
         t h e n 
             d o ; 
                 o p 1 ,   o p 2   =   " " ; 
                 m s g   =   " O p e r a t o r   m i s s i n g .   " ; 
                 g o t o   p r t _ e r r ; 
             e n d ; 
 
         i f   t e m p _ t y p   =   S T R 
         t h e n   c a l l   a l o c _ s t r   ( d e p t h ) ; 
         e l s e 
             d o ; 
                 c u r o p . n u m _ v a l   =   t e m p _ n u m ; 
                 c u r o p . l o g _ v a l   =   t e m p _ l o g ; 
             e n d ; 
 
         c u r o p . v a l _ t y p   =   t e m p _ t y p ; 
 
         i f   d e t a i l 
         t h e n   c a l l   d u m p e r   ( "   v > " ,   d e p t h ) ; 
         b u f p o s   =   s t a r t ; 
 
         i f   ( o p _ t y p   >   1 5 ) 	 	 / *   i f   a n   o p e r a t o r   i s   s t i l l   p e n d i n g       * / 
         t h e n   g o t o   t r y _ a g a i n ; 
         g o t o   p a r s e _ l o o p ; 
 
 o p e r a n d   ( 1 2 ) : 	 	 	 / *   o c t a l   v a l u e 	 	               * / 
         t e m p _ n u m   =   0 ; 
         j   =   1 ; 
         d o   i   =   s t a r t   b y   1   w h i l e   ( j   ^ <   0 ) ; 
             s t a r t   =   s t a r t   +   1 ; 
             j   =   i n d e x   ( " 0 1 2 3 4 5 6 7 " ,   s u b s t r   ( b u f f e r ,   s t a r t ,   1 ) )   -   1 ; 
             i f   ( j   > =   0 ) 
             t h e n   t e m p _ n u m   =   t e m p _ n u m   *   8   +   j   *   1 0 0 0 ; 
         e n d ; 
         t e m p _ t y p   =   N U M ; 
         g o t o   p u s h _ t e m p ; 
 
 o p e r a n d   ( 1 3 ) : 	 	 	 / *   s t r i n g   v a l u e   * / 
         i f   s t a r t   >   l e n g t h   ( b u f f e r ) 
         t h e n 
             d o ; 
                 m s g   =   " S t r i n g   s y n t a x   e r r o r .   " ; 
                 o p 1 ,   o p 2   =   " " ; 
                 g o t o   p r t _ e r r ; 
             e n d ; 
 
         t e m p _ s t r   =   " " ; 
         d o   w h i l e   ( s t a r t   < =   l e n g t h   ( b u f f e r )   &   s u b s t r   ( b u f f e r ,   s t a r t ,   1 )   =   " " " " ) ; 
             t e m p _ s t r   = 
 	   t e m p _ s t r 
 	   | |   c o m p _ e x t r _ s t r _   ( " 0 " b ,   b u f f e r ,   s t a r t ,   s t a r t ,   0 ,   i n f o _ p t r ) ; 
             i f   s t a r t   =   0 
             t h e n   g o t o   e r r _ r e t u r n ; 	 	 / *   s o m e t h i n g   w a s   w r o n g   * / 
 
             i f   s t a r t   <   l e n g t h   ( b u f f e r ) 
             t h e n   s t a r t   =   s t a r t   -   1   +   v e r i f y   ( s u b s t r   ( b u f f e r ,   s t a r t ) ,   "   " ) ; 
         e n d ; 
 
         i f   s t a r t   <   l e n g t h   ( b u f f e r ) 	 / *   U N L E S S   i t s   a l l   u s e d   u p . . . 	               * / 
                   |   ( s t a r t   =   l e n g t h   ( b u f f e r ) )   &   ( s u b s t r   ( b u f f e r ,   s t a r t ,   1 )   ^ =   " " " " ) 
         t h e n   s t a r t   =   s t a r t   -   1 ; 	 	 / *   w e   m u s t   s t e p   b a c k   1   b e c a u s e               * / 
 	 	 	 	 / *     p a r s e _ l o o p   i s   g o i n g   t o   m o v e             * / 
 	 	 	 	 / *     a h e a d   o n e 	 	               * / 
         t e m p _ t y p   =   S T R ; 
         g o t o   p u s h _ t e m p ; 
 
 o p e r a n d   ( 1 6 ) : 	 	 	 / *   " ( "   i s   A L W A Y S   p u s h e d 	               * / 
         o p r e c   =   " 1 " ; 	 	 	 / *   e v e r y o n e   a l l o w e d   t o   p u s h   o n   t o p       * / 
         g o t o   p u s h _ o p _ t y p ; 	 	 / *   o f   t h i s 	 	               * / 
 
 o p e r a n d   ( 1 4 ) : 	 	 	 / *   T   l o g i c   k e y   * / 
         t e m p _ l o g   =   O N ; 
         t e m p _ t y p   =   L O G ; 
         g o t o   p u s h _ t e m p ; 
 
 o p e r a n d   ( 1 5 ) : 	 	 	 / *   F   l o g i c   k e y   * / 
         t e m p _ l o g   =   O F F ; 
         t e m p _ t y p   =   L O G ; 
         g o t o   p u s h _ t e m p ; 
 
 t y p e   ( 1 7 ) : 
 t y p e   ( 2 0 ) : 
 t y p e   ( 2 4 ) : 
 t y p e   ( 2 7 ) : 
         s i g n a l   c o n d i t i o n   ( p r o g _ e r r ) ; 
         g o t o   e r r _ r e t u r n ; 
         d c l   p r o g _ e r r 	       c o n d i t i o n ; 
 
 t y p e   ( 1 6 ) : 	 	 	 / *   " ( " 	 	 	               * / 
         i f   ( o p _ t y p   ^ =   R t P ) 	 	 / *   " ) " 	 	 	               * / 
         t h e n 
             d o ; 
                 m s g   =   " M i s s i n g   r i g h t   p a r e n t h e s i s .   " ; 
                 o t   =   o p _ t y p ; 
                 g o t o   p r t _ e r r 1 ; 
             e n d ; 
         t e m p _ t y p   =   c u r o p . v a l _ t y p ; 	 	 / * * / 
 	 	 	 	 / *   p u l l   t h e   r e s u l t   f r o m   s t a c k 	               * / 
         i f   t e m p _ t y p   =   L O G 	 	 / *   l o g i c a l   v a l u e   * / 
         t h e n 
             d o ; 
                 t e m p _ l o g   =   c u r o p . l o g _ v a l ; 
 
 / *                 o p _ t y p   =   D I G I T ; * / 
             e n d ; 
 
         i f   t e m p _ t y p   =   N U M 	 	 / *   n u m e r i c   v a l u e   * / 
         t h e n 
             d o ; 
                 t e m p _ n u m   =   c u r o p . n u m _ v a l ; 
                 o p _ t y p   =   D I G I T ; 
             e n d ; 
 
         e l s e 	 	 	 	 / *   s t r i n g   v a l u e   * / 
             d o ; 
                 t e m p _ s t r   =   s u b s t r   ( s t r s ,   c u r o p . s t r _ v a l . o f s t ,   c u r o p . s t r _ v a l . l e n ) ; 
                 o p _ t y p   =   S T R I N G ; 
             e n d ; 
 
         g o t o   p o p _ o p ; 
 
 t y p e   ( 1 8 ) : 	 	 	 / *   " = "   e q u a l   * / 
         c a l l   r e l _ v t   ( d e p t h   -   1 ,   d e p t h ) ; 
         t e m p _ t y p   =   L O G ; 
 
         i f   c u r o p . v a l _ t y p   =   L O G 
         t h e n   t e m p _ l o g   =   ( p r v o p . l o g _ v a l   =   c u r o p . l o g _ v a l ) ; 
 
         e l s e   i f   c u r o p . v a l _ t y p   =   N U M 
         t h e n   t e m p _ l o g   =   ( p r v o p . n u m _ v a l   =   c u r o p . n u m _ v a l ) ; 
 
         e l s e   t e m p _ l o g   = 
 	         ( s u b s t r   ( s t r s ,   p r v o p . s t r _ v a l . o f s t ,   p r v o p . s t r _ v a l . l e n ) 
 	         =   s u b s t r   ( s t r s ,   c u r o p . s t r _ v a l . o f s t ,   c u r o p . s t r _ v a l . l e n ) ) ; 
 
 p o p _ o p : 
         i f   d e t a i l 
         t h e n 
             d o ; 
                 c a l l   d u m p e r   ( " < o v " ,   d e p t h ) ; 
                 c a l l   d u m p e r   ( " <   v " ,   d e p t h   -   1 ) ; 
             e n d ; 
 
         c a l l   f r e e _ s t r   ( d e p t h ) ; 
         d e p t h   =   d e p t h   -   1 ; 
         c u r o p _ p t r   =   a d d r   ( o p s t k . e   ( d e p t h ) ) ; 
         i f   d e p t h   >   1 
         t h e n   p r v o p _ p t r   =   a d d r   ( o p s t k . e   ( d e p t h   -   1 ) ) ; 
         c a l l   f r e e _ s t r   ( d e p t h ) ; 
         c u r o p . v a l _ t y p   =   N O N E ; 	 	 / *   c l e a n   o u t   o l d   o p e r a n d 	               * / 
         g o t o   p u s h _ t e m p ; 
 
 t y p e   ( 2 3 ) : 
 t y p e   ( 1 9 ) : 	 	 	 / *   X O R 	 	 	               * / 
         c a l l   l o g _ v t   ( d e p t h   -   1 ,   d e p t h ) ; 
         i f   ( c u r o p . v a l _ t y p   ^ =   S T R ) 
         t h e n 
             d o ; 
                 i f   ( o p s t k . n u m _ v a l   ( d e p t h   -   1 )   =   0 )   =   ( c u r o p . n u m _ v a l   =   0 ) 
                 t h e n   t e m p _ l o g   =   O F F ; 
                 e l s e   t e m p _ l o g   =   O N ; 
                 t e m p _ t y p   =   L O G ; 
             e n d ; 
         e l s e 
             d o ; 
                 u n s p e c   ( t e m p _ s t r )   = 
 	       b o o l   ( 
 	       u n s p e c   ( 
 	       s u b s t r   ( s t r s ,   o p s t k . s t r _ v a l . o f s t   ( d e p t h   -   1 ) , 
 	       o p s t k . s t r _ v a l . l e n   ( d e p t h   -   1 ) ) ) , 
 	       u n s p e c   ( s u b s t r   ( s t r s ,   c u r o p . s t r _ v a l . o f s t ,   c u r o p . s t r _ v a l . l e n ) ) , 
 	       " 0 1 1 0 " b ) ; 
                 t e m p _ t y p   =   S T R ; 
             e n d ; 
         g o t o   p o p _ o p ; 
 
 t y p e   ( 2 1 ) : 	 	 	 / *   " ^ " 	 	 	               * / 
         i f   ( c u r o p . v a l _ t y p   ^ =   S T R ) 
         t h e n 
             d o ; 
                 i f   ( c u r o p . n u m _ v a l   ^ =   0 ) 
                 t h e n   t e m p _ l o g   =   O F F ; 
                 e l s e   t e m p _ l o g   =   O N ; 
                 t e m p _ t y p   =   L O G ; 
             e n d ; 
         e l s e 
             d o ; 
                 u n s p e c   ( t e m p _ s t r )   = 
 	       b o o l   ( " 0 " b , 
 	       u n s p e c   ( s u b s t r   ( s t r s ,   c u r o p . s t r _ v a l . o f s t ,   c u r o p . s t r _ v a l . l e n ) ) , 
 	       " 1 0 1 0 " b ) ; 
                 t e m p _ t y p   =   S T R ; 
             e n d ; 
         g o t o   p o p _ o p ; 
 
 t y p e   ( 2 2 ) : 	 	 	 / *   " ^ = " 	 	 	               * / 
         c a l l   r e l _ v t   ( d e p t h   -   1 ,   d e p t h ) ; 
         t e m p _ l o g   =   O F F ; 
         t e m p _ t y p   =   L O G ; 
 
         i f   c u r o p . v a l _ t y p   =   L O G 
         t h e n 
             d o ; 
                 i f   p r v o p . l o g _ v a l   ^ =   c u r o p . l o g _ v a l 
                 t h e n   t e m p _ l o g   =   O N ; 
             e n d ; 
 
         e l s e   i f   c u r o p . v a l _ t y p   =   N U M 
         t h e n 
             d o ; 
                 i f   p r v o p . n u m _ v a l   ^ =   c u r o p . n u m _ v a l 
                 t h e n   t e m p _ l o g   =   O N ; 
             e n d ; 
 
         e l s e 
             d o ; 
                 i f   s u b s t r   ( s t r s ,   o p s t k . s t r _ v a l . o f s t   ( d e p t h   -   1 ) , 
 	       o p s t k . s t r _ v a l . l e n   ( d e p t h   -   1 ) ) 
 	       ^ =   s u b s t r   ( s t r s ,   c u r o p . s t r _ v a l . o f s t ,   c u r o p . s t r _ v a l . l e n ) 
                 t h e n   t e m p _ l o g   =   O N ; 
             e n d ; 
 
         g o t o   p o p _ o p ; 
 
 t y p e   ( 2 5 ) : 	 	 	 / *   " < " 	 	 	               * / 
         c a l l   r e l _ v t   ( d e p t h   -   1 ,   d e p t h ) ; 
         t e m p _ l o g   =   O F F ; 
         t e m p _ t y p   =   L O G ; 
 
         i f   ( c u r o p . v a l _ t y p   ^ =   S T R ) 
         t h e n 
             d o ; 
                 i f   ( o p s t k . n u m _ v a l   ( d e p t h   -   1 )   <   c u r o p . n u m _ v a l ) 
                 t h e n   t e m p _ l o g   =   O N ; 
             e n d ; 
         e l s e 
             d o ; 
                 i f   ( s u b s t r   ( s t r s ,   o p s t k . s t r _ v a l . o f s t   ( d e p t h   -   1 ) , 
 	       o p s t k . s t r _ v a l . l e n   ( d e p t h   -   1 ) ) 
 	       <   s u b s t r   ( s t r s ,   c u r o p . s t r _ v a l . o f s t ,   c u r o p . s t r _ v a l . l e n ) ) 
                 t h e n   t e m p _ l o g   =   O N ; 
             e n d ; 
 
         g o t o   p o p _ o p ; 
 
 t y p e   ( 2 6 ) : 	 	 	 / *   " < = " 	 	 	               * / 
         c a l l   r e l _ v t   ( d e p t h   -   1 ,   d e p t h ) ; 
         t e m p _ l o g   =   O F F ; 
         t e m p _ t y p   =   L O G ; 
 
         i f   ( c u r o p . v a l _ t y p   ^ =   S T R ) 
         t h e n 
             d o ; 
                 i f   ( o p s t k . n u m _ v a l   ( d e p t h   -   1 )   < =   c u r o p . n u m _ v a l ) 
                 t h e n   t e m p _ l o g   =   O N ; 
             e n d ; 
         e l s e 
             d o ; 
                 i f   ( s u b s t r   ( s t r s ,   o p s t k . s t r _ v a l . o f s t   ( d e p t h   -   1 ) , 
 	       o p s t k . s t r _ v a l . l e n   ( d e p t h   -   1 ) ) 
 	       < =   s u b s t r   ( s t r s ,   c u r o p . s t r _ v a l . o f s t ,   c u r o p . s t r _ v a l . l e n ) ) 
                 t h e n   t e m p _ l o g   =   O N ; 
             e n d ; 
 
         g o t o   p o p _ o p ; 
 
 t y p e   ( 2 8 ) : 	 	 	 / *   " > " 	 	 	               * / 
         c a l l   r e l _ v t   ( d e p t h   -   1 ,   d e p t h ) ; 
         t e m p _ l o g   =   O F F ; 
         t e m p _ t y p   =   L O G ; 
 
         i f   ( c u r o p . v a l _ t y p   ^ =   S T R ) 
         t h e n 
             d o ; 
                 i f   ( o p s t k . n u m _ v a l   ( d e p t h   -   1 )   >   c u r o p . n u m _ v a l ) 
                 t h e n   t e m p _ l o g   =   O N ; 
             e n d ; 
         e l s e 
             d o ; 
                 i f   ( s u b s t r   ( s t r s ,   o p s t k . s t r _ v a l . o f s t   ( d e p t h   -   1 ) , 
 	       o p s t k . s t r _ v a l . l e n   ( d e p t h   -   1 ) ) 
 	       >   s u b s t r   ( s t r s ,   c u r o p . s t r _ v a l . o f s t ,   c u r o p . s t r _ v a l . l e n ) ) 
                 t h e n   t e m p _ l o g   =   O N ; 
             e n d ; 
 
         g o t o   p o p _ o p ; 
 
 t y p e   ( 2 9 ) : 	 	 	 / *   " > = " 	 	 	               * / 
         c a l l   r e l _ v t   ( d e p t h   -   1 ,   d e p t h ) ; 
         t e m p _ l o g   =   O F F ; 
         t e m p _ t y p   =   L O G ; 
 
         i f   ( c u r o p . v a l _ t y p   ^ =   S T R ) 
         t h e n 
             d o ; 
                 i f   ( o p s t k . n u m _ v a l   ( d e p t h   -   1 )   > =   c u r o p . n u m _ v a l ) 
                 t h e n   t e m p _ l o g   =   O N ; 
             e n d ; 
         e l s e 
             d o ; 
                 i f   ( s u b s t r   ( s t r s ,   o p s t k . s t r _ v a l . o f s t   ( d e p t h   -   1 ) , 
 	       o p s t k . s t r _ v a l . l e n   ( d e p t h   -   1 ) ) 
 	       > =   s u b s t r   ( s t r s ,   c u r o p . s t r _ v a l . o f s t ,   c u r o p . s t r _ v a l . l e n ) ) 
                 t h e n   t e m p _ l o g   =   O N ; 
             e n d ; 
 
         g o t o   p o p _ o p ; 
 
 t y p e   ( 3 0 ) : 	 	 	 / *   " + " 	 	 	               * / 
         c a l l   f o r c e _ v t   ( d e p t h   -   1 ,   d e p t h ,   N U M ) ; 
         i f   ( o p s t k . v a l _ t y p   ( d e p t h   -   1 )   =   N U M ) / *   b i n a r y   f l a v o r 	 	               * / 
         t h e n   t e m p _ n u m   =   o p s t k . n u m _ v a l   ( d e p t h   -   1 )   +   c u r o p . n u m _ v a l ; 
         e l s e   t e m p _ n u m   =   c u r o p . n u m _ v a l ; 
         t e m p _ t y p   =   N U M ; 
         g o t o   p o p _ o p ; 
 
 t y p e   ( 3 1 ) : 	 	 	 / *   " - " 	 	 	               * / 
         c a l l   f o r c e _ v t   ( d e p t h   -   1 ,   d e p t h ,   N U M ) ; 
         i f   ( o p s t k . v a l _ t y p   ( d e p t h   -   1 )   =   N U M ) / *   b i n a r y   f l a v o r 	 	               * / 
         t h e n   t e m p _ n u m   =   o p s t k . n u m _ v a l   ( d e p t h   -   1 )   -   c u r o p . n u m _ v a l ; 
         e l s e   t e m p _ n u m   =   - c u r o p . n u m _ v a l ; 
         t e m p _ t y p   =   N U M ; 
         g o t o   p o p _ o p ; 
 
 t y p e   ( 3 2 ) : 	 	 	 / *   " * " 	 	 	               * / 
         c a l l   f o r c e _ v t   ( d e p t h   -   1 ,   d e p t h ,   N U M ) ; 
         f b 7 1   =   o p s t k . n u m _ v a l   ( d e p t h   -   1 )   *   c u r o p . n u m _ v a l ; 
         t e m p _ n u m   =   d i v i d e   ( f b 7 1 ,   1 0 0 0 ,   7 1 ,   1 0 ) ; 
 	 	 	 	 / *             t e m p _ n u m   =   d i v i d e   ( o p s t k . n u m _ v a l   ( d e p t h   -   1 )   *   c u r o p . n u m _ v a l ,   1 0 0 0 ,   3 1 ,   1 0 ) ; * / 
         t e m p _ t y p   =   N U M ; 
         g o t o   p o p _ o p ; 
 
 t y p e   ( 3 3 ) : 	 	 	 / *   " / " 	 	 	               * / 
         c a l l   f o r c e _ v t   ( d e p t h   -   1 ,   d e p t h ,   N U M ) ; 
         t e m p _ n u m   = 
                   d i v i d e   ( 1 0 0 0   *   o p s t k . n u m _ v a l   ( d e p t h   -   1 ) ,   c u r o p . n u m _ v a l ,   3 1 ,   1 0 ) ; 
         t e m p _ t y p   =   N U M ; 
         g o t o   p o p _ o p ; 
 
 t y p e   ( 3 4 ) : 	 	 	 / *   " \ " 	 	 	               * / 
         c a l l   f o r c e _ v t   ( d e p t h   -   1 ,   d e p t h ,   N U M ) ; 
         t e m p _ n u m   =   m o d   ( o p s t k . n u m _ v a l   ( d e p t h   -   1 ) ,   c u r o p . n u m _ v a l ) ; 
         t e m p _ t y p   =   N U M ; 
         g o t o   p o p _ o p ; 
 
 t y p e   ( 3 5 ) : 	 	 	 / *   " & "   -   A N D   * / 
         c a l l   l o g _ v t   ( d e p t h   -   1 ,   d e p t h ) ; 
         t e m p _ l o g   =   O F F ; 
         t e m p _ t y p   =   L O G ; 
 
         i f   c u r o p . v a l _ t y p   =   L O G 	 	 / *   l o g i c a l   v a l u e s   * / 
         t h e n   i f   p r v o p . l o g _ v a l   &   c u r o p . l o g _ v a l 
                   t h e n   t e m p _ l o g   =   O N ; 
                   e l s e   ; 
 
         e l s e   i f   c u r o p . v a l _ t y p   =   N U M 	 / *   n u m e r i c   v a l u e s   * / 
         t h e n   i f   p r v o p . n u m _ v a l   ^ =   0   &   c u r o p . n u m _ v a l   ^ =   0 
                   t h e n   t e m p _ l o g   =   O N ; 
                   e l s e   ; 
 
         e l s e 	 	 	 	 / *   s t r i n g   v a l u e s   * / 
             d o ; 
                 u n s p e c   ( t e m p _ s t r )   = 
 	       b o o l   ( 
 	       u n s p e c   ( 
 	       s u b s t r   ( s t r s ,   o p s t k . s t r _ v a l . o f s t   ( d e p t h   -   1 ) , 
 	       o p s t k . s t r _ v a l . l e n   ( d e p t h   -   1 ) ) ) , 
 	       u n s p e c   ( s u b s t r   ( s t r s ,   c u r o p . s t r _ v a l . o f s t ,   c u r o p . s t r _ v a l . l e n ) ) , 
 	       " 0 0 0 1 " b ) ; 
                 t e m p _ t y p   =   S T R ; 
             e n d ; 
 
         g o t o   p o p _ o p ; 
 
 t y p e   ( 3 6 ) : 	 	 	 / *   " | "   =   O R   * / 
         c a l l   l o g _ v t   ( d e p t h   -   1 ,   d e p t h ) ; 
 
         i f   c u r o p . v a l _ t y p   ^ =   S T R 	 	 / *   l o g i c a l s   o r   n u m e r i c s   * / 
         t h e n 
             d o ; 
                 t e m p _ t y p   =   L O G ; 
 
                 i f   c u r o p . v a l _ t y p   =   L O G 
                 t h e n   t e m p _ l o g   =   p r v o p . l o g _ v a l   |   c u r o p . l o g _ v a l ; 
 
                 e l s e   i f   c u r o p . v a l _ t y p   =   N U M 
                 t h e n   i f   p r v o p . n u m _ v a l   ^ =   0   |   c u r o p . n u m _ v a l   ^ =   0 
 	       t h e n   t e m p _ l o g   =   O N ; 
 	       e l s e   t e m p _ l o g   =   O F F ; 
             e n d ; 
 
         e l s e 	 	 	 	 / *   s t r i n g s   * / 
             d o ; 
                 t e m p _ t y p   =   S T R ; 
                 u n s p e c   ( t e m p _ s t r )   = 
 	       b o o l   ( 
 	       u n s p e c   ( 
 	       s u b s t r   ( s t r s ,   o p s t k . s t r _ v a l . o f s t   ( d e p t h   -   1 ) , 
 	       o p s t k . s t r _ v a l . l e n   ( d e p t h   -   1 ) ) ) , 
 	       u n s p e c   ( s u b s t r   ( s t r s ,   c u r o p . s t r _ v a l . o f s t ,   c u r o p . s t r _ v a l . l e n ) ) , 
 	       " 0 1 1 1 " b ) ; 
             e n d ; 
 
         g o t o   p o p _ o p ; 
 
 t y p e   ( 3 7 ) : 	 	 	 / *   " < < " 	 g o t   a l l   t h e   w a y   b a c k   t o         * / 
         g o t o   r e t u r n _ ; 	 	 	 / *     b e g i n - e x p r e s s i o n ,   t i m e   t o   s t o p       * / 
 % p a g e ; 
 e r r _ r e t u r n : 
         o p s t k . n u m _ v a l   ( 1 )   =   0 ; 	 	 / *   f o r c e   z e r o   r e s u l t   * / 
         o p s t k . v a l _ t y p   ( 1 )   =   N U M ; 
         s t a r t   =   l e n g t h   ( b u f f e r )   +   1 ; 	 / *   i n d i c a t e   w e ' v e   a l r e a d y   s q u a w k e d   * / 
         e r c d   =   - 1 ; 
 
 r e t u r n _ : 
         r e s t y p   =   o p s t k . v a l _ t y p   ( 1 ) ; 
 
         i f   r e s t y p   ^ =   n e e d t y p   &   n e e d t y p   >   0 
         t h e n 
             d o ; 
                 c a l l   f o r c e _ v t   ( 1 ,   1 ,   n e e d t y p ) ; 
                 r e s t y p   =   n e e d t y p ; 
             e n d ; 
 
         r e s n u m   =   o p s t k . n u m _ v a l   ( 1 ) ; 
         r e s l o g   =   o p s t k . l o g _ v a l   ( 1 ) ; 
 
         i f   r e s t y p   =   S T R 
         t h e n 
             d o ; 
                 r e s s t r   =   s u b s t r   ( s t r s ,   o p s t k . s t r _ v a l . o f s t   ( 1 ) ,   o p s t k . s t r _ v a l . l e n   ( 1 ) ) ; 
                 r e s _ a t t r   =   s t r i n g _ a t t r ; 
             e n d ; 
         e l s e   r e s s t r   =   " " ; 
 
         i f   r e s t y p   =   L O G 
         t h e n   r e s _ a t t r   =   f l a g _ a t t r ; 
 
         e l s e 
             d o ; 
                 i f   r e s _ a t t r   =   " " b 
                 t h e n 
 	 d o ; 
 	     r e s _ a t t r   =   n u m e r i c _ a t t r   |   u n s c a l e d _ a t t r ; 
 	     n u m _ v a l _ k e y   =   " u n s c a l e d " ; 
 	 e n d ; 
                 e l s e   n u m _ v a l _ k e y   =   " s c l n u m " ; 
             e n d ; 
 
         i f   d e b u g 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( e x p r _ e v a l )   ^ [ l o g i c a l   ^ [ T ^ ; F ^ ] ^ ; " 
 	         | |   " ^ s n u m e r i c   ^ f   ^ a   ^ a ^ ; ^ 3 s s t r i n g   " " ^ a " " ^ ] " ,   r e s t y p ,   r e s l o g , 
 	         r e s n u m ,   n u m _ v a l _ k e y ,   c o m p _ u t i l _ $ d i s p l a y   ( r e s s t r ,   0 ,   " 0 " b ) ) ; 
         r e t u r n ; 
 
         d c l   d t _ s w 	       b i t   ( 1 )   s t a t i c   i n i t   ( " 0 " b ) ; 
 d t n : 
     e n t r y ; 
         d t _ s w   =   " 1 " b ; 
         r e t u r n ; 
 d t f : 
     e n t r y ; 
         d t _ s w   =   " 0 " b ; 
         r e t u r n ; 
 
         d c l   d b _ s w 	       b i t   ( 1 )   s t a t i c   i n i t   ( " 0 " b ) ; 
 d b n : 
     e n t r y ; 
         d b _ s w   =   " 1 " b ; 
         r e t u r n ; 
 d b f : 
     e n t r y ; 
         d b _ s w   =   " 0 " b ; 
         r e t u r n ; 
 % p a g e ; 
 a l o c _ s t r : 
     p r o c   ( w h i c h ) ; 
 
         d c l   w h i c h 	       f i x e d   b i n ; 
 
         i f   ( l e n g t h   ( s t r s )   <   s t r s e   +   l e n g t h   ( t e m p _ s t r ) ) 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " S t r i n g   e x p r e s s i o n   t o o   l a r g e " ,   i n f o _ p t r , 
 	       b u f f e r ) ; 
                 g o t o   e r r _ r e t u r n ; 
             e n d ; 
         s u b s t r   ( s t r s ,   s t r s e ,   l e n g t h   ( t e m p _ s t r ) )   =   t e m p _ s t r ; 
         o p s t k . s t r _ v a l . o f s t   ( w h i c h )   =   s t r s e ; 
         o p s t k . s t r _ v a l . l e n   ( w h i c h )   =   l e n g t h   ( t e m p _ s t r ) ; 
         s t r s e   =   s t r s e   +   l e n g t h   ( t e m p _ s t r ) ; 
         s t r s u   =   s t r s u   +   l e n g t h   ( t e m p _ s t r ) ; 
 
     e n d   a l o c _ s t r ; 
 % s k i p   ( 4 ) ; 
 f r e e _ s t r : 
     p r o c   ( w h i c h ) ; 
 
         d c l   w h i c h 	       f i x e d   b i n ; 
 
         i f   ( o p s t k . v a l _ t y p   ( w h i c h )   ^ =   S T R ) 
         t h e n   r e t u r n ; 
         s t r s e   =   m a x   ( s t r s e ,   o p s t k . s t r _ v a l . o f s t   ( w h i c h ) ) ; 
 	 	 	 	 / *   j u s t   i n   c a s e   n o t             * / 
 	 	 	 	 / *     f r e e d   i n   r e v e r s e   o r d e r 	               * / 
         s t r s u   =   s t r s u   -   o p s t k . s t r _ v a l . l e n   ( w h i c h ) ; 
 	 	 	 	 / *   a c c o u n t   f o r   u n u s e d   s p a c e         * / 
         i f   ( s t r s u   =   0 ) 	 	 	 / *   i f   n o t h i n g   i n   u s e ,   w e   c a n   s t a r t       * / 
         t h e n   s t r s e   =   1 ; 	 	 	 / *     o v e r   a g a i n . 	 	               * / 
 
     e n d   f r e e _ s t r ; 
 % p a g e ; 
 r e l _ v t : 
     p r o c   ( a 1 ,   a 2 ) ; 
 
         d c l   ( a 1 ,   a 2 ) 	       f i x e d   b i n ; 
         d c l   t y p 	       f i x e d   b i n ; 
 
         d c l   r e s 	       f i x e d   b i n ; 
         d c l   i 	 	       f i x e d   b i n ; 
         d c l   v t y p 	       ( 1 : 3 )   c h a r   ( 3 )   i n t   s t a t i c   i n i t   ( " L O G " ,   " N U M " ,   " S T R " ) ; 
         d c l   ( v t 1 ,   v t 2 ) 	       f i x e d   b i n ; 
 
         i f   ( o p s t k . v a l _ t y p   ( a 1 )   =   o p s t k . v a l _ t y p   ( a 2 ) ) 
         t h e n   r e t u r n ; 
         r e s   =   m a x   ( o p s t k . v a l _ t y p   ( a 1 ) ,   o p s t k . v a l _ t y p   ( a 2 ) ) ; 
         g o t o   c o m m o n ; 
 
 l o g _ v t : 
     e n t r y   ( a 1 ,   a 2 ) ; 
 
         v t 1   =   o p s t k . v a l _ t y p   ( a 1 ) ; 
         v t 2   =   o p s t k . v a l _ t y p   ( a 2 ) ; 
         i f   ( v t 1   =   v t 2 ) 
         t h e n   r e t u r n ; 
         i f   ( v t 1   =   S T R )   |   ( v t 2   =   S T R ) 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	       v t y p   ( v t 1 )   | |   " / "   | |   v t y p   ( v t 2 ) 
 	       | |   "   c o n v e r s i o n   n o t   d e f i n e d   i n   a   l o g i c a l   c o n t e x t . " ,   i n f o _ p t r , 
 	       b u f f e r ) ; 
                 g o t o   e r r _ r e t u r n ; 
             e n d ; 
         r e s   =   L O G ; 
         g o t o   c o m m o n ; 
 
 f o r c e _ v t : 
     e n t r y   ( a 1 ,   a 2 ,   t y p ) ; 	 	 / *   f o r c e   t w o   e n t r i e s   t o   b e   s a m e   t y p e   * / 
 
         r e s   =   t y p ; 
 
 c o m m o n : 
         d o   i   =   a 1 ,   a 2 ; 	 	 	 / *   f o r   e a c h   o f   t h e   e n t r i e s   * / 
             i f   o p s t k . v a l _ t y p   ( i )   ^ =   N O N E 	 / *   i f   i t   h a s   a   t y p e   * / 
 	   &   o p s t k . v a l _ t y p   ( i )   ^ =   r e s 	 / *   a n d   i t s   n o t   t h e   o n e   w e   w a n t   * / 
             t h e n 
                 d o ; 	 	 	 / *   d o   t h e   n e c s s a r y   c o n v e r s i o n   * / 
 	 g o t o   r t n   ( 3   *   ( o p s t k . v a l _ t y p   ( i )   -   1 )   +   ( r e s   -   1 ) ) ; 
 
 r t n   ( 3 ) : 	 	 	 	 / *   2 , 1   N U M = > L O G   * / 
 	 i f   o p s t k . n u m _ v a l   ( i )   ^ =   0 	 / *   i f   n o n z e r o   - -   * / 
 	 t h e n   o p s t k . l o g _ v a l   ( i )   =   O N ; 
 	 e l s e   o p s t k . l o g _ v a l   ( i )   =   O F F ; 
 	 o p s t k . v a l _ t y p   ( i )   =   L O G ; 
 	 g o t o   d o n e _ c v ; 
 
 r t n   ( 2 ) : 	 	 	 	 / *   1 , 3   L O G = > S T R   * / 
 	 i f   o p s t k . l o g _ v a l   ( i ) 
 	 t h e n   t e m p _ s t r   =   " T " ; 
 	 e l s e   t e m p _ s t r   =   " F " ; 
 	 c a l l   a l o c _ s t r   ( i ) ; 
 	 g o t o   d o n e _ c v ; 
 
 r t n   ( 5 ) : 	 	 	 	 / *   2 , 3   N U M = > S T R   * / 
 	 t e m p _ s t r   =   c o m p _ u t i l _ $ n u m _ d i s p l a y   ( a d d r   ( o p s t k . n u m _ v a l   ( i ) ) ,   0 ) ; 
 	 c a l l   a l o c _ s t r   ( i ) ; 
 	 g o t o   d o n e _ c v ; 
 
 r t n   ( 6 ) : 	 	 	 	 / *   3 , 1   S T R = > L O G   * / 
 	 i f   o p s t k . s t r _ v a l . l e n   ( i )   >   0 	 / *   i f   n o n n u l l   - -   * / 
 	 t h e n   o p s t k . l o g _ v a l   ( i )   =   O N ; 
 	 e l s e   o p s t k . l o g _ v a l   ( i )   =   O F F ; 
 	 o p s t k . v a l _ t y p   ( i )   =   L O G ; 
 	 g o t o   d o n e _ c v ; 
 
 r t n   ( 7 ) : 	 	 	 	 / *   3 , 2   S T R = > N U M   * / 
 	 t e m p _ s t r   = 
 	           s u b s t r   ( s t r s ,   o p s t k . s t r _ v a l . o f s t   ( i ) ,   o p s t k . s t r _ v a l . l e n   ( i ) ) ; 
 	 o p s t k . n u m _ v a l   ( i )   = 
 	           c o m p _ r e a d _ $ n u m b e r   ( t e m p _ s t r ,   s c a l e ,   1 ,   0 ,   i n f o _ p t r ,   0 ) ; 
 	 g o t o   d o n e _ c v ; 
 
 r t n   ( 1 ) : 	 	 	 	 / *   1 , 2   L O G = > N U M   * / 
 	 i f   o p s t k . l o g _ v a l   ( i ) 
 	 t h e n   o p s t k . n u m _ v a l   ( i )   =   - 1 ; 
 	 e l s e   o p s t k . n u m _ v a l   ( i )   =   0 ; 
 
 r t n   ( 0 ) : 	 	 	 	 / *   1 , 1   L O G = > L O G   * / 
 r t n   ( 4 ) : 	 	 	 	 / *   2 , 2   N U M = > N U M   * / 
 r t n   ( 8 ) : 	 	 	 	 / *   3 , 3   S T R = > S T R   * / 
 d o n e _ c v : 
 	 o p s t k . v a l _ t y p   ( i )   =   r e s ; 
                 e n d ; 
         e n d ; 
     e n d   r e l _ v t ; 
 % p a g e ; 
 d u m p e r : 	 	 	 	 / *   d i s p l a y   s t a c k   a c t i o n s   * / 
     p r o c   ( a c t i o n ,   w h i c h ) ; 
 
         d c l   a c t i o n 	       c h a r   ( 3 ) , 	 / *   s t a c k   a c t i o n   w a n t e d   * / 
                 w h i c h 	       f i x e d   b i n ; 	 / *   d e p t h   o f   s t a c k   b o x   t o   d i s p l a y   * / 
 
         d c l   d m p s t k _ p t r 	       p t r ; 	 	 / *   s t a c k   b o x   t o   d i s p l a y   * / 
         d c l   1   d m p s t k 	       l i k e   o p s t k . e   b a s e d   ( d m p s t k _ p t r ) ; 
 
         d m p s t k _ p t r   =   a d d r   ( o p s t k . e   ( w h i c h ) ) ; / *   s t a c k   i n f o   * / 
         c a l l   i o a _ $ n n l   ( "     ^ a   ^ 2 i   ^ 1 a ^ 1 a   ^ 1 a   " ,   a c t i o n ,   w h i c h , 
                   s u b s t r   ( p r o c _ c t l . t y p e ,   d m p s t k . t y p ,   1 ) , 
                   s u b s t r   ( p r o c _ c t l . d s p l _ s f x ,   d m p s t k . t y p ,   1 ) ,   d m p s t k . p r e c ) ; 
 
         i f   d m p s t k . v a l _ t y p   =   L O G 	 	 / *   l o g i c a l   v a l u e s   * / 
         t h e n   c a l l   i o a _ $ n n l   ( " L   ^ [ T ^ ; F ^ ] " ,   d m p s t k . l o g _ v a l ) ; 
 
         e l s e   i f   d m p s t k . v a l _ t y p   =   N U M 	 / *   n u m e r i c   v a l u e s   * / 
         t h e n   c a l l   i o a _ $ n n l   ( " N   ^ f " ,   d m p s t k . n u m _ v a l ) ; 
 
         e l s e   i f   d m p s t k . v a l _ t y p   =   S T R 	 / *   s t r i n g   v a l u e s   * / 
         t h e n   c a l l   i o a _ $ n n l   ( " S   " " ^ a " " " , 
 	         s u b s t r   ( s t r s ,   d m p s t k . s t r _ v a l . o f s t ,   d m p s t k . s t r _ v a l . l e n ) ) ; 
 
         i f   s u b s t r   ( a c t i o n ,   2 ,   1 )   =   " > " 
         t h e n   c a l l   i o a _   ( "   a t   b u f f e r   ( ^ d ) " ,   b u f p o s ) ; 
         e l s e   c a l l   i o a _   ( " " ) ; 
 
     e n d   d u m p e r ; 
 % p a g e ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ p a g e ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p _ v a r a t t r s ; 
 % i n c l u d e   c o m p s t a t ; 
 
     e n d   c o m p _ e x p r _ e v a l _ ; 
    
 
 
  
 	 	         c o m p _ e x t r _ s t r _ . p l 1                             0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 0 9 . 1               6 6 9 1 5     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   s u b r o u t i n e   t o   e x t r a c t   c h a r a c t e r   s t r i n g s   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 3 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ e x t r _ s t r _ : 
       p r o c   ( r e d u c e ,   b u f f e r ,   p m s t a r t ,   p m n e x t ,   f l e n ,   i n f o _ p t r ) 
                 r e t u r n s   ( c h a r   ( * )   v a r y i n g ) ; 
 
 / *   P A R A M E T E R S   * / 
 
             d c l   r e d u c e 	           b i t   ( 1 ) ; 	 / *   e s c a p e   r e d u c t i o n   f l a g 
 	 	 	 	       0   =   r a w ,   1   =   r e d u c e d   * / 
 	 	 	 	 / *   b u f f e r   f r o m   w h i c h   t o   e x t r a c t   * / 
             d c l   b u f f e r 	           c h a r   ( * )   v a r y i n g ; 
             d c l   p m s t a r t 	           f i x e d   b i n   ( 2 1 ) ; / *   s t a r t i n g   c h a r a c t e r   i n   b u f f e r   * / 
             d c l   p m n e x t 	           f i x e d   b i n   ( 2 1 ) ; / *   n e x t   c h a r a c t e r   i n   b u f f e r   * / 
             d c l   f l e n 	           f i x e d   b i n   ( 2 1 ) ; / *   l e n g t h   o f   s t r i n g   e x t r a c t e d   * / 
             d c l   i n f o _ p t r 	           p t r ; 	 	 / *   i n f o   s t r u c t u r e   f o r   b u f f e r   * / 
             d c l   1   b u f i n f o 	           l i k e   t e x t _ e n t r y . i n f o   b a s e d   ( i n f o _ p t r ) ; 
 
 / *   L O C A L   S T O R A G E   * / 
 
             d c l   b u f l e n 	           f i x e d   b i n   ( 2 1 ) ; / *   l e n g t h   o f   t h e   b u f f e r e d   s t r i n g   * / 
 	 	 	 	 / *   r e p l a c e m e n t   c h a r a c t e r   * / 
             d c l   c h a r 	           c h a r   ( 1 )   i n i t   ( " " ) ; 
             d c l   c h a r _ i n d e x           f i x e d   b i n ; 	 / *   c o l l a t i n g   i n d e x   f o r   * c n n n   * / 
 	 	 	 	 / *   e s c a p e d   c o p y   o f   b u f f e r   * / 
             d c l   e s c v a l 	           c h a r   ( 1 0 2 0 )   v a r y i n g ; 
             d c l   g i v e n _ l e n 	           f i x e d   b i n   ( 3 1 ) ; / *   g i v e n   s u b s t r i n g   l e n g t h ,   i f   a n y   * / 
             d c l   g i v e n _ s t r t           f i x e d   b i n   ( 3 1 ) ; / *   g i v e n   s u b s t r i n g   s t a r t ,   i f   a n y   * / 
 	 	 	 	 / *   w o r k i n g   i n d e x   * / 
             d c l   ( i ,   j ,   k ) 	           f i x e d   b i n   i n i t   ( 1 ) ; 
 	 	 	 	 / *   w o r k i n g   s t r i n g   l e n g t h   * / 
             d c l   l e n 	           f i x e d   b i n   i n i t   ( 1 ) ; 
             d c l   N U M 	           f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 2 ) ; 
             d c l   n u l l _ r e s u l t         b i t   ( 1 ) ; 
             d c l   m o d e 	           f i x e d   b i n   ( 3 5 ) ; / *   c o n v e r s i o n   m o d e   f o r   * c n n n   * / 
             d c l   q t _ p o s 	           f i x e d   b i n ; 	 / *   p o s i t i o n   o f   c l o s i n g   q u o t e   * / 
             d c l   s t a r t 	           f i x e d   b i n   ( 2 1 ) ; / *   l o c a l   s t r i n g   s t a r t   v a l u e   * / 
             d c l   s u b _ l e n 	           f i x e d   b i n ; 	 / *   l e n g t h   o f   s u b s t r i n g   * / 
             d c l   s u b _ s t r t 	           f i x e d   b i n ; 	 / *   s t a r t   o f   s u b s t r i n g   * / 
 	 	 	 	 / *   v a l u e   t o   b e   r e t u r n e d   * / 
             d c l   v a l u e 	           c h a r   ( 1 0 2 0 )   v a r y i n g ; 
 
             d c l   ( c o l l a t e 9 ,   i n d e x ,   l e n g t h ,   m i n ,   n u l l ) 
 	 	           b u i l t i n ; 
 
             d c l   c o m p _ e r r o r _ t a b l e _ $ m i s s i n g _ d e l i m i t e r 
 	 	           e x t   f i x e d   b i n   ( 3 5 ) ; 
 
             b u f l e n   =   l e n g t h   ( b u f f e r ) ; 
             n u l l _ r e s u l t   =   " 0 " b ; 	 	 / *   n o t   s o   f a r ,   a n y w a y 	               * / 
 
             i f   s h a r e d . b u g _ m o d e 
             t h e n   c a l l   i o a _   ( " e x t r _ s t r :   ( ^ d , ^ d )   ^ a " ,   p m s t a r t ,   b u f l e n   -   p m s t a r t   +   1 , 
 	             c o m p _ u t i l _ $ d i s p l a y   ( s u b s t r   ( b u f f e r ,   p m s t a r t ) ,   0 ,   " 0 " b ) ) ; 
 	 	 	 	 / *   i f   n o t   q u o t e d   * / 
             i f   s u b s t r   ( b u f f e r ,   p m s t a r t ,   1 )   ^ =   " " " " 
             t h e n 
                   d o ; 	 	 	 / *   r e t u r n   t h e   r a w   s t r i n g   * / 
 	     v a l u e   =   s u b s t r   ( b u f f e r ,   p m s t a r t ) ; 
 	     p m n e x t   =   l e n g t h   ( b u f f e r )   +   1 ; 
 	     f l e n   =   l e n g t h   ( v a l u e ) ; 
 	     g o t o   r e t u r n _ ; 
                   e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i t   i s   q u o t e d   * / 
             v a l u e ,   e s c v a l   =   b u f f e r ; 	 	 / *   c o p y   t h e   s t r i n g   * / 
             i f   r e d u c e   &   i n d e x   ( e s c v a l ,   " * " )   ^ =   0 
             t h e n   c a l l   c o m p _ u t i l _ $ e s c a p e   ( e s c v a l ,   i n f o _ p t r ) ; 
             q t _ p o s   =   1 ; 
             s t a r t   =   p m s t a r t ; 
 
 q t _ s c a n _ 2 : 	 	 	 / *   l o o k   f o r   a   c l o s e r   * / 
             i   =   i n d e x   ( s u b s t r   ( v a l u e ,   s t a r t   +   q t _ p o s ) ,   " " " " ) ; 
 
             i f   i   =   0 	 	 	 / *   i f   n o   q u o t e   f o u n d   * / 
             t h e n 
                   d o ; 
 	     c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ m i s s i n g _ d e l i m i t e r , 
 	               i n f o _ p t r ,   b u f f e r ,   " N o   c l o s i n g   q u o t e   f o r   " " ^ a " " " , 
 	               s u b s t r   ( v a l u e ,   s t a r t ) ) ; 
 	     v a l u e   =   s u b s t r   ( v a l u e ,   s t a r t   +   1 ) ; 
 	     p m n e x t   =   l e n g t h   ( b u f f e r )   +   1 ; 
 	     f l e n   =   l e n g t h   ( v a l u e ) ; 
 	     g o t o   r e t u r n _ ; 	 	 / *   r e t u r n   w i t h   w h a t   w e   h a v e   * / 
                   e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i s   i t   e s c a p e d ?   * / 
             i f   s u b s t r   ( v a l u e ,   s t a r t   +   q t _ p o s   +   i   -   2 ,   1 )   =   " * " 
             t h e n   i f   s t a r t   +   q t _ p o s   +   i   >   3 	 / *   n o t   \ 2 7 7 * "   O R   * * "   * / 
 	   t h e n   i f   ^ ( s u b s t r   ( e s c v a l ,   s t a r t   +   q t _ p o s   +   i   -   3 ,   2 )   =   " ¿ * " 
 	 	   |   s u b s t r   ( e s c v a l ,   s t a r t   +   q t _ p o s   +   i   -   3 ,   2 )   =   " * * " ) 
 	             t h e n 
 	                   d o ; 	 	 / *   s t e p   o v e r   t h e   q u o t e   * / 
 	 	     q t _ p o s   =   q t _ p o s   +   i ; 
 	 	     g o t o   q t _ s c a n _ 2 ; 	 / *   a n d   l o o k   f o r   a n o t h e r   * / 
 	                   e n d ; 	 	 / * * / 
 	 	 	 	 / *   t h i s   i s   t h e   c l o s i n g   q u o t e   * / 
 	             e l s e   q t _ p o s   =   s t a r t   +   q t _ p o s   +   i   -   1 ; 
 	   e l s e   q t _ p o s   =   s t a r t   +   q t _ p o s   +   i   -   1 ; 
             e l s e   q t _ p o s   =   s t a r t   +   q t _ p o s   +   i   -   1 ; 
 
             s u b _ s t r t   =   s t a r t   +   1 ; 	 	 / *   s t a r t   o f   g i v e n   s t r i n g   * / 
             s u b _ l e n   =   q t _ p o s   -   s u b _ s t r t ; 	 / *   e n d   o f   g i v e n   s t r i n g   * / 
 
             s t a r t   =   s u b _ s t r t   +   s u b _ l e n   +   1 ; 	 / *   s e e   w h a t   f o l l o w s   t h e   c l o s e r   * / 
 
             i f   s t a r t   <   b u f l e n   &   s u b s t r   ( v a l u e ,   s t a r t ,   1 )   =   " ( " 
             t h e n 
                   d o ; 	 	 	 / *   i f   i t s   a   s u b s t r   e x p r e s s i o n   * / 
 	     s t a r t   =   s t a r t   +   1 ; 	 / *   s t e p   o v e r   t h e   p a r e n   * / 
 	     c a l l   c o m p _ e x p r _ e v a l _   ( v a l u e ,   s t a r t ,   i n f o _ p t r ,   N U M ,   0 ,   " 0 " b , 
 	               g i v e n _ s t r t ,   " " ,   " 0 " b ,   0 ) ; 
 	     g i v e n _ s t r t   =   d i v i d e   ( g i v e n _ s t r t ,   1 0 0 0 ,   3 1 ,   0 ) ; 
 
 	     i f   s t a r t   =   0 	 	 / *   s o m e t h i n g   w a s   w r o n g   * / 
 	     t h e n 
 	           d o ; 
 	                 p m s t a r t   =   0 ; 
 	                 g o t o   r e t u r n _ ; 
 	           e n d ; 
 
 	     i f   g i v e n _ s t r t   <   0 	 	 / *   i f   " - i "   f o r m   * / 
 	     t h e n 
 	           d o ; 
 	                 g i v e n _ s t r t   = 	 / *   b a c k   u p   f r o m   e n d   o f   s t r i n g   * / 
 	 	       s u b _ l e n   +   g i v e n _ s t r t   +   1 ; 
 
 	                 i f   g i v e n _ s t r t   < =   0 	 / *   i f   b e f o r e   g i v e n   s t r i n g   * / 
 	                 t h e n 
 	 	   d o ; 
 	 	         c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	                   " S u b s t r i n g   s t a r t s   b e f o r e   g i v e n   s t r i n g . " ,   i n f o _ p t r , 
 	 	                   b u f f e r ) ; 
 	 	         p m s t a r t   =   0 ; 
 	 	         g o t o   r e t u r n _ ; 
 	 	   e n d ; 
 	           e n d ; 
 
 	     i f   g i v e n _ s t r t   >   s u b _ l e n 	 / *   i f   a f t e r   g i v e n   s t r i n g   * / 
 	     t h e n   n u l l _ r e s u l t   =   " 1 " b ; 	 / *   w i l l   g i v e   b a c k   n u l l   s t r i n g 	               * / 
 	 	 	 	 / *   b u t   w e   m u s t   s t i l l   f i n i s h   p a r s i n g     * / 
 
 	     i f   s u b s t r   ( v a l u e ,   s t a r t ,   1 )   =   " , " 
 	 	 	 	 / *   i f   " , k "   f o r m   * / 
 	     t h e n 
 	           d o ; 
 	                 s t a r t   =   s t a r t   +   1 ; 	 / *   s t e p   o v e r   t h e   c o m m a   * / 
 	                 c a l l   c o m p _ e x p r _ e v a l _   ( v a l u e ,   s t a r t ,   i n f o _ p t r ,   N U M ,   0 ,   " 0 " b , 
 	 	       g i v e n _ l e n ,   " " ,   " 0 " b ,   0 ) ; 
 	                 g i v e n _ l e n   =   d i v i d e   ( g i v e n _ l e n ,   1 0 0 0 ,   3 1 ,   0 ) ; 
 
 	                 i f   s t a r t   =   0 	 / *   s o m e t h i n g   w a s   w r o n g   * / 
 	                 t h e n 
 	 	   d o ; 
 	 	         p m s t a r t   =   0 ; 
 	 	         g o t o   r e t u r n _ ; 
 	 	   e n d ; 
 
 	                 i f   g i v e n _ l e n   <   0 	 / *   i f   " , - k "   f o r m   * / 
 	                 t h e n 
 	 	   d o ; 
 	 	         s u b _ l e n   =   s u b _ l e n   -   g i v e n _ s t r t   +   g i v e n _ l e n   +   2 ; 
 	 	 	 	 / *   a d j u s t   s u b s t r   l e n g t h 	               * / 
 
 	 	         i f   s u b _ l e n   <   0   &   ^ n u l l _ r e s u l t 
 	 	 	 	 / *   d o n t   c o m p l a i n   o f   w e   a l r e a d y   k n o w     * / 
 	 	 	 	 / *   t h e r e   i s   " n o t h i n g "   t h e r e 	               * / 
 	 	         t h e n 
 	 	               d o ; 
 	 	 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	 	           " N e g a t i v e   s u b s t r i n g   l e n g t h . " ,   i n f o _ p t r , 
 	 	 	           b u f f e r ) ; 
 	 	 	 p m s t a r t   =   0 ; 
 	 	 	 g o t o   r e t u r n _ ; 
 	 	               e n d ; 
 	 	   e n d ; 
 
 	                 e l s e   s u b _ l e n   =   m i n   ( s u b _ l e n ,   g i v e n _ l e n ) ; 
 	           e n d ; 
 
 	     e l s e   s u b _ l e n   =   s u b _ l e n   -   g i v e n _ s t r t   +   1 ; 
 
 	     s u b _ s t r t   =   s u b _ s t r t   +   g i v e n _ s t r t   -   1 ; 
 	 	 	 	 / *   c h e c k   f o r   c l o s e r   * / 
 	     i f   s u b s t r   ( v a l u e ,   s t a r t ,   1 )   ^ =   " ) " 
 	     t h e n 
 	           d o ; 
 	                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " M i s s i n g   r i g h t   p a r e n t h e s i s " , 
 	 	       i n f o _ p t r ,   b u f f e r ) ; 
 	                 p m s t a r t   =   0 ; 
 	                 g o t o   r e t u r n _ ; 
 	           e n d ; 
 	     e l s e   s t a r t   =   s t a r t   +   1 ; 	 / *   e l s e   s t e p   o v e r   i t   * / 
                   e n d ; 
 
             i f   n u l l _ r e s u l t 	 	 / *   s e t   f i n a l   r e s u l t   * / 
             t h e n 
                   d o ; 
 	     v a l u e   =   " " ; 
 	     f l e n   =   0 ; 
 	     p m n e x t   =   s t a r t ; 
 	     g o t o   r e t u r n _ ; 
                   e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   f i n a l   o u t p u t   s t r i n g   * / 
             i f   r e d u c e   &   i n d e x   ( v a l u e ,   " * " )   ^ =   0 
             t h e n   c a l l   c o m p _ u t i l _ $ e s c a p e   ( v a l u e ,   i n f o _ p t r ) ; 
             v a l u e   =   s u b s t r   ( v a l u e ,   s u b _ s t r t ,   s u b _ l e n ) ; 
             p m n e x t   =   s t a r t ; 
             f l e n   =   l e n g t h   ( v a l u e ) ; 
 
 r e t u r n _ : 
             i f   s h a r e d . b u g _ m o d e 
             t h e n   c a l l   i o a _   ( " ^ 5 x ( e x t r _ s t r )   ( ^ d )   ^ a " ,   f l e n , 
 	             c o m p _ u t i l _ $ d i s p l a y   ( v a l u e ,   0 ,   " 0 " b ) ) ; 
 
             r e t u r n   ( v a l u e ) ; 
 % p a g e ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p s t a t ; 
 
       e n d   c o m p _ e x t r _ s t r _ ; 
    
 
 
  
 	 	         c o m p _ f i l l _ . p l 1                                     0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 0 9 . 3             1 5 1 3 3 5     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / * 	 c o m p o s e   s u b r o u t i n e   t o   f i l l   l i n e s   t o   c u r r e n t   l i n e   l e n g t h 	 * / 
 
 / * * * *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ f i l l _ : 
     p r o c ; 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   d c 1 _ n d x 	       f i x e d   b i n ; 	 / *   i n d e x   o f   D C 1   c h a r   * / 
         d c l   G A P s 	       c h a r   ( 4 ) ; 	 / *   w o r d   d e l i m i t e r s   * / 
         d c l   i 	 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
 	 	 	 	 / *   h y p h e n a t i o n   p o i n t   i n d e x   * / 
 	 	 	 	 / *   f o r   t e x t   m e a s u r i n g   * / 
         d c l   1   m e a s 2 	       a l i g n e d   l i k e   t e x t _ e n t r y . c u r ; 
         d c l   m i n w s p 	       f i x e d   b i n ; 	 / *   s t r o k e s   f o r   c u r r e n t   m i n   W S P   * / 
         d c l   r e v s t r 	       c h a r   ( 1 0 2 0 )   v a r ;   / *   r e v e r s e   o f   t e x t . i n p u t _ l i n e   * / 
         d c l   r e _ f i l l 	       b i t   ( 1 ) ; 
         d c l   s c n d x 	       f i x e d   b i n ; 	 / *   l i n e   s c a n   i n d e x   * / 
         d c l   u s a b l e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   n e t   l i n e   w i d t h   * / 
 
         d c l   ( i n d e x ,   l e n g t h ,   m a x ,   m i n ,   n u l l ,   s u b s t r ,   t r a n s l a t e ,   v e r i f y ) 
 	 	       b u i l t i n ; 
 
 / *   i n i t i a l i z e   l o c a l   v a r i a b l e s   * / 
         u n s p e c   ( m e a s 2 ) ,   r e _ f i l l   =   " 0 " b ; 
         G A P s   =   "   "   | |   E N   | |   P S   | |   P A D ; 
         t b l f m t n d x ,   t b l c o l n d x   =   0 ; 
         t b l f m t p t r ,   t b l c o l p t r   =   n u l l ; 
 
         i f   s h a r e d . t a b l e _ m o d e 
         t h e n 
             d o ; 
                 t b l f m t n d x   =   t b l d a t a . n d x ; 
                 t b l f m t p t r   =   t b l d a t a . f m t   ( t b l f m t n d x ) . p t r ; 
                 t b l c o l n d x   =   t b l f m t . c c o l ; 
                 t b l c o l p t r   =   t b l f m t . c o l p t r   ( t b l f m t . c c o l ) ; 
             e n d ; 
 
 / *   s e t   u p   f o r   a   f r e s h   l i n e   * / 
         i f   t e x t . i n p u t _ l i n e   =   " " 
         t h e n 
             d o ; 
                 i   =   v e r i f y   ( c t l _ l i n e ,   "   " )   -   1 ;   / *   c h e c k   f o r   l e a d i n g   W S   * / 
                 i f   i   >   0 	 	 	 / *   i f   a n y ,   c o n v e r t   t o   u n d e n t   * / 
                 t h e n   t e x t . p a r m s . l e f t . u n d e n t   = 
 	                 t e x t . p a r m s . l e f t . u n d e n t   -   i   *   s h a r e d . E N _ w i d t h ; 
                 c t l _ l i n e   =   l t r i m   ( c t l _ l i n e ) ; 
 
                 t e x t . i n p u t . i n f o   =   c t l . i n f o ; 
                 t e x t . i n p u t . k e e p   =   t e x t . p a r m s . k e e p ; 
                 t e x t . i n p u t . q u a d   =   t e x t . p a r m s . q u a d ; 
                 t e x t . i n p u t . u n d _ p r o t   =   " 0 " b ; 
 / * * * *                 t e x t . i n p u t . h a n g i n g   =   c t l . h a n g i n g ; 
 / * * * *                 c t l . h a n g i n g   =   " 0 " b ; * / 
                 t e x t . i n p u t . l i n e s p a c e   =   c t l . l i n e s p a c e ; 
                 t e x t . i n p u t . f n t _ c h n g   =   c t l . f n t _ c h n g ; 
                 u n s p e c   ( t e x t . i n p u t . c u r )   =   " 0 " b ; 
                 t e x t . i n p u t . f o n t ,   t e x t . i n p u t . c u r . f o n t   =   c t l . f o n t ; 
             e n d ; 
 
         t e x t . i n p u t . l m a r g   =   t e x t . p a r m s . l e f t . i n d e n t   -   t e x t . p a r m s . l e f t . u n d e n t ; 
         t e x t . i n p u t . r m a r g   = 
                   t e x t . p a r m s . m e a s u r e   -   t e x t . p a r m s . r i g h t . i n d e n t 
                   +   t e x t . p a r m s . r i g h t . u n d e n t ; 
 
         i f   s h a r e d . t a b l e _ m o d e   &   ^ t e x t . p a r m s . f o o t n o t e 
         t h e n 
             d o ; 
                 t e x t . i n p u t . l m a r g   =   t e x t . i n p u t . l m a r g   +   t b l c o l . m a r g i n . l e f t ; 
                 t e x t . i n p u t . r m a r g   =   t e x t . i n p u t . r m a r g   +   t b l c o l . m a r g i n . l e f t ; 
             e n d ; 
 
         t e x t . i n p u t . n e t ,   u s a b l e   =   t e x t . i n p u t . r m a r g   -   t e x t . i n p u t . l m a r g ; 
 
         i f   ^ ( c t l . f n t _ c h n g   |   c t l . f o o t r e f ) 	 / *   i f   n o t   a   f o n t   c h a n g e   o r   f t n   r e f   * / 
         t h e n 
             d o ; 	 	 	 	 / *   d o e s   i t   e n d   i n   a   c t l   s t r ?   * / 
                 s c n d x   =   l e n g t h   ( c t l _ l i n e ) ; 
 l o o k _ a g a i n : 
                 d c 1 _ n d x   =   i n d e x   ( r e v e r s e   ( s u b s t r   ( c t l _ l i n e ,   1 ,   s c n d x ) ) ,   D C 1 ) ; 
                 i f   d c 1 _ n d x   >   0 	 	 / *   i s   t h e r e   a   D C 1 ?   * / 
                 t h e n 
 	 d o ; 
 	     i f   d c 1 _ n d x   <   3 
 	     t h e n 
 	         d o ; 	 	 	 / *   b a c k   u p   * / 
 	             s c n d x   =   s c n d x   -   d c 1 _ n d x   -   1 ; 
 	             g o t o   l o o k _ a g a i n ; 	 / *   a n d   t r y   a g a i n   * / 
 	         e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   t h e   D C 1   b y t e   p l u s   l e n g t h   b y t e   v a l u e   * / 
 	     s c n d x   =   l e n g t h   ( c t l _ l i n e )   -   d c 1 _ n d x   +   1 ; 
 	     s c n d x   =   s c n d x   +   3   +   b i n   ( u n s p e c   ( s u b s t r   ( c t l _ l i n e ,   s c n d x   +   2 ,   1 ) ) ) ; 
 	     i f   s c n d x   <   l e n g t h   ( c t l _ l i n e ) 
 	     t h e n   c t l _ l i n e   =   r t r i m   ( c t l _ l i n e ) ; 
 	 e n d ; 
 
                 e l s e   c t l _ l i n e   =   r t r i m   ( c t l _ l i n e ) ; 
             e n d ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n 
             d o ; 
                 c a l l   i o a _   ( " f i l l :   ( l i n = ^ f / ^ f / ^ f   ^ a = ^ d   e ^ d   u ^ f ( ^ f ) ) " , 
 	       s h o w   ( t e x t . i n p u t . l m a r g ,   1 2 0 0 0 ) ,   s h o w   ( t e x t . i n p u t . r m a r g ,   1 2 0 0 0 ) , 
 	       s h o w   ( u s a b l e ,   1 2 0 0 0 ) ,   t e x t . b l k t y p e ,   t e x t . b l k n d x ,   t e x t . h d r . c o u n t , 
 	       s h o w   ( t e x t . h d r . u s e d ,   1 2 0 0 0 ) ,   s h o w   ( t e x t . h d r . t r l _ w s ,   1 2 0 0 0 ) ) ; 
 
                 c a l l   i o a _   ( " ^ - ( l f t = c ^ d   w ^ f   g ^ d   ^ f ^ 2 ( / ^ f ^ ) ^ [   f t n = ^ d / ^ f ^ ; ^ 2 s ^ ] " 
 	       | |   "   ^ a   ^ f ^ [   m o d = ^ d   ^ d ^ ; ^ 2 s ^ ] " 
 	       | |   " ^ [   P U N C ^ ] ^ [   F R F ^ ] ^ [   F C S ^ ] ^ [   U N S R ^ ] " 
 	       | |   " ^ [   U N S P ^ ] ^ [   A ^ ] ^ [   | ^ ] ^ [   * ^ ] ) ^ / ^ 5 x " " ^ a " " " ,   t e x t . i n p u t . c h r c t , 
 	       s h o w   ( t e x t . i n p u t . w i d t h ,   1 2 0 0 0 ) ,   t e x t . i n p u t . c u r . g a p s , 
 	       s h o w   ( t e x t . i n p u t . c u r . w i d t h   +   t e x t . i n p u t . c u r . m i n ,   1 2 0 0 0 ) , 
 	       s h o w   ( t e x t . i n p u t . c u r . w i d t h   +   t e x t . i n p u t . c u r . a v g ,   1 2 0 0 0 ) , 
 	       s h o w   ( t e x t . i n p u t . c u r . w i d t h   +   t e x t . i n p u t . c u r . m a x ,   1 2 0 0 0 ) , 
 	       ( t e x t . i n p u t . f t n . c t   >   0 ) ,   t e x t . i n p u t . f t n . c t , 
 	       s h o w   ( t e x t . i n p u t . f t n . u s e d ,   1 2 0 0 0 ) ,   t e x t . i n p u t . f o n t . n a m e , 
 	       s h o w   ( t e x t . i n p u t . f o n t . s i z e ,   1 0 0 0 ) ,   ( t e x t . i n p u t . m o d _ s t a r t   >   0 ) , 
 	       t e x t . i n p u t . m o d _ s t a r t ,   t e x t . i n p u t . m o d _ l e n ,   t e x t . i n p u t . p u n c t , 
 	       t e x t . i n p u t . f o o t r e f ,   t e x t . i n p u t . f n t _ c h n g ,   t e x t . i n p u t . u n s t r t , 
 	       t e x t . i n p u t . u n s t o p ,   t e x t . i n p u t . a r t , 
 	       ( t e x t . i n p u t . c b a r . m o d   |   t e x t . i n p u t . c b a r . a d d ) ,   t e x t . i n p u t . c b a r . d e l , 
 	       c o m p _ u t i l _ $ d i s p l a y   ( t e x t . i n p u t _ l i n e ,   0 ,   " 0 " b ) ) ; 
 
                 c a l l   i o a _   ( " ^ - ( n e w = c ^ d   ^ a   ^ f ^ [   F R F ^ ] ^ [   F C S ^ ] " 
 	       | |   " ^ [   U N S R ^ ] ^ [   U N S P ^ ] ^ [   A ^ ] ^ [   | ^ ] ^ [   * ^ ] ) ^ / ^ 5 x " " ^ a " " " , 
 	       l e n g t h   ( c t l _ l i n e ) ,   c t l . f o n t . n a m e ,   s h o w   ( c t l . f o n t . s i z e ,   1 0 0 0 ) , 
 	       c t l . f o o t r e f ,   c t l . f n t _ c h n g ,   c t l . u n s t r t ,   c t l . u n s t o p ,   t e x t . p a r m s . a r t , 
 	       ( t e x t . i n p u t . c b a r . m o d   |   t e x t . i n p u t . c b a r . a d d ) ,   t e x t . i n p u t . c b a r . d e l , 
 	       c o m p _ u t i l _ $ d i s p l a y   ( c t l _ l i n e ,   0 ,   " 0 " b ) ) ; 
             e n d ; 
 
         i f   u s a b l e   < =   0 	 	 	 / *   i f   t h e   l i n e   c a n t   b e   f i l l e d   * / 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   0 ,   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	       " N e t   l i n e   l e n g t h   i s   ^ f " ,   s h o w   ( u s a b l e ,   1 2 0 0 0 ) ) ; 
                 g o t o   r e t u r n _ ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   s e t   s t a r t   o f   l i n e   s c a n   * / 
         s c n d x   =   l e n g t h   ( t e x t . i n p u t _ l i n e )   +   1 ; 
 
 / *   a n y   l e f t o v e r   t e x t ?     a n y t h i n g   t o   b e   a d d e d   ?   * / 
         i f   l e n g t h   ( t e x t . i n p u t _ l i n e )   >   0   &   l e n g t h   ( c t l _ l i n e )   >   0 
         t h e n 
             d o ; 
                 r e v s t r   =   r e v e r s e   ( t e x t . i n p u t _ l i n e ) ; 
 
                 i f   ^ t e x t . i n p u t . f o o t r e f 	 / *   i f   l e f t o v e r   d o e s n t   e n d   * / 
                 t h e n 	 	 	 / *   w i t h   f o o t r e f   * / 
 	 d o ; 
 	     i f   t e x t . i n p u t . p u n c t 	 / *   a n d   i t   e n d s   w i t h   p u n c t u a t i o n   * / 
 	               |   ( s e a r c h   ( r e v s t r ,   " . : ! ? " )   =   1 
 	               |   ( s e a r c h   ( r e v s t r ,   " " " ) " )   =   1   &   s e a r c h   ( r e v s t r ,   " . ! ? " )   =   2 ) ) 
 	     t h e n 
 	         d o ; 
 	             i f   ^ ( c t l . f o o t r e f 	 / *   i f   a d d o n   i s   n o t   a   f o o t r e f   * / 
 	 	   |   c t l . u n s t o p ) 	 / *   o r   U N S T O P ,   * / 
 	             t h e n 	 	 / *   a d d   P S   a n d   W O R D S P A C E   * / 
 	                 d o ; 
 	 	 t e x t . i n p u t _ l i n e   =   t e x t . i n p u t _ l i n e   | |   P S   | |   "   " ; 
 	 	 t e x t . i n p u t . p u n c t ,   t e x t . i n p u t . f o o t r e f   =   " 0 " b ; 
 	                 e n d ; 	 	 / * * / 
 	 	 	 	 / *   s e t   f l a g   f o r   n e x t   t i m e   * / 
 	             e l s e   t e x t . i n p u t . p u n c t   =   " 1 " b ; 
 	         e n d ; 	 	 	 / *   o t h e r w i s e ,   o n l y   W O R D S P A C E   u n l e s s   * / 
 	 	 	 	 / *   l e f t o v e r   e n d s   w i t h   P A D ,   * / 
 	     e l s e   i f   i n d e x   ( r e v s t r ,   P A D )   ^ =   1   &   ^ t e x t . i n p u t . u n s t r t 
 	 	 	 	 / *   U N S T R T ,   * / 
 	 	 	 	 / *   o r   a   w o r d   b r e a k e r ,   * / 
 	               &   i n d e x   ( r e v s t r ,   s h a r e d . w r d _ b r k r )   ^ =   1 
 	 	 	 	 / *   o r   n e w   i s   f o o t r e f ,   U N S T O P ,   o r   F C S   * / 
 	               &   ^ ( c t l . f o o t r e f   |   c t l . u n s t o p   |   c t l . f n t _ c h n g ) 
 	     t h e n   t e x t . i n p u t _ l i n e   =   t e x t . i n p u t _ l i n e   | |   "   " ; 
 	 e n d ; 
 
                 e l s e 	 	 	 / *   l e f t o v e r   e n d s   w i t h   f o o t r e f   * / 
 	 d o ; 
 	     i f   ^ c t l . f o o t r e f 	 	 / *   n e w   i s n t   a   f o o t r e f   o r   s t a r t s   w i t h   * / 
 	 	 	 	 / *   c l o s i n g   p u n c t u a t i o n   * / 
 	               &   i n d e x   ( " . , ; : ! ? " " ) " ,   s u b s t r   ( c t l _ l i n e ,   1 ,   1 ) )   =   0 
 	     t h e n   i f   t e x t . i n p u t . p u n c t 	 / *   i f   l e f t   a l s o   e n d s   w i t h   p u n c t   * / 
 	               t h e n 
 	                   d o ; 
 	 	   t e x t . i n p u t _ l i n e   =   t e x t . i n p u t _ l i n e   | |   P S   | |   "   " ; 
 	 	   t e x t . i n p u t . p u n c t   =   " 0 " b ; 
 	                   e n d ; 
 	               e l s e   t e x t . i n p u t _ l i n e   =   t e x t . i n p u t _ l i n e   | |   "   " ; 
 	 e n d ; 
 
                 t e x t . i n p u t . f n t _ c h n g   =   c t l . f n t _ c h n g ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   c h e c k   f o r   c h a n g e   b a r s   * / 
         i f   t e x t . p a r m s . c b a r . m o d   |   t e x t . p a r m s . c b a r . a d d 
         t h e n 
             d o ; 
                 i f   t e x t . i n p u t . m o d _ s t a r t   =   0 	 / *   i f   s t a r t i n g   m o d   t e x t   * / 
                 t h e n   t e x t . i n p u t . m o d _ s t a r t   =   s c n d x ; 
                 t e x t . i n p u t . m o d _ l e n   =   t e x t . i n p u t . m o d _ l e n   +   l e n g t h   ( c t l _ l i n e ) ; 
             e n d ; 
         t e x t . i n p u t . c b a r . a d d   =   t e x t . i n p u t . c b a r . a d d   |   t e x t . p a r m s . c b a r . a d d ; 
         t e x t . i n p u t . c b a r . m o d   =   t e x t . i n p u t . c b a r . m o d   |   t e x t . p a r m s . c b a r . m o d ; 
         t e x t . i n p u t . c b a r . d e l   =   t e x t . i n p u t . c b a r . d e l   |   t e x t . p a r m s . c b a r . d e l ; 
         t e x t . p a r m s . c b a r . d e l   =   " 0 " b ; 
         i f   t e x t . i n p u t . c b a r . d e l 
         t h e n   s h a r e d . c b a r _ t y p e   =   " " ; 	 / * * / 
 	 	 	 	 / *   a p p e n d   t h e   n e w   t e x t   * / 
         t e x t . i n p u t _ l i n e   =   t e x t . i n p u t _ l i n e   | |   c t l _ l i n e ; 
         t e x t . i n p u t . a r t   =   t e x t . i n p u t . a r t   |   t e x t . p a r m s . a r t ; 
         t e x t . i n p u t . f o o t r e f   =   c t l . f o o t r e f ; 
         t e x t . i n p u t . f n t _ c h n g   =   t e x t . i n p u t . f n t _ c h n g   &   c t l . f n t _ c h n g ; 
         t e x t . i n p u t . u n s t r t   =   c t l . u n s t r t ; 
         t e x t . i n p u t . u n s t o p   =   c t l . u n s t o p ; 
         c t l . u n s t r t ,   c t l . u n s t o p ,   c t l . f n t _ c h n g   =   " 0 " b ; 
 	 	 	 	 / *   i s   t h i s   a   h a n g i n g   u n d e n t ?   * / 
         i f   t e x t . p a r m s . l e f t . u n d e n t   >   0   &   t e x t . i n p u t . h a n g i n g 
         t h e n 
             d o ; 	 	 	 	 / *   m e a s u r e   t h e   h a n g e r   * / 
                 c a l l   c o m p _ m e a s u r e _   ( t e x t . i n p u t _ l i n e ,   a d d r   ( t e x t . i n p u t . c u r . f o n t ) ,   " 0 " b , 
 	       t e x t . i n p u t . a r t ,   q u a d l ,   0 ,   a d d r   ( t e x t . i n p u t . c u r ) ,   a d d r   ( m e a s 2 ) , 
 	       a d d r   ( t e x t . i n p u t . i n f o ) ) ; 
 
                 i f   t e x t . i n p u t . c u r . w i d t h   +   t e x t . i n p u t . c u r . a v g   <   t e x t . p a r m s . l e f t . u n d e n t 
                 t h e n   t e x t . i n p u t . l i n e s p a c e   =   0 ; 
                 e l s e   t e x t . i n p u t . l i n e s p a c e   =   t e x t . p a r m s . l i n e s p a c e ; 
 
                 t e x t . i n p u t . q u a d   =   q u a d l ; 	 / *   s e t   l e f t   * / 
 
                 c a l l   p u t _ l i n e ; 
                 t e x t . i n p u t _ l i n e   =   " " ; 
                 t e x t . i n p u t . w i d t h   =   0 ; 
                 g o t o   r e t u r n _ ; 
             e n d ; 
 
 f i l l _ l o o p : 	 	 	 / *   s c a n   t h e   l i n e   * / 
         d o   w h i l e   ( t e x t . i n p u t . c u r . c h r c t   <   l e n g t h   ( t e x t . i n p u t _ l i n e ) ) ; 
 	 	 	 	 / *   a n y   u n d e n t   t h a t   n e e d s   p r o t e c t i o n ?   * / 
             i f   t e x t . p a r m s . l e f t . u n d e n t   >   0   &   ^ t e x t . i n p u t . u n d _ p r o t 
             t h e n 
                 d o ; 	 	 	 / *   m e a s u r e   u p   t o   t h e   u n d e n t   v a l u e   * / 
 	 c a l l   c o m p _ m e a s u r e _   ( t e x t . i n p u t _ l i n e ,   a d d r   ( t e x t . i n p u t . c u r . f o n t ) , 
 	           " 0 " b ,   t e x t . i n p u t . a r t ,   q u a d l ,   t e x t . p a r m s . l e f t . u n d e n t , 
 	           a d d r   ( t e x t . i n p u t . c u r ) ,   a d d r   ( m e a s 2 ) ,   a d d r   ( t e x t . i n p u t . i n f o ) ) ; 
 	 s c n d x   =   t e x t . i n p u t . c u r . c h r c t ;   / *   u p d a t e   s c a n   i n d e x   * / 
 
 	 d o   i   =   1   t o   t e x t . i n p u t . c u r . c h r c t ; 
 	 	 	 	 / *   p r o t e c t   W S   * / 
 	     i f   s u b s t r   ( t e x t . i n p u t _ l i n e ,   i ,   1 )   =   D C 1 
 	     t h e n 	 	 	 / *   s k i p   c o n t r o l   s t r i n g s   * / 
 	         d o ; 
 	             D C x x _ p   =   a d d r   ( s u b s t r   ( t e x t . i n p u t _ l i n e ,   i ) ) ; 
 	             i   =   i   +   d c x x . l e n g   +   3 ; 
 	         e n d ; 
 	     e l s e   i f   s u b s t r   ( t e x t . i n p u t _ l i n e ,   i ,   1 )   =   "   " 
 	     t h e n   s u b s t r   ( t e x t . i n p u t _ l i n e ,   i ,   1 )   =   E N ; 
 	 e n d ; 
 
 	 t e x t . i n p u t . u n d _ p r o t   =   " 1 " b ; 	 / *   u n d e n t   h a s   b e e n   p r o t e c t e d   * / 
                 e n d ; 
 
             c a l l 	 	 	 / *   g r a b   s o m e   t e x t   * / 
 	   c o m p _ m e a s u r e _   ( t e x t . i n p u t _ l i n e ,   a d d r   ( t e x t . i n p u t . c u r . f o n t ) ,   " 1 " b , 
 	   t e x t . i n p u t . a r t ,   t e x t . i n p u t . q u a d ,   u s a b l e ,   a d d r   ( t e x t . i n p u t . c u r ) , 
 	   a d d r   ( m e a s 2 ) ,   a d d r   ( t e x t . i n p u t . i n f o ) ) ; 
 	 	 	 	 / * * / 
 	 	 	 	 / *   d i d   a   f o o t r e f   c a u s e   a n   o v e r s e t ?   * / 
             i f   m e a s 2 . w i d t h   +   m e a s 2 . a v g   >   u s a b l e   &   c t l . f o o t r e f   &   ^ r e _ f i l l 
 	   &   t e x t . i n p u t . c u r . g a p s   >   0 
             t h e n 
                 d o ; 	 	 	 / *   c l e a r   t h e   d e c k s   * / 
 	 u n s p e c   ( t e x t . i n p u t . c u r )   =   " 0 " b ; 
 	 t e x t . i n p u t . c u r . f o n t   =   t e x t . i n p u t . f o n t ; 
 	 r e _ f i l l   =   " 1 " b ; 
 	 g o t o   f i l l _ l o o p ; 	 	 / *   a n d   s t a r t   o v e r   * / 
                 e n d ; 
 
             i f   m e a s 2 . c h r c t   >   0 	 	 / *   d i d   i t   o v e r s e t ?   * / 
             t h e n 
                 d o ; 
 	 i f   t e x t . i n p u t . c u r . c h r c t   =   0 	 / *   o v e r l e n g t h   l i n e   * / 
 	 t h e n   t e x t . i n p u t . c u r   =   m e a s 2 ; 
 	 c a l l   p u t _ l i n e ; 
                 e n d ; 
 
             c t l . f o o t r e f ,   r e _ f i l l   =   " 0 " b ; 
 
             i f   m e a s 2 . c h r c t   =   0 	 	 / *   i f   n o   o v e r f l o w   * / 
             t h e n 	 	 	 / *   t h i s   i s   a   l e f t o v e r   * / 
                 d o ; 	 	 	 / *   r e s t o r e   f o n t   * / 
 	 t e x t . i n p u t . c u r . f o n t   =   t e x t . i n p u t . f o n t ; 
 	 g o t o   r e t u r n _ ; 
                 e n d ; 
 
 / *             i f   t e x t . i n p u t . q u a d   ^ =   j u s t 	 / *   i f   n o t   j u s t i f y i n g   * / 
 / * 	   &   s h a r e d . h y p h _ m o d e 	 	 / *   t r y   h y p h e n a t i o n ?   * / 
 / *   &   t e x t . i n p u t . c u r . w i d t h   +   t e x t . i n p u t . c u r . m a x   <   u s a b l e * / 
 / *             t h e n   g o t o   t r y _ h y p h ; * / 
 
 / *   t e x t . i n p u t . w i d t h   =   t e x t . i n p u t . c u r . w i d t h   +   t e x t . i n p u t . c u r . a v g ; * / 
         e n d   f i l l _ l o o p ; 
 
 r e t u r n _ : 
         i f   s h a r e d . b l k p t r   ^ =   n u l l 	 	 / *   c l e a n   u p   l e f t o v e r   * / 
         t h e n   i f   t e x t . i n p u t _ l i n e   ^ =   " " 
                   t h e n 
 	   d o ; 
 	       t e x t . i n p u t . w i d t h   =   t e x t . i n p u t . c u r . w i d t h ; 
 	       t e x t . i n p u t . c u r . f o n t   =   c t l . c u r . f o n t ; 
 	 	 	 	 / *   c h e c k   p u n c t u a t i o n   * / 
 	       i f   s c n d x   >   l e n g t h   ( t e x t . i n p u t _ l i n e ) 
 	       t h e n 
 	           d o ; 
 	               i   =   l e n g t h   ( t e x t . i n p u t _ l i n e ) ; 
 ( n o s t r g ) : 
 	               i f   i n d e x   ( " . : ! ? " ,   s u b s t r   ( t e x t . i n p u t _ l i n e ,   i ,   1 ) )   ^ =   0 
 	 	     |   ( i n d e x   ( " " " ) " ,   s u b s t r   ( t e x t . i n p u t _ l i n e ,   i ,   1 ) )   ^ =   0 
 	 	     &   i n d e x   ( " . ! ? " ,   s u b s t r   ( t e x t . i n p u t _ l i n e ,   i   -   1 ,   1 ) )   ^ =   0 ) 
 	               t h e n   t e x t . i n p u t . p u n c t   =   " 1 " b ; 
 	               e l s e   t e x t . i n p u t . p u n c t   =   " 0 " b ; 
 	           e n d ; 
 	   e n d ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n 
             d o ; 
                 i f   s h a r e d . e n d _ o u t p u t 
                 t h e n   c a l l   i o a _   ( " ^ 5 x ( f i l l :   E N D ) " ) ; 
 
                 e l s e   c a l l   i o a _   ( " ^ 5 x ( f i l l :   l f t = c ^ d   w ^ f   g ^ d   ^ f ^ 2 ( / ^ f ^ ) " 
 	                 | |   " ^ [   f t n = ^ d / ^ f ^ ; ^ 2 s ^ ]   ^ a   ^ f ^ [   m o d = ^ d   ^ d ^ ; ^ 2 s ^ ]   ^ a = ^ d   e ^ d " 
 	                 | | 
 	                 "   u ^ f ( ^ f ) ^ [   F R F ^ ] ^ [   F C S ^ ] ^ [   A ^ ] ^ [   | ^ ] ^ [   * ^ ] ) ^ [ ^ / ^ 5 x " " ^ a " " ^ ] " , 
 	                 t e x t . i n p u t . c h r c t ,   s h o w   ( t e x t . i n p u t . w i d t h ,   1 2 0 0 0 ) , 
 	                 t e x t . i n p u t . c u r . g a p s , 
 	                 s h o w   ( t e x t . i n p u t . c u r . w i d t h   +   t e x t . i n p u t . c u r . m i n ,   1 2 0 0 0 ) , 
 	                 s h o w   ( t e x t . i n p u t . c u r . w i d t h   +   t e x t . i n p u t . c u r . a v g ,   1 2 0 0 0 ) , 
 	                 s h o w   ( t e x t . i n p u t . c u r . w i d t h   +   t e x t . i n p u t . c u r . m a x ,   1 2 0 0 0 ) , 
 	                 ( t e x t . i n p u t . f t n . c t   >   0 ) ,   t e x t . i n p u t . f t n . c t , 
 	                 s h o w   ( t e x t . i n p u t . f t n . u s e d ,   1 2 0 0 0 ) ,   t e x t . i n p u t . f o n t . n a m e , 
 	                 s h o w   ( t e x t . i n p u t . f o n t . s i z e ,   1 0 0 0 ) , 
 	                 ( t e x t . i n p u t . m o d _ s t a r t   >   0 ) ,   t e x t . i n p u t . m o d _ s t a r t , 
 	                 t e x t . i n p u t . m o d _ l e n ,   t e x t . b l k t y p e ,   t e x t . b l k n d x , 
 	                 t e x t . h d r . c o u n t ,   s h o w   ( t e x t . h d r . u s e d ,   1 2 0 0 0 ) , 
 	                 s h o w   ( t e x t . h d r . t r l _ w s ,   1 2 0 0 0 ) ,   t e x t . i n p u t . f o o t r e f , 
 	                 t e x t . i n p u t . f n t _ c h n g ,   t e x t . i n p u t . a r t , 
 	                 ( t e x t . i n p u t . c b a r . m o d   |   t e x t . i n p u t . c b a r . a d d ) , 
 	                 t e x t . i n p u t . c b a r . d e l ,   ( l e n g t h   ( t e x t . i n p u t _ l i n e )   >   0 ) , 
 	                 c o m p _ u t i l _ $ d i s p l a y   ( t e x t . i n p u t _ l i n e ,   0 ,   " 0 " b ) ) ; 
             e n d ; 
         r e t u r n ; 
 % p a g e ; 
 / *   a d d   t e x t   l i n e   t o   b l o c k   * / 
 
 p u t _ l i n e : 
     p r o c ; 
 
         d c l   o v e r s e t 	       c h a r   ( 1 0 2 0 )   v a r ;   / *   o v e r s e t   t e x t   * / 
 
         o v e r s e t   =   " " ; 	 	 	 / * * / 
 	 	 	 	 / *   i s   t h e r e   a n   o v e r s e t ?   * / 
         i f   t e x t . i n p u t . c u r . c h r c t   <   l e n g t h   ( t e x t . i n p u t _ l i n e ) 
         t h e n 
             d o ; 
                 o v e r s e t   =   s u b s t r   ( t e x t . i n p u t _ l i n e ,   t e x t . i n p u t . c u r . c h r c t   +   1 ) ; 
                 t e x t . i n p u t _ l i n e   =   s u b s t r   ( t e x t . i n p u t _ l i n e ,   1 ,   t e x t . i n p u t . c u r . c h r c t ) ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   f i n a l   w i d t h   * / 
         t e x t . i n p u t . w i d t h   =   t e x t . i n p u t . c u r . w i d t h ; 
 
         i f   t e x t . i n p u t . m o d _ s t a r t   >   0 
                   &   t e x t . i n p u t . m o d _ s t a r t   < =   l e n g t h   ( t e x t . i n p u t _ l i n e ) 
         t h e n   t e x t . i n p u t . c b a r . m o d   =   " 1 " b ; 
         e l s e   t e x t . i n p u t . c b a r . m o d   =   " 0 " b ; 
 
         i f   t e x t . i n p u t . f n t _ c h n g 
                   &   l e n g t h   ( t e x t . i n p u t _ l i n e )   =   l e n g t h   ( t e x t . i n p u t . c u r . f o n t . f c s _ s t r ) 
         t h e n   t e x t . i n p u t . l i n e s p a c e   =   0 ; 
         e l s e   i f   ^ t e x t . i n p u t . h a n g i n g 
         t h e n   t e x t . i n p u t . l i n e s p a c e   =   t e x t . p a r m s . l i n e s p a c e ; 
 
         c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . b l k p t r ,   " 0 " b ,   " 1 " b ,   " 0 " b ,   t e x t . i n p u t . o f l o , 
                   a d d r   ( t e x t . i n p u t ) ) ; 
         t e x t . i n p u t _ l i n e   =   " " ; 
         t e x t . i n p u t . c b a r   =   t e x t . p a r m s . c b a r ; 
 
         i f   t e x t . i n p u t . o f l o   &   ^ t e x t . p a r m s . k e e p   &   t e x t . h d r . c o l n o   > =   0 
                   &   ^ s h a r e d . t a b l e _ m o d e 
         t h e n   c a l l   c o m p _ b r e a k _   ( n e e d _ b r e a k ,   - 2 ) ; 
 
         i f   s h a r e d . e n d _ o u t p u t 
         t h e n   g o t o   r e t u r n _ ; 
 
         i f   o v e r s e t   ^ =   " " 	 	 / *   a n y   l e f t o v e r s ?   * / 
         t h e n 
             d o ; 
                 i f   s h a r e d . b l k p t r   =   n u l l 
                 t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " t x " , 
 	                 c o n s t . c u r r e n t _ p a r m s _ p t r ,   " 0 " b ) ; 
 
                 t e x t . i n p u t _ l i n e   =   l t r i m   ( r t r i m   ( o v e r s e t ) ,   P S   | |   "   " ) ; 
 
                 t e x t . i n p u t . m o d _ l e n   = 	 	 / *   u p d a t e   m o d i f i c a t i o n   d a t a   * / 
 	       m i n   ( l e n g t h   ( t e x t . i n p u t _ l i n e ) , 
 	       m a x   ( t e x t . i n p u t . m o d _ s t a r t   +   t e x t . i n p u t . m o d _ l e n 
 	       -   l e n g t h   ( t e x t . i n p u t _ l i n e )   -   1 ,   0 ) ) ; 
                 i f   t e x t . i n p u t . m o d _ l e n   >   0 
                 t h e n   t e x t . i n p u t . m o d _ s t a r t   =   1 ; 
                 e l s e 
 	 d o ; 
 	     t e x t . i n p u t . m o d _ s t a r t   =   0 ; 
 	     u n s p e c   ( t e x t . i n p u t . c b a r )   =   " 0 " b ; 
 	 e n d ; 
 
                 t e x t . i n p u t . f o n t   =   t e x t . i n p u t . c u r . f o n t ; 
                 u n s p e c   ( t e x t . i n p u t . c u r )   =   " 0 " b ;   / *   r e f r e s h   s c a n   d a t a   * / 
                 t e x t . i n p u t . c u r . f o n t   =   t e x t . i n p u t . f o n t ; 
 
                 t e x t . i n p u t . l m a r g   =   t e x t . p a r m s . l e f t . i n d e n t ; 
                 t e x t . i n p u t . r m a r g   =   t e x t . p a r m s . m e a s u r e   -   t e x t . p a r m s . r i g h t . i n d e n t ; 
                 t e x t . i n p u t . n e t ,   u s a b l e   =   t e x t . i n p u t . r m a r g   -   t e x t . i n p u t . l m a r g ; 
 
                 i f   s h a r e d . t a b l e _ m o d e   &   ^ t e x t . p a r m s . f o o t n o t e 
                 t h e n 
 	 d o ; 
 	     t e x t . i n p u t . l m a r g   =   t e x t . i n p u t . l m a r g   +   t b l c o l . m a r g i n . l e f t ; 
 	     t e x t . i n p u t . r m a r g   =   t e x t . i n p u t . r m a r g   +   t b l c o l . m a r g i n . l e f t ; 
 	 e n d ; 
             e n d ; 
 
         e l s e 
             d o ; 	 	 	 	 / *   a l l   i n p u t   u s e d   * / 
                 t e x t . i n p u t _ l i n e   =   " " ; 
                 t e x t . i n p u t . c h r c t ,   t e x t . i n p u t . m o d _ s t a r t ,   t e x t . i n p u t . m o d _ l e n   =   0 ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   u n d e n t s   u s e d   * / 
         t e x t . i n p u t . h a n g i n g ,   t e x t . i n p u t . u n d _ p r o t   =   " 0 " b ; 
         t e x t . p a r m s . l e f t . u n d e n t ,   t e x t . p a r m s . r i g h t . u n d e n t   =   0 ; 
 
 / * * * *         i f   ^ t e x t . i n p u t . f n t _ c h n g 
 / * * * *         t h e n   c o l . h d r . h d s p c   =   0 ; 	 	 / *   h e a d   s p a c e   h a s   b e e n   c o v e r e d   * / 
         t e x t . i n p u t . f n t _ c h n g   =   " 0 " b ; 
         t e x t . i n p u t . f t n   =   t e x t _ e n t r y . f t n ; 	 / *   f o o t n o t e s   c l e a r e d   o u t   * / 
 
         s c n d x   =   1 ; 	 	 	 / *   r e s e t   s c a n   i n d e x   * / 
         t e x t . i n p u t . i n f o   =   c t l . i n f o ; 	 / *   u p d a t e   t e x t   l i n e   s t u f f   * / 
 
         i f   ^ s h a r e d . t a b l e _ m o d e 
         t h e n 
             d o ; 
                 t e x t . i n p u t . l m a r g   =   t e x t . p a r m s . l e f t . i n d e n t ; 
                 t e x t . i n p u t . r m a r g   =   t e x t . p a r m s . m e a s u r e   -   t e x t . p a r m s . r i g h t . i n d e n t ; 
                 t e x t . i n p u t . n e t ,   u s a b l e   =   t e x t . i n p u t . r m a r g   -   t e x t . i n p u t . l m a r g ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   p u t   a n y   p i c t u r e s   * / 
         i f   s h a r e d . p i c t u r e . c o u n t   >   0   &   t e x t . b l k t y p e   ^ =   " p i " 
         t h e n   c a l l   c o m p _ u t i l _ $ p i c t u r e s   ( s h a r e d . b l k p t r ) ; 
 
     e n d   p u t _ l i n e ; 
 % p a g e ; 
 s h o w : 
     p r o c   ( d a t u m ,   s c a l e )   r e t u r n s   ( f i x e d   d e c   ( 1 1 ,   3 ) ) ; 
         d c l   d a t u m 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   s c a l e 	       f i x e d   b i n   ( 3 1 ) ; 
 
         r e t u r n   ( r o u n d   ( d e c   ( r o u n d   ( d i v i d e   ( d a t u m ,   s c a l e ,   3 1 ,   1 1 ) ,   1 0 ) ,   1 1 ,   4 ) ,   3 ) ) ; 
     e n d   s h o w ; 
 % p a g e ; 
 % i n c l u d e   c o m p _ b r k t y p e s ; 
 % i n c l u d e   c o m p _ c o l u m n ; 
 % i n c l u d e   c o m p _ D C d a t a ; 
 % i n c l u d e   c o m p _ d v t ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ f o n t ; 
 % i n c l u d e   c o m p _ m e t a c o d e s ; 
 % i n c l u d e   c o m p _ p a g e ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t a b l e ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p s t a t ; 
 
     e n d ; 
    
 
 
  
 	 	         c o m p _ f o n t _ . p l 1                                     0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 0 9 . 4             1 2 4 8 7 5     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   s u b r o u t i n e   t o   c h a n g e   c u r r e n t   f o n t   a n d / o r   p o i n t   s i z e   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ f o n t _ : 
     p r o c   ( l o a d ,   b u f f e r ,   f c s _ s t r ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   l o a d 	       b i t   ( 1 ) ; 	 / *   O N   =   l o a d   t h e   g i v e n   f o n t .   * / 
 	 	 	 	 / *             ( i f   b u f f e r   i s   n u l l ,   t h e n   * / 
 	 	 	 	 / *               i n i t i a l i z e   t h e   f o n t   s t a c k   * / 
 	 	 	 	 / *               w i t h   d e v i c e   d e f a u l t s )   * / 
 	 	 	 	 / *   O F F   =   p r o c e s s   t h e   c o n t r o l   i n f o   * / 
 	 	 	 	 / *               i n   b u f f e r   * / 
         d c l   b u f f e r 	       c h a r   ( * )   v a r ; 	 / *   f o n t   c h a n g e   i n f o   * / 
         d c l   f c s _ s t r 	       c h a r   ( 8 ) ; 	 / *   F C S   s t r i n g   f o r   t h i s   f o n t   * / 
 
         f c s _ s t r   =   " " ; 	 	 	 / *   c l e a r   r e t u r n   v a l u e   * / 
         D C F S . m a r k   =   D C 1 ; 	 	 / *   s e t u p   t h e   f o n t   c h a n g e   s t r i n g   * / 
         D C F S . t y p e   =   t y p e _ f o n t ; 
         D C F S . l e n g   =   d c f s _ l e n ; 
         i n i t _ s t k ,   u n s p e c   ( l o c a l _ f o n t )   =   " 0 " b ; 
 
         i f   l o a d 	 	 	 / *   l o a d i n g   a   f o n t   o r   i n i t i n g ?   * / 
         t h e n 
             d o ; 
                 i f   b u f f e r   =   " " 	 	 / *   n o   b u f f e r ,   w e ' r e   i n i t i n g   * / 
                 t h e n 
 	 d o ; 
 	     i f   s h a r e d . b u g _ m o d e   |   d b _ s w   &   d t _ s w 
 	     t h e n   c a l l   i o a _   ( " c o m p _ f o n t :   ( i n i t   s t a c k ) " ) ; 
 
 	     i n i t _ s t k   =   " 1 " b ; 	 	 / * * / 
 	 	 	 	 / *   w i p e   t h e   f o n t   s t a c k   * / 
 	     u n s p e c   ( d e f a u l t _ p a r m s . f n t s t k )   =   " 0 " b ; 
 	     d e f a u l t _ p a r m s . f n t s t k . e n t r y . m e m p t r , 
 	               d e f a u l t _ p a r m s . f n t s t k . e n t r y . f n t p t r   =   n u l l ; 
 	     d e f a u l t _ p a r m s . f n t s t k . e n t r y . f a m _ n a m e , 
 	               d e f a u l t _ p a r m s . f n t s t k . e n t r y . m e m _ n a m e , 
 	               d e f a u l t _ p a r m s . f n t s t k . e n t r y . n a m e , 
 	               d e f a u l t _ p a r m s . f n t s t k . e n t r y . f c s _ s t r   =   " " ; 
 	 	 	 	 / *   n e e d   t h e   m e d i a   s e l e c t   t a b l e ?   * / 
 	     i f   f n t t b l d a t a . m e d s e l _ p t r   =   n u l l 
 	     t h e n 
 	         d o ; 
 	             f n t t b l d a t a . m e d s e l _ p t r   = 
 	 	   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( m e d s e l ) ) ; 
 	             m e d s e l _ t a b l e _ p t r   = 
 	 	   p o i n t e r   ( c o n s t . d v i d p t r ,   c o m p _ d v t . m e d s e l _ t a b l e _ r ) ; 
 	 	 	 	 / *   l o a d   o u t   a l l   m e d i a   s e l e c t   s t r i n g s   * / 
 	             d o   i   =   1   t o   m e d s e l _ t a b l e . c o u n t ; 
 	                 i f   m e d s e l _ t a b l e . r e f _ r   ( i )   ^ =   " 0 " b 
 	                 t h e n 
 	 	 d o ; 
 	 	     m e d _ s e l _ p   = 
 	 	               p o i n t e r   ( c o n s t . d e v p t r ,   m e d s e l _ t a b l e . r e f _ r   ( i ) ) ; 
 	 	     m e d s e l   ( i )   =   s u b s t r   ( m e d _ s e l . s t r ,   1 ,   m e d _ s e l . s t r _ l ) ; 
 	 	 e n d ; 
 	                 e l s e   m e d s e l   ( i )   =   " " ; 
 	             e n d ; 
 	         e n d ; 
 
 	     i s t k   =   0 ; 	 	 / *   w h e r e   t o   b e g i n   s t a c k i n g   * / 
 	     d e f a u l t _ p a r m s . f n t s t k . e n t r y   ( 0 ) . s i z e   =   c o m p _ d v t . i n i t _ p s ; 
 	     l o c a l _ f o n t   =   d e f a u l t _ p a r m s . f n t s t k . e n t r y   ( 0 ) ; 
 
 	     l o c a l _ f o n t . n a m e   =   " f o o t n o t e " ; 
 	     c a l l   l o a d _ f o n t ; 
 	     f o o t n o t e _ p a r m s . f n t s t k   =   d e f a u l t _ p a r m s . f n t s t k ; 
 	     D C F S . f   =   l o c a l _ f o n t . d e v f n t ; 
 	     D C F S . p   =   l o c a l _ f o n t . s i z e ; 
 	     l o c a l _ f o n t . f c s _ s t r   =   D C F S _ s t r ; 
 	     f o o t n o t e _ p a r m s . f n t s t k . e n t r y   ( 0 )   =   l o c a l _ f o n t ; 
 
 	     l o c a l _ f o n t . n a m e   =   " t e x t " ; 
 	     c a l l   l o a d _ f o n t ; 
 	     t e x t _ p a r m s . f n t s t k   =   d e f a u l t _ p a r m s . f n t s t k ; 
 	     D C F S . f   =   l o c a l _ f o n t . d e v f n t ; 
 	     D C F S . p   =   l o c a l _ f o n t . s i z e ; 
 	     l o c a l _ f o n t . f c s _ s t r   =   D C F S _ s t r ; 
 	     d e f a u l t _ p a r m s . f n t s t k . e n t r y   ( 0 )   =   l o c a l _ f o n t ; 
 	     f n t s t k _ e p t r   =   a d d r   ( t e x t _ p a r m s . f n t s t k . e n t r y   ( 0 ) ) ; 
 	 e n d ; 
 
                 e l s e 	 	 	 / *   l o a d   t h e   g i v e n   f o n t   * / 
 	 d o ; 
 	     l o c a l _ f o n t . n a m e   =   b u f f e r ; 
 	     c a l l   l o a d _ f o n t ; 
 
 	     i f   s h a r e d . b u g _ m o d e   |   d b _ s w   &   d t _ s w 
 	     t h e n   c a l l   i o a _   ( " c o m p _ f o n t :   ( l o a d   f n t = ^ d   ^ a   ^ f ) " , 
 	 	     l o c a l _ f o n t . d e v f n t ,   l o c a l _ f o n t . n a m e , 
 	 	     d e c   ( r o u n d   ( d i v i d e   ( l o c a l _ f o n t . s i z e ,   1 0 0 0 ,   3 1 ,   1 1 ) ,   1 0 ) , 
 	 	     1 1 ,   3 ) ) ; 
 	 e n d ; 
 
                 g o t o   r e t u r n ; 
             e n d ; 
 
 / *   S W I T C H   F O N T   A N D / O R   P O I N T S I Z E   * / 
         i s t k   =   c u r r e n t _ p a r m s . f n t s t k . i n d e x ; 	 / *   s e t   c u r r e n t   s t a c k   p o s i t i o n   * / 
         f n t s t k _ e p t r   =   a d d r   ( c u r r e n t _ p a r m s . f n t s t k . e n t r y   ( i s t k ) ) ; 
         l o c a l _ f o n t   =   f n t s t k _ e n t r y ; 	 / *   m a k e   c o p y   o f   s t a c k   e n t r y   i n   * / 
 	 	 	 	 / *   c a s e   g i v e n   d a t a   i s   b a d   a n d   w e   * / 
 	 	 	 	 / *   h a v e   t o   c o n t i n u e   t h e   c u r r e n t   f o n t   * / 
 
         i f   s h a r e d . b u g _ m o d e   |   d b _ s w   &   d t _ s w 
         t h e n   c a l l   i o a _   ( " c o m p _ f o n t :   ( c o l = ^ d   s t k = ^ d   f n t = ^ d   ^ a   ^ f )   ^ a " , 
 	         p a g e . h d r . c o l _ i n d e x ,   i s t k ,   f n t s t k _ e n t r y . d e v f n t ,   f n t s t k _ e n t r y . n a m e , 
 	         d e c   ( r o u n d   ( d i v i d e   ( f n t s t k _ e n t r y . s i z e ,   1 0 0 0 ,   3 1 ,   1 1 ) ,   1 0 ) ,   1 1 ,   3 ) 
 	         ,   b u f f e r ) ; 
 
         i f   b u f f e r   =   " " 	 	 	 / *   i f   n o   f o n t   g i v e n ,   t h e n   p o p   s t a c k   * / 
         t h e n 
             d o ; 	 	 	 	 / *   b a c k   u p   1   l e v e l   * / 
                 i s t k   =   c u r r e n t _ p a r m s . f n t s t k . i n d e x   -   1 ; 
                 i f   i s t k   <   0 	 	 	 / *   m a k e   t h e   s t a c k   c i r c u l a r   * / 
                 t h e n   i s t k   =   h b o u n d   ( c u r r e n t _ p a r m s . f n t s t k . e n t r y ,   1 ) ; 
 	 	 	 	 / *   i f   n o t h i n g   s t a c k e d   * / 
                 i f   c u r r e n t _ p a r m s . f n t s t k   ( i s t k ) . f a m n d x   =   0 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " F o n t   s t a c k   e x h a u s t e d . " ,   a d d r   ( c t l . i n f o ) , 
 	               b u f f e r ) ; 
 e r r o r _ r e s u l t : 
 	     i f   l o a d 
 	     t h e n   s i g n a l   c o m p _ a b o r t ; 
 
 	     i f   a b o r t _ s w 
 	     t h e n   s i g n a l   f o n t _ e r r o r ; 
 
 	     g o t o   r e t u r n ; 
 	 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   c l e a r   c u r r e n t   l e v e l   * / 
                 c u r r e n t _ p a r m s . f n t s t k . f a m n d x   ( c u r r e n t _ p a r m s . f n t s t k . i n d e x )   =   0 ; 
 	 	 	 	 / *   a n d   p o p   t h e   s t a c k   * / 
                 c u r r e n t _ p a r m s . f n t s t k . i n d e x   =   i s t k ; 
 	 	 	 	 / *   p o i n t   t o   i t   * / 
                 f n t s t k _ e p t r   =   a d d r   ( c u r r e n t _ p a r m s . f n t s t k . e n t r y   ( i s t k ) ) ; 
                 l o c a l _ f o n t   =   f n t s t k _ e n t r y ; 	 / *   c o p y   f o r   r e t u r n   * / 
                 f n t t b l _ p t r   =   f n t t b l d a t a . p t r   ( f n t s t k _ e n t r y . d e v f n t ) ; 
                 m e m b e r _ p t r   =   f n t s t k _ e n t r y . m e m p t r ; 
 
                 s h a r e d . E N _ w i d t h   = 
 	       d i v i d e   ( l o c a l _ f o n t . s i z e   *   f n t t b l . u n i t s   ( r a n k   ( E N ) ) , 
 	       f n t t b l . r e l _ u n i t s ,   3 1 ,   1 0 ) ; 
             e n d ; 
 
         e l s e 
             d o ; 	 	 	 	 / *   a   f o n t   i s   g i v e n   * / 
 	 	 	 	 / *   p u s h   t h e   s t a c k     * / 
                 i s t k ,   c u r r e n t _ p a r m s . f n t s t k . i n d e x   = 
 	       m o d   ( i s t k   +   1 ,   h b o u n d   ( c u r r e n t _ p a r m s . f n t s t k . e n t r y ,   1 )   +   1 ) ; 
 	 	 	 	 / *   p o i n t   t o   n e w   s t a c k   e n t r y   * / 
                 f n t s t k _ e p t r   =   a d d r   ( c u r r e n t _ p a r m s . f n t s t k . e n t r y   ( i s t k ) ) ; 
                 f n t s t k _ e n t r y   =   l o c a l _ f o n t ; 	 / *   i n i t   w i t h   c u r r e n t   e n t r y   * / 
 	 	 	 	 / *   w e ' l l   u p d a t e   i t   l a t e r   i f   A O K             * / 
 	 	 	 	 / *   p a r s e   t h e   v a r i a b l e   f i e l d   * / 
                 d o   w h i l e   ( b u f f e r   ^ =   " " ) ; 	 / *   i f   f i e l d   i s   a l l   n u m e r i c   * / 
 	 i f   v e r i f y   ( b u f f e r ,   " 0 1 2 3 4 5 6 7 8 9 . " )   =   0 
 	 t h e n 
 	     d o ; 
 	         l o c a l _ f o n t . s i z e   = 
 	                   c o m p _ r e a d _ $ n u m b e r   ( b u f f e r ,   s c a l e ,   1 ,   i b u f ,   a d d r   ( c t l . i n f o ) , 
 	                   0 ) ; 
 	         b u f f e r   =   l t r i m   ( s u b s t r   ( b u f f e r ,   i b u f ) ) ; 
 	     e n d ; 
 
 	 e l s e 	 	 	 / *   e l s e   i t s   e i t h e r   a   b a c h e l o r   * / 
 	     d o ; 	 	 	 / *   o r   a   f a m i l y / m e m b e r   n a m e   * / 
 	 	 	 	 / *   i s   t h e r e   a   f a m i l y   n a m e ?   * / 
 	         i f   i n d e x   ( b u f f e r ,   " / " )   ^ =   1 
 	         t h e n 
 	             d o ; 
 	                 l o c a l _ f o n t . f a m _ n a m e   = 
 	 	       c o m p _ r e a d _ $ n a m e   ( b u f f e r ,   1 ,   i b u f ,   a d d r   ( c t l . i n f o ) ) ; 
 	                 b u f f e r   =   l t r i m   ( s u b s t r   ( b u f f e r ,   i b u f ) ) ; 
 	             e n d ; 	 	 / * * / 
 	 	 	 	 / *   i s   t h e r e   a   m e m b e r   n a m e ?   * / 
 	         i f   i n d e x   ( b u f f e r ,   " / " )   =   1 
 	         t h e n 
 	             d o ; 
 	                 b u f f e r   =   l t r i m   ( a f t e r   ( b u f f e r ,   r t r i m   ( l o c a l _ f o n t . f a m _ n a m e ) ) ) ; 
 	                 l o c a l _ f o n t . m e m _ n a m e   = 
 	 	       c o m p _ r e a d _ $ n a m e   ( b u f f e r ,   1 ,   1 ,   a d d r   ( c t l . i n f o ) ) ; 
 	             e n d ; 
 	         e l s e   l o c a l _ f o n t . m e m _ n a m e   =   " " ; 
 
 	         l o c a l _ f o n t . n a m e   = 
 	                   r t r i m   ( l o c a l _ f o n t . f a m _ n a m e )   | |   r t r i m   ( l o c a l _ f o n t . m e m _ n a m e ) ; 
 	     e n d ; 
                 e n d ; 
 
                 c a l l   l o a d _ f o n t ; 
             e n d ; 
 
 r e t u r n : 
         D C F S . f   =   l o c a l _ f o n t . d e v f n t ; 
         D C F S . p   =   l o c a l _ f o n t . s i z e ; 
         l o c a l _ f o n t . f c s _ s t r ,   f c s _ s t r   =   D C F S _ s t r ; 
 
         i f   ^ l o a d   |   i n i t _ s t k 	 	 / *   a l l   d o n e ,   r e p l a c e   w i t h   n e w   d a t a   * / 
         t h e n 
             d o ; 
                 f n t s t k _ e n t r y   =   l o c a l _ f o n t ; 
 
                 i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   c o p y   c h a n g e   t o   c u r r e n t   b l o c k   * / 
                 t h e n 
 	 d o ; 
 	     t e x t . p a r m s . f n t s t k . i n d e x   =   i s t k ; 
 	     t e x t . p a r m s . f n t s t k . e n t r y   ( i s t k )   =   l o c a l _ f o n t ; 
 	     i f   t e x t . i n p u t _ l i n e   =   " " 
 	     t h e n   t e x t . i n p u t . f o n t   =   l o c a l _ f o n t ; 
 	 e n d ; 
 
                 i f   s h a r e d . f t n _ m o d e 	 	 / *   c h a n g e   f o o t n o t e   h e a d e r ,   t o o   * / 
                 t h e n 
 	 d o ; 
 	     l i n e _ a r e a _ p t r   =   f t n h d r . l i n e _ a r e a . c u r ; 
 	     l i n e _ a r e a . l i n p t r   ( 1 )   - >   t x t l i n . f o n t   =   l o c a l _ f o n t ; 
 	 e n d ; 
             e n d ; 
 
         i f   s h a r e d . b u g _ m o d e   |   d b _ s w   &   d t _ s w 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( c o m p _ f o n t :   ( ^ [ l o a d ^ s ^ ; s t k = ^ d ^ ]   f n t = ^ d   ^ a   ^ f )   ^ a " , 
 	         l o a d ,   i s t k ,   l o c a l _ f o n t . d e v f n t ,   l o c a l _ f o n t . n a m e , 
 	         d e c   ( r o u n d   ( d i v i d e   ( l o c a l _ f o n t . s i z e ,   1 0 0 0 ,   3 1 ,   1 1 ) ,   1 0 ) ,   1 1 ,   3 ) , 
 	         c o m p _ u t i l _ $ d i s p l a y   ( ( f c s _ s t r ) ,   0 ,   " 0 " b ) ) ; 
 
         r e t u r n ; 
 
 a b r t n : 
     e n t r y ; 
         a b o r t _ s w   =   " 1 " b ; 
         r e t u r n ; 
 a b r t f : 
     e n t r y ; 
         a b o r t _ s w   =   " 0 " b ; 
         r e t u r n ; 
 d t n : 
     e n t r y ; 
         d t _ s w   =   " 1 " b ; 
         r e t u r n ; 
 d t f : 
     e n t r y ; 
         d t _ s w   =   " 0 " b ; 
         r e t u r n ; 
 d b n : 
     e n t r y ; 
         d b _ s w   =   " 1 " b ; 
         r e t u r n ; 
 d b f : 
     e n t r y ; 
         d b _ s w   =   " 0 " b ; 
         r e t u r n ; 
 % p a g e ; 
 l o a d _ f o n t : 	 	 	 / *   s e a r c h   f o r   f o n t   n a m e   * / 
     p r o c ; 	 	 	 	 / *   f i r s t ,   s e a r c h   t h e   f o n t s   w e   h a v e     * / 
 	 	 	 	 / *   a l r e a d y   l o a d e d   * / 
         d o   i f n t   =   1   t o   f n t t b l d a t a . c o u n t 
                   w h i l e   ( f n t t b l d a t a . p t r   ( i f n t )   - >   f n t t b l . n a m e   ^ =   l o c a l _ f o n t . n a m e ) ; 
         e n d ; 
 
         i f   i f n t   < =   f n t t b l d a t a . c o u n t 	 / *   a l r e a d y   l o a d e d ?   * / 
         t h e n 
             d o ; 
                 f n t t b l _ p t r   =   f n t t b l d a t a . p t r   ( i f n t ) ; 
                 l o c a l _ f o n t   =   f n t t b l . e n t r y ; 
             e n d ; 
 
 / *   n e e d e d   f o n t   i s   n o t   l o a d e d ,   h a v e   t o   s e a r c h   t h e   D S M   * / 
         e l s e 	 	 	 	 / *   f i r s t   s e a r c h   f o r   n a m e   a s   g i v e n .   * / 
             d o ; 	 	 	 	 / *   I t   m a y   b e   e i t h e r   a   L C   f a m i l y   n a m e   * / 
 	 	 	 	 / *   o r   a n   U C / m i x e d   b a c h e l o r   n a m e .   * / 
                 d o   i f a m   =   1   t o   c o m p _ d v t . f a m i l y _ c t 
 	       w h i l e   ( c o m p _ d v t . f a m i l y   ( i f a m ) . n a m e   ^ =   l o c a l _ f o n t . n a m e ) ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i f   w e   d i d n t   f i n d   i t   a s   g i v e n ,   * / 
 	 	 	 	 / *   i t   c a n t   b e   a   b a c h e l o r ,   s o   * / 
 	 	 	 	 / *   t r y   a g a i n ,   f o r c i n g   l o w e r c a s e .   * / 
                 i f   i f a m   >   c o m p _ d v t . f a m i l y _ c t 
                 t h e n 
 	 d o ; 
 	     d o   i f a m   =   1   t o   c o m p _ d v t . f a m i l y _ c t 
 	               w h i l e   ( c o m p _ d v t . f a m i l y   ( i f a m ) . n a m e 
 	               ^ =   t r a n s l a t e   ( l o c a l _ f o n t . f a m _ n a m e ,   a z ,   A Z ) ) ; 
 	     e n d ; 
 
 	     i f   i f a m   >   c o m p _ d v t . f a m i l y _ c t 
 	     t h e n 	 	 	 / *   i f   w e   s t i l l   d i d n t   f i n d   i t ,   * / 
 	         d o ; 
 n o _ f o n t : 
 	             c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   0 ,   a d d r   ( c t l . i n f o ) ,   b u f f e r , 
 	 	   " F o n t   ^ a   n o t   d e f i n e d   f o r   ^ a   d e v i c e . " ,   l o c a l _ f o n t . n a m e , 
 	 	   o p t i o n . d e v i c e ) ; 
 	             g o t o   e r r o r _ r e s u l t ; 
 	         e n d ; 
 	 e n d ; 
                 l o c a l _ f o n t . d e v f n t ,   f n t t b l d a t a . n d x ,   f n t t b l d a t a . c o u n t   =   i f n t ; 
 	 	 	 	 / *   r e c o r d   f a m i l y   i n d e x   * / 
                 l o c a l _ f o n t . f a m n d x   =   i f a m ; 	 / *   p o i n t   t o   i t s   m e m b e r   t a b l e   * / 
                 m e m b e r _ p t r ,   l o c a l _ f o n t . m e m p t r   = 
 	       p o i n t e r   ( c o n s t . d e v p t r ,   c o m p _ d v t . f a m i l y   ( i f a m ) . m e m b e r _ r ) ; 
 
                 i f   m e m b e r   ( 1 ) . n a m e   =   " " 	 / *   i f   n o   m e m b e r s ,   i t s   a   b a c h e l o r   * / 
                 t h e n 
 	 d o ; 
 	     i m e m   =   1 ; 	 	 / *   f o r c e   t h e   i n d e x   * / 
 	     l o c a l _ f o n t . b a c h e l o r   =   " 1 " b ; 
 	     l o c a l _ f o n t . m e m _ n a m e   =   " " ; 
 	 e n d ; 
 
                 e l s e 	 	 	 / *   s e a r c h   f o r   m e m b e r   * / 
 	 d o ; 
 	     l o c a l _ f o n t . b a c h e l o r   =   " 0 " b ; 
 	     l o c a l _ f o n t . m e m _ n a m e   =   r t r i m   ( " / "   | |   l o c a l _ f o n t . m e m _ n a m e ) ; 
 	     d o   i m e m   =   1   t o   m e m b e r . c o u n t 
 	               w h i l e   ( m e m b e r   ( i m e m ) . n a m e 
 	               ^ =   t r a n s l a t e   ( l o c a l _ f o n t . m e m _ n a m e ,   a z ,   A Z ) ) ; 
 	     e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i f   w e   d i d n t   f i n d   i t   * / 
 	     i f   i m e m   >   m e m b e r . c o u n t 
 	     t h e n   g o t o   n o _ f o n t ; 
 	 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   r e c o r d   m e m b e r   i n d e x   * / 
                 l o c a l _ f o n t . m e m n d x   =   i m e m ; 	 / *   p o i n t   t o   t h e   f o n t   t a b l e   * / 
                 f o n t _ p t r ,   l o c a l _ f o n t . f n t p t r   = 
 	       p o i n t e r   ( c o n s t . d e v p t r ,   m e m b e r   ( i m e m ) . f o n t _ r ) ; 
 	 	 	 	 / *   l o a d   t h e   n e w   f o n t   i n t o   p d i r   * / 
                 f n t t b l _ p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( f n t t b l ) ) ; 
                 f n t t b l d a t a . p t r   ( i f n t )   =   f n t t b l _ p t r ; 
 
                 f n t t b l . d e v f n t ,   f n t t b l . u n i t s   =   0 ; 
                 f n t t b l . r e p l p t r   =   n u l l   ( ) ; 
                 f n t t b l . w h i t e   =   " 0 " b ; 	 	 / * * / 
 	 	 	 	 / *   p o i n t   t o   r e p l   t a b l e   i n   D S M   * / 
                 o p u t _ p   =   p o i n t e r   ( c o n s t . d e v p t r ,   f o n t . o p u t _ r ) ; 
 	 	 	 	 / *   b u i l d   t h e   f o n t   t a b l e   * / 
                 d o   i   =   0   t o   o p u t . d a t a _ c t ; 
 	 i f   o p u t . w h a t _ r   ( i )   ^ =   " 0 " b 
 	 t h e n 
 	     d o ; 
 	         m e d c h a r _ s e l _ p   =   p o i n t e r   ( c o n s t . d e v p t r ,   o p u t . w h a t _ r   ( i ) ) ; 
 	         f n t t b l . r e p l p t r   ( i )   =   m e d c h a r _ s e l _ p ; 
 	         i f   m e d c h a r   =   " " 
 	         t h e n   f n t t b l . w h i t e   ( i )   =   " 1 " b ; 
 	         f n t t b l . d e v f n t   ( i )   =   o p u t . w h i c h   ( i ) ; 
 	     e n d ; 
                 e n d ; 
                 f n t t b l . u n i t s   =   p o i n t e r   ( c o n s t . d e v p t r ,   f o n t . u n i t s _ r )   - >   u n i t s ; 
 
                 f n t t b l . e n t r y   =   l o c a l _ f o n t ; 
                 f n t t b l . r e l _ u n i t s   =   f o n t . r e l _ u n i t s ; 
                 f n t t b l . m i n _ w s p   =   f o n t . m i n _ w s p ; 
                 f n t t b l . a v g _ w s p   =   f o n t . a v g _ w s p ; 
                 f n t t b l . m a x _ w s p   =   f o n t . m a x _ w s p ; 	 / * * / 
 	 	 	 	 / *   l o a d   t h e   s i z e   t a b l e   * / 
                 s i z e l _ p   =   p o i n t e r   ( c o n s t . d e v p t r ,   m e m b e r   ( i m e m ) . s i z e _ r ) ; 
                 s i z t b l _ s i z e   =   s i z e l . v a l _ c t   +   1 ; 
                 s i z t b l _ p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( s i z t b l _ a r r a y ) ) ; 
                 f n t t b l . s i z t b l _ p t r   =   s i z t b l _ p t r ;   / *   l o a d   t h e   w i d t h   t a b l e   * / 
                 u n s p e c   ( s i z t b l _ a r r a y )   =   u n s p e c   ( s i z e l ) ; 
             e n d ; 
 
         s i z e l _ p   =   f n t t b l . s i z t b l _ p t r ; 	 / *   v a l i d a t e   r e q u e s t e d   s i z e   * / 
         i f   s i z e l . v a l _ c t   >   1 
         t h e n 
             d o ; 
                 d o   i s i z   =   1   t o   s i z e l . v a l _ c t 
 	       w h i l e   ( s i z e l . v a l   ( i s i z )   ^ =   l o c a l _ f o n t . s i z e ) ; 
                 e n d ; 
 
                 i f   i s i z   >   s i z e l . v a l _ c t 	 / *   i f   t h i s   s i z e   n o t   i n   t a b l e   * / 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " I n v a l i d   s i z e   f o r   t h i s   f o n t . " , 
 	               a d d r   ( c t l . i n f o ) ,   b u f f e r ) ; 
 	 e n d ; 
             e n d ; 
 
         e l s e   l o c a l _ f o n t . s i z e   =   s i z e l . v a l   ( 1 ) ; 
 
         s h a r e d . E N _ w i d t h   = 
                   d i v i d e   ( l o c a l _ f o n t . s i z e   *   f n t t b l . u n i t s   ( r a n k   ( E N ) ) ,   f n t t b l . r e l _ u n i t s , 
                   3 1 ,   1 0 ) ; 
     e n d   l o a d _ f o n t ; 
 % p a g e ; 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   a b o r t _ s w 	       b i t   ( 1 )   s t a t i c   i n i t   ( " 0 " b ) ; 
         d c l   a z 	       c h a r   ( 2 6 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " a b c d e f g h i j k l m n o p q r s t u v w x y z " ) ; 
         d c l   A Z 	       c h a r   ( 2 6 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " A B C D E F G H I J K L M N O P Q R S T U V W X Y Z " ) ; 
         d c l   B A D _ C H A R 	       c h a r   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( "ÿ " ) ; 
         d c l   1   D C F S 	       l i k e   d c f s ; 
         d c l   D C F S _ s t r 	       c h a r   ( d c f s _ l e n   +   3 )   b a s e d   ( a d d r   ( D C F S ) ) ; 
         d c l   d b _ s w 	       b i t   ( 1 )   s t a t i c   i n i t   ( " 0 " b ) ; 
         d c l   d t _ s w 	       b i t   ( 1 )   s t a t i c   i n i t   ( " 0 " b ) ; 
         d c l   ( i ,   j ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   i b u f 	       f i x e d   b i n   ( 2 1 ) ; 
         d c l   i f a m 	       f i x e d   b i n ; 	 / *   l o c a l   f a m i l y   i n d e x   * / 
         d c l   i f n t 	       f i x e d   b i n ; 	 / *   f n t t b l d a t a   i n d e x   * / 
         d c l   i m e m 	       f i x e d   b i n ; 	 / *   l o c a l   m e m b e r   i n d e x   * / 
         d c l   i n i t _ s t k 	       b i t   ( 1 ) ; 
         d c l   i s i z 	       f i x e d   b i n ; 	 / *   l o c a l   s i z e   i n d e x   * / 
         d c l   i s t k 	       f i x e d   b i n ; 	 / *   l o c a l   s t a c k   i n d e x   * / 
         d c l   1   l o c a l _ f o n t       a l i g n e d   l i k e   f n t s t k _ e n t r y ; 
         d c l   n a m e _ c h a r s 	       c h a r   ( 6 3 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " a b c d e f g h i j k l m n o p q r s t u v w x y z _ " 
 	 	       | |   " A B C D E F G H J I K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9 " ) ; 
         d c l   s c a l e 	       ( 1 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( 1 0 0 0 ) ; 	 / * * / 
 	 	 	 	 / *   a r r a y   f o r   l o a d i n g   t h e   s i z e   t a b l e   * / 
         d c l   s i z t b l _ a r r a y       ( s i z t b l _ s i z e )   f i x e d   b i n   ( 3 5 )   b a s e d   ( s i z t b l _ p t r ) ; 
         d c l   s i z t b l _ p t r 	       p t r ; 
         d c l   s i z t b l _ s i z e 	       f i x e d   b i n ; 
 
         d c l   ( c o m p _ a b o r t ,   f o n t _ e r r o r ) 
 	 	       c o n d i t i o n ; 
 
         d c l   ( a d d r ,   i n d e x ,   l e n g t h ,   m a x ,   m i n ,   m o d ,   n u l l ,   p o i n t e r ,   s i z e ,   s u b s t r , 
                 v e r i f y ,   u n s p e c ) 
 	 	       b u i l t i n ; 
 % p a g e ; 
 % i n c l u d e   c o m p _ c o l u m n ; 
 % i n c l u d e   c o m p _ D C d a t a ; 
 % i n c l u d e   c o m p _ d v t ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ f o n t ; 
 % i n c l u d e   c o m p _ f o o t n o t e s ; 
 % i n c l u d e   c o m p _ m e t a c o d e s ; 
 % i n c l u d e   c o m p _ o p t i o n ; 
 % i n c l u d e   c o m p _ p a g e ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p s t a t ; 
 % i n c l u d e   t r a n s l a t o r _ t e m p _ a l l o c ; 
     e n d   c o m p _ f o n t _ ; 
    
 
 
  
 	 	         c o m p _ f o r m a t _ c t l s _ . p l 1                       0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 0 9 . 5             2 7 1 5 9 3     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ f o r m a t _ c t l s _ : 
     p r o c   ( c t l _ i n d e x ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   c t l _ i n d e x 	       f i x e d   b i n ; 
 
 / *   L O C A L   S T O R A G E   
 	 	 	 	       t e x t   a l i g n m e n t   f l a g s   * / 
         d c l   a l i g n _ f l a g s 	       ( 6 )   b i t   ( 6 )   a l i g n e d   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " 0 0 0 0 0 1 " b ,   " 0 0 0 1 0 0 " b ,   " 1 0 0 0 0 0 " b ,   " 0 0 1 0 0 0 " b , 
 	 	       " 0 1 0 0 0 0 " b ,   " 0 0 0 0 1 0 " b ) ; 
         d c l   a l i g n _ m o d e 	       c h a r   ( 3 2 )   v a r ; 
         d c l   c o l _ d e p t h _ a d j     f i x e d   b i n   ( 3 1 ) ; 
         d c l   e r c d 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   e r r o r   c o d e   * / 
 	 	 	 	 / *   d e b u g   m e s s a g e   f o r   e x i t   * / 
         d c l   e x i t _ s t r 	       c h a r   ( 1 2 8 )   v a r   i n i t   ( " " ) ; 
         d c l   f n x t 	       f i x e d   b i n   ( 2 1 ) ; 	 / *   n e x t   v a r i a b l e   f i e l d   c h a r   * / 
         d c l   h e a d _ u s e d 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   h f _ n e e d e d 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   e x t r a   h e a d e r / f o o t e r   s p a c e   n e e d e d   * / 
         d c l   h s c a l e s 	       ( 7 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( 7 2 0 0 ,   6 0 0 0 ,   7 2 0 0 0 ,   2 8 3 4 . 6 5 ,   1 2 0 0 0 ,   1 0 0 0 ,   0 ) ; 
         d c l   ( i ,   j ,   k ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   l o c o l p t r 	       p t r ; 	 	 / *   f o r   l o c a l   r e f e r e n c e   * / 
         d c l   1   l o c o l 	       a l i g n e d   l i k e   c o l   b a s e d   ( l o c o l p t r ) ; 
         d c l   m a x c o l u s d 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   f o r   s e t t i n g   m u l t i c o l u m n   d a t a   * / 
         d c l   m i n _ v a l 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   m i n i m u m   p a g e   l e n g t h   r e q u i r e d   * / 
         d c l   n e t _ l i n e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   n e t   l i n e   f o r   s e t t i n g   m a r g i n s   * / 
         d c l   p a g e _ w i d t h 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   w i d t h   f o r   c o l u m n   s p e c s   * / 
         d c l   s a v e _ i n d e x 	       f i x e d   ( 3 5 ) ; 	 / *   t o   s a v e   c t l . i n d e x   a r o u n d   c a l l s   * / 
         d c l   t a b _ c h a r 	       c h a r   ( 1 ) ; 	 / *   h t a b   c h a r a c t e r   * / 
         d c l   t a b _ n a m e 	       c h a r   ( 3 2 ) ; 	 / *   n a m e   o f   h o r i z o n t a l   t a b   p a t t e r n   * / 
         d c l   u n s c a l e d 	       ( 1 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 1 ) ; 
 	 	 	 	 / *   c o p y   o f   c o n t r o l   l i n e   v a r i a b l e   f i e l d   * / 
         d c l   v a r f l d 	       c h a r   ( 1 0 2 0 )   v a r ; 
         d c l   v s c a l e s 	       ( 7 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( 1 2 0 0 0 ,   9 0 0 0 ,   7 2 0 0 0 ,   2 8 3 4 . 6 5 ,   1 2 0 0 0 ,   1 0 0 0 ,   0 ) ; 
 
         d c l   c o m p _ e r r o r _ t a b l e _ $ i n c o n s i s t e n t 
 	 	       e x t   f i x e d   b i n   ( 3 5 ) ; 
         d c l   c o m p _ e r r o r _ t a b l e _ $ l i m i t a t i o n 
 	 	       e x t   f i x e d   b i n   ( 3 5 ) ; 
         d c l   c o m p _ e r r o r _ t a b l e _ $ m i s s i n g _ d e l i m i t e r 
 	 	       e x t   f i x e d   b i n   ( 3 5 ) ; 
         d c l   c o m p _ e r r o r _ t a b l e _ $ s y n t a x _ e r r o r 
 	 	       e x t   f i x e d   b i n   ( 3 5 ) ; 
 
         d c l   ( i n d e x ,   l e n g t h ,   l t r i m ,   m a x ,   m i n ,   s i z e ) 
 	 	       b u i l t i n ; 
 
         d c l   i o a _ $ r s n n l 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " f o r m a t _ c t l s :   ( ^ d )   " " ^ a " " " ,   c t l _ i n d e x ,   c t l _ l i n e ) ; 
 
         m a x c o l u s d   =   0 ; 
         v a r f l d   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ; 
 
         i f   s h a r e d . t a b l e _ m o d e 
         t h e n 
             d o ; 
                 t b l f m t p t r   =   t b l d a t a . f m t   ( t b l d a t a . n d x ) . p t r ; 
                 t b l c o l p t r   =   t b l f m t . c o l p t r   ( t b l f m t . c c o l ) ; 
             e n d ; 
 
         g o t o   c t l _   ( c t l _ i n d e x ) ; 
 
 / *   T E X T   A L I G N M E N T   C O N T R O L S 
       b o t h             c e n t e r         i n s i d e         l e f t             o u t s i d e       r i g h t 
       " . a l b "         " . a l c "         " . a l i "         " . a l l "         " . a l o "         " . a l r "     * / 
 c t l _   ( 1 ) : 
 c t l _   ( 2 ) : 
 c t l _   ( 3 ) : 
 c t l _   ( 4 ) : 
 c t l _   ( 5 ) : 
 c t l _   ( 6 ) : 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   c h a n g e   m o d e   i n   c u r r e n t   b l o c k   * / 
         t h e n 
             d o ; 
                 i f   ^ s h a r e d . f t n _ m o d e 	 	 / *   n o t   a   f o o t n o t e   * / 
 	 	 	 	 / *   o r   n o t   f i r s t   f o o t n o t e   l i n e   * / 
 	       |   ( s h a r e d . f t n _ m o d e   &   t e x t . h d r . c o u n t   >   0 ) 
 	 	 	 	 / *   c l e a n   u p   l e f t o v e r s   * / 
                 t h e n   i f   l e n g t h   ( t e x t . i n p u t _ l i n e )   >   0 
 	       t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 
                 i f   t e x t . h d r . c o l n o   > =   0 	 / *   i f   n o t   a   l o o s e   b l o c k   * / 
 	       |   o p t i o n . g a l l e y _ o p t 	 / *   o r   i n   g a l l e y   m o d e   * / 
                 t h e n   c u r r e n t _ p a r m s . q u a d   =   a l i g n _ f l a g s   ( c t l _ i n d e x ) ; 
                 t e x t . p a r m s . q u a d ,   t e x t . i n p u t . q u a d   =   a l i g n _ f l a g s   ( c t l _ i n d e x ) ; 
             e n d ; 
 
         e l s e   i f   ^ c u r r e n t _ p a r m s . t i t l e _ m o d e 
         t h e n   c u r r e n t _ p a r m s . q u a d   =   a l i g n _ f l a g s   ( c t l _ i n d e x ) ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n 
             d o ; 
                 a l i g n _ m o d e   =   " % A l i g n M o d e % " ; 
                 c a l l   c o m p _ u s e _ r e f _   ( a l i g n _ m o d e ,   " 0 " b ,   " 0 " b ,   a d d r   ( c t l . i n f o ) ) ; 
                 c a l l   i o a _ $ r s n n l   ( " a l i g n = ^ a " ,   e x i t _ s t r ,   0 ,   a l i g n _ m o d e ) ; 
             e n d ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 7 4 ) : 	 	 	 / *   " . f i "   =   f i l l _ m o d e   - >     D E F A U L T   * / 
         g o t o   f i n _ c t l ; 
 
 c t l _   ( 7 5 ) : 	 	 	 / *   " . f i f "   =   f i l l - o f f   * / 
         i f   s h a r e d . b l k p t r   ^ =   n u l l 	 	 / *   i s   t h e r e   a n   a c t i v e   b l o c k ?   * / 
         t h e n 
             d o ; 	 	 	 	 / *   c l e a n   u p   a n y   l e f t o v e r s   * / 
                 i f   t e x t . i n p u t _ l i n e   ^ =   " " 
                 t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
                 t e x t . p a r m s . f i l l _ m o d e   =   " 0 " b ; 
                 i f   t e x t . h d r . c o l n o   > =   0 	 / *   i f   b l o c k   i s n t   l o o s e   * / 
                 t h e n 	 	 	 / *   s e t   s h a r e d   p a r m   * / 
 	       c u r r e n t _ p a r m s . f i l l _ m o d e   =   " 0 " b ; 
 
                 i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
                 t h e n   t e x t . h d r . n o f i l l _ c o u n t   =   - 1 ; 
                 e l s e   t e x t . h d r . n o f i l l _ c o u n t   = 
 	                 c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   u n s c a l e d ,   c t l . i n d e x ,   c t l . i n d e x , 
 	                 a d d r   ( c t l . i n f o ) ,   0 ) ; 
             e n d ; 
         e l s e   c u r r e n t _ p a r m s . f i l l _ m o d e   =   " 0 " b ; / *   s e t   s h a r e d   p a r m   * / 
 
         i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 
         t h e n   t e x t _ h e a d e r . n o f i l l _ c o u n t   =   - 1 ; 
         e l s e   t e x t _ h e a d e r . n o f i l l _ c o u n t   = 
 	         c o m p _ r e a d _ $ n u m b e r   ( c t l _ l i n e ,   u n s c a l e d ,   c t l . i n d e x ,   c t l . i n d e x , 
 	         a d d r   ( c t l . i n f o ) ,   0 ) ; 
 
         g o t o   r e t u r n _ ; 
 
 / *   " . f i n "   =   f i l l - o n   * / 
 c t l _   ( 7 6 ) : 
 f i n _ c t l : 	 	 	 	 / *   f i n _ c t l _ i n d e x   * / 
         i f   ^ o p t i o n . n o f i l l _ o p t 	 	 / *   i f   f i l l   m o d e   i s   n o t   d i s a b l e d   * / 
         t h e n 
             d o ; 
                 i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   i f   t h e r e   i s   a n   a c t i v e   b l o c k   * / 
                 t h e n   i f   ^ t e x t . p a r m s . f i l l _ m o d e 	 / *   i f   n o t   a l r e a d y   f i l l i n g   * / 
 	       t h e n 
 	           d o ; 
 	               i f   l e n g t h   ( t e x t . i n p u t . p t r   - >   t x t s t r )   >   0 
 	 	 	 	 / *   c l e a n   u p   l e f t o v e r s   * / 
 	               t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 	               t e x t . p a r m s . f i l l _ m o d e   =   " 1 " b ; 
 	               i f   t e x t . h d r . c o l n o   > =   0   / *   i f   b l o c k   i s n t   l o o s e   * / 
 	               t h e n   c u r r e n t _ p a r m s . f i l l _ m o d e   =   " 1 " b ; 
 
 	           e n d ; 
 	       e l s e   ; 	 	 	 / * * / 
 	 	 	 	 / *   s e t   s h a r e d   p a r m   * / 
                 e l s e   c u r r e n t _ p a r m s . f i l l _ m o d e   =   " 1 " b ; 
             e n d ; 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 0 1 ) : 	 	 	 / *   " . h t d "   =   h o r i z o n t a l - t a b s - d e f i n e   * / 
         i f   v a r f l d   =   " " 	 	 	 / *   i f   n o t h i n g   g i v e n   * / 
         t h e n 
             d o ; 	 	 	 	 / *   a n d   t h e r e   a r e   s o m e   d e f i n e d   * / 
                 i f   s h a r e d . h t a b _ p t r   ^ =   n u l l   ( ) 
                 t h e n   h t a b . c o u n t   =   0 ; 	 	 / *   c a n c e l   t h e m   a l l   * / 
                 g o t o   r e t u r n _ ; 
             e n d ; 
 
         t a b _ n a m e   = 	 	 	 / *   f e t c h   t h e   p a t t e r n   n a m e   * / 
                   c o m p _ r e a d _ $ n a m e   ( v a r f l d ,   1 ,   f n x t ,   a d d r   ( c t l . i n f o ) ) ; 
         i f   t a b _ n a m e   =   " " 	 	 / *   i f   n o   n a m e   * / 
         t h e n   g o t o   r e t u r n _ ; 
 
         v a r f l d   =   l t r i m   ( s u b s t r   ( v a r f l d ,   f n x t ) ) ; 
 
         i f   s h a r e d . h t a b _ p t r   =   n u l l   ( ) 	 / *   a l l o c a t e   h t a b   d a t a   * / 
         t h e n 
             d o ; 
                 s h a r e d . h t a b _ p t r   =   a l l o c a t e   ( c o n s t . l o c a l _ a r e a _ p t r ,   s i z e   ( h t a b ) ) ; 
                 h t a b . c o u n t ,   h t a b . p a t s   =   0 ; 	 / *   i n i t i a l i z e   p a t t e r n   c o u n t   * / 
                 h t a b . c h a r s   =   " " ; 	 	 / *   a n d   c l e a r   c h a r s   * / 
 	 	 	 	 / *   i n i t i a l i z e   t h e   p a t t e r n s   * / 
                 h t a b . p a t t e r n . n a m e ,   h t a b . p a t t e r n . f i l l   =   " " ; 
                 h t a b . p a t t e r n . c o u n t ,   h t a b . p a t t e r n . s t o p   =   0 ; 
             e n d ; 
 
         d o   i   =   1   t o   h t a b . c o u n t 	 	 / *   s e e   i f   t h i s   o n e   e x i s t s   * / 
                   w h i l e   ( t a b _ n a m e   ^ =   h t a b . p a t t e r n   ( i ) . n a m e ) ; 
         e n d ; 
 
         i f   i   >   h b o u n d   ( h t a b . p a t t e r n ,   1 ) 	 / *   c h e c k   p a t t e r n   c o u n t   l i m i t   * / 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ l i m i t a t i o n , 
 	       a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	       " O n l y   ^ d   h o r i z o n t a l   t a b   p a t t e r n s   p e r m i t t e d . " , 
 	       h b o u n d   ( h t a b . p a t t e r n ,   1 ) ) ; 
                 g o t o   r e t u r n _ ; 
             e n d ; 
 
         i f   v a r f l d   =   " " 	 	 	 / *   i f   n o   c o l u m n   s t o p s   g i v e n   * / 
         t h e n 
             d o ; 
                 i f   i   >   h t a b . c o u n t 	 	 / *   i f   n o t   k n o w n   * / 
                 t h e n   g o t o   r e t u r n _ ; 
 
                 e l s e 	 	 	 / *   c a n c e l   t h e   p a t t e r n   * / 
 	 d o   i   =   i   t o   h t a b . c o u n t   -   1 ; 	 / *   a n d   c l o s e   u p   t a b l e   * / 
 	     h t a b . p a t t e r n   ( i )   =   h t a b . p a t t e r n   ( i   +   1 ) ; 
 	 e n d ; 
 
                 h t a b . c o u n t   =   h t a b . c o u n t   -   1 ; 	 / *   r e d u c e   p a t t e r n   c o u n t   * / 
                 g o t o   r e t u r n _ ; 
             e n d ; 
 
         c a l l   s e t _ h t a b s   ( i ,   e r c d ) ; 	 	 / *   s e t   t h e   s t o p s   * / 
         i f   e r c d   =   0 	 	 	 / *   r e c o r d   t h e   p a t t e r n   n a m e   * / 
         t h e n   h t a b . p a t t e r n   ( i ) . n a m e   =   t a b _ n a m e ; 
 
 s e t _ h t a b s : 
     p r o c   ( i t a b ,   p m e r c d ) ; 	 	 / *   r e c o r d   s t o p s   * / 
 
         d c l   i t a b 	       f i x e d   b i n ; 	 / *   p a t t e r n   i n d e x   * / 
         d c l   p m e r c d 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   e r r o r   c o d e   * / 
 
         d c l   j s t o p 	       f i x e d   b i n ; 
 
         p m e r c d   =   0 ; 
         j s t o p ,   h t a b . p a t t e r n   ( i t a b ) . c o u n t   =   0 ; 
 
         d o   w h i l e   ( v a r f l d   ^ =   " "   &   j s t o p   <   h b o u n d   ( h t a b . p a t t e r n . s t o p ,   1 ) ) ; 
 	 	 	 	 / *   e x t r a c t   s t o p   c o l u m n   * / 
             h t a b . p a t t e r n   ( i t a b ) . s t o p   ( j s t o p   +   1 )   = 
 	   c o m p _ r e a d _ $ n u m b e r   ( v a r f l d ,   h s c a l e s ,   1 ,   f n x t ,   a d d r   ( c t l . i n f o ) , 
 	   p m e r c d ) ; 
             i f   p m e r c d   ^ =   0 
             t h e n   r e t u r n ; 
 
             v a r f l d   =   s u b s t r   ( v a r f l d ,   f n x t ) ; 	 / * * / 
 	 	 	 	 / *   e x t r a c t   f i l l   s t r i n g ,   i f   a n y   * / 
             h t a b . p a t t e r n   ( i t a b ) . f i l l   ( j s t o p   +   1 )   =   " " ; 
             i f   i n d e x   ( v a r f l d ,   " , " )   ^ =   1 
             t h e n 
                 d o ; 
 	 i f   i n d e x   ( v a r f l d ,   " " " " )   =   1 
 	 t h e n 
 	     d o ; 
 	         h t a b . p a t t e r n   ( i t a b ) . f i l l   ( j s t o p   +   1 )   = 
 	                   c o m p _ e x t r _ s t r _   ( " 1 " b ,   v a r f l d ,   1 ,   f n x t ,   0 ,   a d d r   ( c t l . i n f o ) ) ; 
 	         v a r f l d   =   s u b s t r   ( v a r f l d ,   f n x t ) ; 
 	     e n d ; 
 
 	 e l s e 
 	     d o ; 
 	         k   =   s e a r c h   ( v a r f l d ,   " ,   " ) ; 
 	         i f   k   >   0 
 	         t h e n 
 	             d o ; 
 	                 h t a b . p a t t e r n   ( i t a b ) . f i l l   ( j s t o p   +   1 )   = 
 	 	       s u b s t r   ( v a r f l d ,   1 ,   k   -   1 ) ; 
 	                 v a r f l d   =   s u b s t r   ( v a r f l d ,   k ) ; 
 	             e n d ; 
 	         e l s e 
 	             d o ; 
 	                 h t a b . p a t t e r n   ( i t a b ) . f i l l   ( j s t o p   +   1 )   =   v a r f l d ; 
 	                 v a r f l d   =   " " ; 
 	             e n d ; 
 	     e n d ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   c h e c k   f o r   a   c o m m a   * / 
             i f   v a r f l d   ^ =   " "   &   i n d e x   ( v a r f l d ,   " , " )   ^ =   1 
             t h e n 
                 d o ; 
 	 p m e r c d   =   c o m p _ e r r o r _ t a b l e _ $ m i s s i n g _ d e l i m i t e r ; 
 	 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   p m e r c d ,   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	           " M i s s i n g   c o m m a   a f t e r   s t o p   c o l u m n   ^ d " ,   j s t o p   +   1 ) ; 
 	 r e t u r n ; 
                 e n d ; 
 
             v a r f l d   =   a f t e r   ( v a r f l d ,   " , " ) ; 	 / *   s t e p   o v e r   c o m m a   * / 
 
             i f   h t a b . p a t t e r n   ( i t a b ) . s t o p   ( j s t o p   +   1 )   =   0 
             t h e n   c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " I n v a l i d   t a b   s t o p   i n   c o l u m n   0   i g n o r e d . " , 
 	             a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
             e l s e   j s t o p   =   j s t o p   +   1 ; 
         e n d ; 
 
         i f   v a r f l d   ^ =   " " 	 	 	 / *   i f   m o r e   w e r e   g i v e n   * / 
         t h e n   c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ l i m i t a t i o n , 
 	         a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	         " M o r e   t h a n   ^ d   t a b   s t o p s   g i v e n .   T h e   e x c e s s   w i l l   b e   i g n o r e d . " , 
 	         h b o u n d   ( h t a b . p a t t e r n . s t o p ,   1 ) ) ; 
 
         h t a b . p a t t e r n   ( i t a b ) . c o u n t   =   j s t o p ; 
         h t a b . c o u n t   =   m a x   ( i t a b ,   h t a b . c o u n t ) ; 
 
     e n d   s e t _ h t a b s ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 0 2 ) : 	 	 	 / *   " . h t f "   =   h o r i z o n t a l - t a b s - o f f   * / 
         i f   s h a r e d . h t a b _ p t r   =   n u l l   ( ) 	 / *   i f   n o   t a b   p a t t e r n s   * / 
         t h e n   g o t o   r e t u r n _ ; 
 
         i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 	 / *   i f   n o   t a b   c h a r s   g i v e n   * / 
         t h e n   h t a b . c h a r s   =   " " ; 	 	 / *   c l e a r   t h e   t a b   c h a r   s t r i n g   * / 
 
         e l s e 	 	 	 	 / *   f o r   e a c h   g i v e n   c h a r a c t e r   * / 
             d o   c t l . i n d e x   =   c t l . i n d e x   t o   l e n g t h   ( c t l _ l i n e ) ; 
 	 	 	 	 / *   f i n d   i t   i n   t h e   t a b   c h a r   s t r i n g   * / 
                 i   =   s e a r c h   ( h t a b . c h a r s ,   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) ) ; 
 
                 i f   i   >   0 	 	 	 / *   i f   i t s   t h e r e   * / 
                 t h e n 	 	 	 / *   t a k e   i t   o u t   o f   t h e   s t r i n g   * / 
 	 d o ; 
 	     i f   i   <   m a x l e n g t h   ( h t a b . c h a r s ) 
 	     t h e n 
 	         d o ; 
 	             h t a b . c h a r s   = 
 	 	   s u b s t r   ( h t a b . c h a r s ,   1 ,   i   -   1 ) 
 	 	   | |   s u b s t r   ( h t a b . c h a r s ,   i   +   1 ) ; 
 	 	 	 	 / *   c l o s e   u p   p a t t e r n   i n d e x   a r r a y   * / 
 	             d o   i   =   i   b y   1   w h i l e   ( h t a b . p a t s   ( i )   ^ =   0 ) ; 
 	                 h t a b . p a t s   ( i )   =   h t a b . p a t s   ( i   +   1 ) ; 
 	             e n d ; 
 	         e n d ; 
 
 	     e l s e 
 	         d o ; 
 	             h t a b . c h a r s   =   s u b s t r   ( h t a b . c h a r s ,   1 ,   i   -   1 ) ; 
 	             h t a b . p a t s   ( i )   =   0 ; 
 	         e n d ; 
 	 e n d ; 
 
                 e l s e   c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	                 s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) 
 	                 | |   "   i s   n o t   a n   a c t i v e   t a b b i n g   c h a r a c t e r . " ,   a d d r   ( c t l . i n f o ) , 
 	                 c t l _ l i n e ) ; 
             e n d ; 
 
         i f   h t a b . c h a r s   =   " " 	 	 / *   i f   a l l   a r e   o f f   * / 
         t h e n 
             d o ; 
                 c u r r e n t _ p a r m s . h t a b _ m o d e   =   " 0 " b ;   / *   r e s e t   t h e   f l a g s   * / 
                 i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
                 t h e n   t e x t . p a r m s . h t a b _ m o d e   =   " 0 " b ; 
             e n d ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 0 3 ) : 	 	 	 / *   " . h t n "   =   h o r i z o n t a l - t a b s - o n   * / 
         i f   v a r f l d   =   " " 	 	 	 / *   i f   n o   c h a r   g i v e n   * / 
                   |   i n d e x   ( v a r f l d ,   "   " )   ^ =   2 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ s y n t a x _ e r r o r , 
 	       a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ,   " T h e   t a b   c h a r a c t e r   m u s t   b e   f i r s t . " ) ; 
                 g o t o   r e t u r n _ ; 
             e n d ; 
 
         i f   s h a r e d . h t a b _ p t r   =   n u l l   ( ) 	 / *   a l l o c a t e   h t a b   d a t a   * / 
         t h e n 
             d o ; 
                 s h a r e d . h t a b _ p t r   =   a l l o c a t e   ( c o n s t . l o c a l _ a r e a _ p t r ,   s i z e   ( h t a b ) ) ; 
                 h t a b . c o u n t ,   h t a b . p a t s   =   0 ; 	 / *   i n i t i a l i z e   p a t t e r n   c o u n t   * / 
                 h t a b . c h a r s   =   " " ; 	 	 / *   a n d   c l e a r   c h a r s   * / 
             e n d ; 
 
         t a b _ c h a r   =   s u b s t r   ( v a r f l d ,   1 ,   1 ) ; 	 / *   r e c o r d   h t a b   c h a r   * / 
 	 	 	 	 / *   a d v a n c e   t o   p a t t e r n   n a m e   * / 
         v a r f l d   =   l t r i m   ( s u b s t r   ( v a r f l d ,   2 ) ) ; 
 
         i f   v a r f l d   =   " " 	 	 	 / *   i f   n o   n a m e   g i v e n   * / 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ s y n t a x _ e r r o r , 
 	       a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	       " N o   t a b   p a t t e r n   o r   p a t t e r n   n a m e   g i v e n . " ) ; 
                 g o t o   r e t u r n _ ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i f   1 s t   c h a r   i s   n u m e r i c ,   i t s   a   p a t t e r n   * / 
         i f   s e a r c h   ( v a r f l d ,   " 0 1 2 3 4 5 6 7 8 9 " )   =   1 
         t h e n 
             d o ; 
                 c a l l   s e t _ h t a b s   ( 0 ,   e r c d ) ; 
                 i f   e r c d   ^ =   0 
                 t h e n   g o t o   r e t u r n _ ; 
                 j   =   0 ; 
             e n d ; 
 
         e l s e 
             d o ; 
                 t a b _ n a m e   =   c o m p _ r e a d _ $ n a m e   ( v a r f l d ,   1 ,   1 ,   a d d r   ( c t l . i n f o ) ) ; 
 
                 i f   h t a b . c o u n t   >   0 	 	 / *   f i n d   t h e   p a t t e r n   * / 
                 t h e n 
 	 d o   j   =   1   t o   h t a b . c o u n t   w h i l e   ( t a b _ n a m e   ^ =   h t a b . n a m e   ( j ) ) ; 
 	 e n d ; 
                 e l s e   j   =   0 ; 
 
                 i f   j   =   0   |   j   >   h t a b . c o u n t 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " T a b   p a t t e r n   n o t   d e f i n e d . " , 
 	               a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	     g o t o   r e t u r n _ ; 
 	 e n d ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   f i n d   t h e   t a b   c h a r   i n   t h e   a c t i v e   l i s t   * / 
         i   =   i n d e x   ( h t a b . c h a r s ,   t a b _ c h a r ) ; 
 
         i f   i   =   0 	 	 	 / *   i f   n o t   a n   a c t i v e   t a b   c h a r   * / 
         t h e n 
             d o ; 
                 h t a b . c h a r s   = 	 	 / *   r e c o r d   n e w   t a b   c h a r   * / 
 	       h t a b . c h a r s   | |   t a b _ c h a r ; 
                 i   =   l e n g t h   ( h t a b . c h a r s ) ; 	 / *   a n d   s e t   t h e   i n d e x   * / 
             e n d ; 
 
         h t a b . p a t s   ( i )   =   j ; 	 	 / *   r e c o r d   p a t t e r n   i n d e x   * / 
         c u r r e n t _ p a r m s . h t a b _ m o d e   =   " 1 " b ; 	 / *   s e t   t h e   m o d e   f l a g   * / 
 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
         t h e n 
             d o ; 
                 i f   t e x t . i n p u t _ l i n e   ^ =   " " 	 / *   f i r s t   a   f o r m a t   b r e a k   * / 
                 t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
                 t e x t . p a r m s . h t a b _ m o d e   =   " 1 " b ; 
             e n d ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 1 3 ) : 	 	 	 / *   " . i n "   =   i n d e n t - l e f t   * / 
 c t l _   ( 1 1 4 ) : 	 	 	 / *   " . i n b "   =   i n d e n t - b o t h   * / 
 c t l _   ( 1 1 5 ) : 	 	 	 / *   " . i n l "   =   i n d e n t - l e f t   * / 
         s a v e _ i n d e x   =   c t l . i n d e x ; 	 	 / *   s a v e   i n d e x   i n   c a s e   o f   . i n b   * / 
 
         i f   s h a r e d . b l k p t r   ^ =   n u l l 	 	 / *   i f   t h e r e   i s   a n   a c t i v e   b l o c k   * / 
         t h e n   i f   t e x t . i n p u t _ l i n e   ^ =   " " 	 / *   c l e a n   u p   a n y   l e f t o v e r s   * / 
                   t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 
         i f   s h a r e d . f t n _ m o d e 
         t h e n   c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( c u r r e n t _ p a r m s . l e f t . i n d e n t , 
 	         " f o o t n o t e   l e f t   i n d e n t " ,   f o o t n o t e _ p a r m s . l e f t . i n d e n t , 
 	         f o o t n o t e _ p a r m s . l e f t . i n d e n t ,   f o o t n o t e _ p a r m s . m e a s u r e ,   h s c a l e s , 
 	         c o m p _ d v t . m i n _ W S ) ; 
         e l s e   c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( c u r r e n t _ p a r m s . l e f t . i n d e n t ,   " l e f t   i n d e n t " ,   0 , 
 	         0 ,   c u r r e n t _ p a r m s . m e a s u r e ,   h s c a l e s ,   c o m p _ d v t . m i n _ W S ) ; 
 
         i f   s h a r e d . b l k p t r   ^ =   n u l l 	 	 / *   i f   t h e r e   i s   a n   a c t i v e   b l o c k   * / 
         t h e n   t e x t . p a r m s . l e f t . i n d e n t   =   c u r r e n t _ p a r m s . l e f t . i n d e n t ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _ $ r s n n l   ( " c o l = ^ d   m r g = ^ f / ^ f   n e t = ^ f " ,   e x i t _ s t r ,   0 , 
 	         p a g e . h d r . c o l _ i n d e x ,   s h o w   ( c u r r e n t _ p a r m s . l e f t . i n d e n t ,   1 2 0 0 0 ) , 
 	         s h o w   ( c u r r e n t _ p a r m s . m e a s u r e   -   c u r r e n t _ p a r m s . r i g h t . i n d e n t ,   1 2 0 0 0 ) , 
 	         s h o w   ( c u r r e n t _ p a r m s . m e a s u r e   -   c u r r e n t _ p a r m s . l e f t . i n d e n t 
 	         -   c u r r e n t _ p a r m s . r i g h t . i n d e n t ,   1 2 0 0 0 ) ) ; 
 
         i f   i n d e x   ( c t l _ l i n e ,   " . i n b " )   ^ =   1 	 / *   i f   n o t   i n d e n t i n g   b o t h   m a r g i n s   * / 
         t h e n   g o t o   r e t u r n _ ; 
 
         c t l . i n d e x   =   s a v e _ i n d e x ; 	 	 / *   r e s t o r e   i n d e x   * / 
         g o t o   i n r _ c t l ; 	 	 	 / *   s e t   t h e   o t h e r   s i d e   * / 
 
 c t l _   ( 1 1 6 ) : 	 	 	 / *   " . i n r "   =   i n d e n t - r i g h t   * / 
 i n r _ c t l : 
         c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( c u r r e n t _ p a r m s . r i g h t . i n d e n t ,   " r i g h t   i n d e n t " ,   0 ,   0 , 
                   c u r r e n t _ p a r m s . m e a s u r e ,   h s c a l e s ,   c o m p _ d v t . m i n _ W S ) ; 
 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   i f   t h e r e   i s   a n   a c t i v e   b l o c k   * / 
         t h e n 
             d o ; 
                 i f   t e x t . i n p u t _ l i n e   ^ =   " " 	 / *   a n y   l e f t o v e r s   * / 
                 t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
                 t e x t . p a r m s . r i g h t . i n d e n t   =   c u r r e n t _ p a r m s . r i g h t . i n d e n t ; 
             e n d ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _ $ r s n n l   ( " c o l = ^ d   m r g = ^ f / ^ f   n e t = ^ f " ,   e x i t _ s t r ,   0 , 
 	         p a g e . h d r . c o l _ i n d e x ,   s h o w   ( c u r r e n t _ p a r m s . l e f t . i n d e n t ,   1 2 0 0 0 ) , 
 	         s h o w   ( c u r r e n t _ p a r m s . m e a s u r e   +   c u r r e n t _ p a r m s . l e f t . i n d e n t ,   1 2 0 0 0 ) , 
 	         s h o w   ( c u r r e n t _ p a r m s . m e a s u r e ,   1 2 0 0 0 ) ) ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 2 0 ) : 	 	 	 / *   " . l s "   =   l i n e - s p a c e   * / 
         c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( c u r r e n t _ p a r m s . l i n e s p a c e ,   " l i n e s p a c i n g " , 
                   o p t i o n . l i n e s p a c e ,   0 ,   p a g e . p a r m s . l e n g t h ,   v s c a l e s ,   c o m p _ d v t . m i n _ l e a d ) ; 
 
         c t l . l i n e s p a c e   =   c u r r e n t _ p a r m s . l i n e s p a c e ; 
 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
         t h e n   t e x t . p a r m s . l i n e s p a c e ,   t e x t . i n p u t . l i n e s p a c e   =   c u r r e n t _ p a r m s . l i n e s p a c e ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 2 1 ) : 	 	 	 / *   " . p d "     =   p a g e - d e f i n e   * / 
         g o t o   p d l _ c t l ; 
 
 c t l _   ( 1 2 2 ) : 	 	 	 / *   " . p d c "   =   p a g e - d e f i n e - c o l u m n   * / 
 p d c _ c t l : 
         i f   s h a r e d . b l k p t r   ^ =   n u l l 	 	 / *   f i n i s h   a n   a c t i v e   b l o c k   * / 
         t h e n   c a l l   c o m p _ b r e a k _   ( b l o c k _ b r e a k ,   0 ) ; 
 	 	 	 	 / *   i f   w e   h a v e   a n y t h i n g   * / 
         i f   p a g e . h d r . u s e d   >   0 	 	 / *   b a l a n c e   t h e   p a g e   * / 
         t h e n   c a l l   c o m p _ b r e a k _   ( c o l u m n _ b r e a k ,   0 ) ; 
 
         i f   c t l . i n d e x   > =   l e n g t h   ( c t l _ l i n e ) 	 / *   i f   n o   c o l u m n s   a r e   g i v e n   * / 
         t h e n 
             d o ; 
                 i f   p a g e . p a r m s . c o l s . c o u n t   >   0 
                 t h e n 
 	 d o ; 
 / * * * * 	     c o l 0 . h d r . p s p c   =   0 ; 	 / *   e r a s e   o l d   h e a d   s p a c e   * / 
 	     d o   i   =   1   t o   p a g e . p a r m s . c o l s . c o u n t ; 
 	         m a x c o l u s d   =   m a x   ( m a x c o l u s d ,   p a g e . c o l u m n _ p t r   ( i )   - >   c o l . h d r . u s e d ) ; 
 	     e n d ; 
 	 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   r e v e r t   t o   c o l 0   * / 
                 p a g e _ p a r m s . c o l s . c o u n t ,   p a g e . p a r m s . c o l s . c o u n t ,   p a g e _ h e a d e r . c o l _ i n d e x , 
 	       p a g e . h d r . c o l _ i n d e x   =   0 ; 
                 s h a r e d . c o l p t r   =   p a g e . c o l u m n _ p t r   ( 0 ) ; 
                 c u r r e n t _ p a r m s . m e a s u r e   =   c o l 0 . p a r m s . m e a s u r e ; 
 
                 i f   s h a r e d . b u g _ m o d e 
                 t h e n   c a l l   i o a _ $ r s n n l   ( " ^ a   c o l = 0   b ^ d   u ^ f / ^ f ( ^ f ) ^ [   f t n = ^ d / ^ f ^ ; ^ 2 s ^ ] " 
 	                 | |   "   h ^ f   p a g = ^ a   c ^ d   u ^ f / ^ f   h ^ f ^ [   p i = ^ d   ^ f ^ ] " ,   e x i t _ s t r ,   0 , 
 	                 e x i t _ s t r ,   c o l . h d r . b l k c t ,   s h o w   ( c o l . h d r . u s e d ,   1 2 0 0 0 ) , 
 	                 s h o w   ( c o l . h d r . n e t ,   1 2 0 0 0 ) ,   s h o w   ( c o l . d e p t h _ a d j ,   1 2 0 0 0 ) , 
 	                 ( c o l . h d r . f t n . c t   >   0 ) ,   c o l . h d r . f t n . c t , 
 	                 s h o w   ( c o l . h d r . f t n . u s d ,   1 2 0 0 0 ) ,   s h o w   ( c o l . h d r . p s p c ,   1 2 0 0 0 ) , 
 	                 p a g e . h d r . p a g e n o ,   p a g e . h d r . c o l _ c o u n t , 
 	                 s h o w   ( p a g e . h d r . u s e d ,   1 2 0 0 0 ) ,   s h o w   ( p a g e . h d r . n e t ,   1 2 0 0 0 ) , 
 	                 s h o w   ( p a g e . h d r . h d s p c ,   1 2 0 0 0 ) ,   ( s h a r e d . p i c t u r e . c o u n t   >   0 ) , 
 	                 s h a r e d . p i c t u r e . c o u n t ,   s h o w   ( s h a r e d . p i c t u r e . s p a c e ,   1 2 0 0 0 ) ) ; 
             e n d ; 
 
         e l s e 	 	 	 	 / *   d o   t h e   g i v e n   c o l u m n s   * / 
             d o ; 
                 c o l 0 . m a r g i n . r i g h t ,   c o l 0 . p a r m s . m e a s u r e   =   p a g e . p a r m s . m e a s u r e ; 
 / * * * *   c o l u m n   1   i s   g i v e n   s p e c i a l   t r e a t m e n t   b e c a u s e ,   i f   i t s   w i d t h 
             i s   z e r o ,   i t s   g u t t e r   a s   a s s i g n e d   t o   c o l u m n   l e f t   m a r g i n 
             a n d   t h e   s e c o n d   c o l u m n   s p e c   i s   t a k e n   f o r   c o l u m n   1 .   * / 
 	 	 	 	 / *   i f   n o   c o l u m n   1   y e t   * / 
                 i f   p a g e . c o l u m n _ p t r   ( 1 )   =   n u l l   ( ) 
                 t h e n 
 	 d o ; 
 	     p a g e . c o l u m n _ p t r   ( 1 )   =   a l l o c a t e   ( c o n s t . l o c a l _ a r e a _ p t r ,   s i z e   ( c o l ) ) ; 
 	     c o l 1 . b l k p t r   ( * )   =   n u l l   ( ) ; 
 	     c o l 1 . h d r   =   c o l h d r ; 
 	     c o l 1 . h d r p t r ,   c o l 1 . f t r p t r   =   n u l l   ( ) ; 
 	     c o l 1 . h d r u s d ,   c o l 1 . f t r u s d   =   0 ; 
 	 e n d ; 
 
                 p a g e _ p a r m s . c o l s . c o u n t   =   1 ; 	 / *   s e t   c o l   1   p a r m s   * / 
                 c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( c o l 1 . p a r m s . m e a s u r e ,   "   c o l u m n   1   m e a s u r e " ,   0 ,   0 , 
 	       p a g e _ p a r m s . m e a s u r e ,   h s c a l e s ,   c o m p _ d v t . m i n _ W S ) ; 
                 p a g e _ w i d t h   =   c o l 1 . p a r m s . m e a s u r e ; / * * / 
 	 	 	 	 / *   i s   t h e r e   a   d e p t h   v a l u e ?   * / 
                 i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   =   " ( " 
                 t h e n 
 	 d o ; 
 	     c t l . i n d e x   =   c t l . i n d e x   +   1 ; 	 / *   s t e p   o v e r   p a r e n   * / 
 	     c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( c o l _ d e p t h _ a d j ,   " i n i t i a l   c o l u m n   1   d e p t h " , 
 	               p a g e _ p a r m s . l e n g t h ,   - p a g e _ p a r m s . l e n g t h ,   p a g e _ p a r m s . l e n g t h , 
 	               v s c a l e s ,   c o m p _ d v t . m i n _ l e a d ) ; 
 
 	     c t l . i n d e x   =   c t l . i n d e x   +   2 ; 	 / *   s t e p   o v e r   p a r e n   a n d   c o m m a   * / 
 	 e n d ; 
                 e l s e   c o l _ d e p t h _ a d j   =   0 ; 
                 c o l 1 . d e p t h _ a d j   =   c o l _ d e p t h _ a d j ; 
 
                 i f   p a g e _ w i d t h   =   0 	 	 / *   i f   i t s   z e r o   w i d t h   * / 
                 t h e n 
 	 d o ; 	 	 	 / *   g u t t e r   b e c o m e s   l e f t   m a r g i n   * / 
 	     c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( c o l 1 . m a r g i n . l e f t ,   " c o l u m n   1   l e f t   m a r g i n " , 
 	               0 ,   0 ,   p a g e _ p a r m s . m e a s u r e ,   h s c a l e s ,   c o m p _ d v t . m i n _ W S ) ; 
 	     c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( c o l 1 . p a r m s . m e a s u r e ,   " c o l u m n   1   m e a s u r e " ,   0 , 
 	               0 ,   p a g e _ p a r m s . m e a s u r e ,   h s c a l e s ,   c o m p _ d v t . m i n _ W S ) ; 
 
 	     i f   p a g e _ w i d t h   +   c o l 1 . p a r m s . m e a s u r e   >   p a g e _ p a r m s . m e a s u r e 
 	     t h e n   g o t o   b a d _ c o l ; 
 
 	     e l s e   p a g e _ w i d t h   =   c o l 1 . m a r g i n . l e f t   +   c o l 1 . p a r m s . m e a s u r e ; 
 	 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   c o l   1   h a s   w i d t h ,   s o   * / 
                 e l s e   c o l 1 . m a r g i n . l e f t   =   0 ; 	 / *   i t   h a s   0   m a r g i n   * / 
                 c o l 1 . m a r g i n . r i g h t   =   c o l 1 . m a r g i n . l e f t   +   c o l 1 . p a r m s . m e a s u r e ; 
 
                 c o l 1 . h d r . n e t   =   p a g e . h d r . n e t   -   c o l 0 . h d r . u s e d   -   c o l 0 . h d r . f t n . u s d ; 
                 c o l 1 . h d r . b a l d e p t h   =   p a g e . h d r . b a l d e p t h ; 
                 m a x c o l u s d   =   c o l 1 . h d r . u s e d ; 
 
 / * * * *                 i f   c o l 0 . h d r . u s e d   =   0 
 / * * * *                 t h e n   c o l 1 . h d r . p s p c   =   p a g e . h d r . h d s p c ; 
 / * * * *                 e l s e   * / 
                 c o l 1 . h d r . p s p c   =   c o l 0 . h d r . p s p c ; 
 
                 i f   s h a r e d . b u g _ m o d e 
                 t h e n   c a l l   i o a _ $ r s n n l   ( " ^ a   c o l = 1   b ^ d   u ^ f / ^ f ( ^ f ) ^ [   f t n = ^ d / ^ f ^ ; ^ 2 s ^ ] " 
 	                 | |   "   h ^ f   p a g = ^ a   c ^ d   u ^ f / ^ f   h ^ f ^ [   p i = ^ d   ^ f ^ ] " ,   e x i t _ s t r ,   0 , 
 	                 e x i t _ s t r ,   c o l 1 . h d r . b l k c t ,   s h o w   ( c o l 1 . h d r . u s e d ,   1 2 0 0 0 ) , 
 	                 s h o w   ( c o l 1 . h d r . n e t ,   1 2 0 0 0 ) ,   s h o w   ( c o l 1 . d e p t h _ a d j ,   1 2 0 0 0 ) , 
 	                 ( c o l 1 . h d r . f t n . c t   >   0 ) ,   c o l 1 . h d r . f t n . c t , 
 	                 s h o w   ( c o l 1 . h d r . f t n . u s d ,   1 2 0 0 0 ) ,   s h o w   ( c o l 1 . h d r . p s p c ,   1 2 0 0 0 ) , 
 	                 p a g e . h d r . p a g e n o ,   p a g e . h d r . c o l _ c o u n t , 
 	                 s h o w   ( p a g e . h d r . u s e d ,   1 2 0 0 0 ) ,   s h o w   ( p a g e . h d r . n e t ,   1 2 0 0 0 ) , 
 	                 s h o w   ( p a g e . h d r . h d s p c ,   1 2 0 0 0 ) ,   ( s h a r e d . p i c t u r e . c o u n t   >   0 ) , 
 	                 s h a r e d . p i c t u r e . c o u n t ,   s h o w   ( s h a r e d . p i c t u r e . s p a c e ,   1 2 0 0 0 ) ) ; 
 	 	 	 	 / *   s e t   b a l   d e f a u l t   * / 
                 p a g e _ p a r m s . c o l s . b a l ,   p a g e . p a r m s . c o l s . b a l   =   " 1 " b ; 
 	 	 	 	 / *   n o w   t h e   r e s t   o f   t h e   c o l u m n s   * / 
                 d o   w h i l e   ( c t l . i n d e x   <   l e n g t h   ( c t l _ l i n e ) ) ; 
 	 	 	 	 / *   i f   t o o   m a n y   c o l u m n s   * / 
 	 i f   p a g e _ p a r m s . c o l s . c o u n t   =   m a x _ c o l s 
 	 t h e n 
 	     d o ; 
 	         c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	                   " O n l y   "   | |   l t r i m   ( c h a r   ( m a x _ c o l s ) ) 
 	                   | |   "   t e x t   c o l u m n s   a l l o w e d . " ,   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	         g o t o   r e t u r n _ ; 
 	     e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   g o   t o   n e x t   c o l u m n   * / 
 	 p a g e _ p a r m s . c o l s . c o u n t   =   p a g e _ p a r m s . c o l s . c o u n t   +   1 ; 
 
 	 l o c o l p t r   =   p a g e . c o l u m n _ p t r   ( p a g e _ p a r m s . c o l s . c o u n t ) ; 
 	 i f   l o c o l p t r   =   n u l l   ( ) 	 / *   a l l o c a t e   t h e   c o l u m n   * / 
 	 t h e n 
 	     d o ; 
 	         p a g e . c o l u m n _ p t r   ( p a g e _ p a r m s . c o l s . c o u n t )   = 
 	                   a l l o c a t e   ( c o n s t . l o c a l _ a r e a _ p t r ,   s i z e   ( c o l ) ) ; 
 
 	         l o c o l p t r   =   p a g e . c o l u m n _ p t r   ( p a g e _ p a r m s . c o l s . c o u n t ) ; 
 	         l o c o l . h d r   =   c o l h d r ; 
 	         l o c o l . h d r p t r ,   l o c o l . f t r p t r   =   n u l l   ( ) ; 
 	         l o c o l . h d r u s d ,   l o c o l . f t r u s d   =   0 ; 
 	         l o c o l . b l k p t r   ( * )   =   n u l l   ( ) ; 
 	     e n d ; 
 
 	 c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( l o c o l . g u t t e r ,   " c o l u m n   g u t t e r " ,   3   *   7 2 0 0 ,   0 , 
 	           p a g e _ p a r m s . m e a s u r e ,   h s c a l e s ,   c o m p _ d v t . m i n _ W S ) ; 
 
 	 i f   p a g e _ w i d t h   +   l o c o l . g u t t e r   > =   p a g e _ p a r m s . m e a s u r e 
 	 t h e n 
 	     d o ; 
 b a d _ c o l : 
 	         c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ i n c o n s i s t e n t , 
 	                   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	                   " S u m   o f   c o l u m n   w i d t h s   e x c e e d s   p a g e   w i d t h .   A l l   c o l u m n s   " 
 	                   | |   " a f t e r   c o l u m n   ^ d   w i l l   b e   i g n o r e d . " , 
 	                   p a g e _ p a r m s . c o l s . c o u n t ) ; 
 	         p a g e . p a r m s . c o l s   =   p a g e _ p a r m s . c o l s ; 
 	         p a g e . h d r . c o l _ c o u n t ,   p a g e . p a r m s . c o l s . c o u n t   = 
 	                   p a g e _ p a r m s . c o l s . c o u n t ; 
 	         g o t o   r e t u r n _ ; 
 	     e n d ; 
 
 	 e l s e 
 	     d o ; 
 	         l o c o l . m a r g i n . l e f t ,   p a g e _ w i d t h   =   p a g e _ w i d t h   +   l o c o l . g u t t e r ; 
 	     e n d ; 
 
 	 c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( l o c o l . p a r m s . m e a s u r e , 
 	           " c o l u m n     "   | |   l t r i m   ( c h a r   ( p a g e _ p a r m s . c o l s . c o u n t ) ) 
 	           | |   "   m e a s u r e " ,   0 ,   0 ,   p a g e _ p a r m s . m e a s u r e ,   h s c a l e s , 
 	           c o m p _ d v t . m i n _ W S ) ; 
 
 	 i f   p a g e _ w i d t h   +   l o c o l . p a r m s . m e a s u r e   >   p a g e _ p a r m s . m e a s u r e 
 	 t h e n   g o t o   b a d _ c o l ; 
 	 e l s e   p a g e _ w i d t h   =   p a g e _ w i d t h   +   l o c o l . p a r m s . m e a s u r e ; 
 
 	 l o c o l . m a r g i n . r i g h t   =   l o c o l . m a r g i n . l e f t   +   l o c o l . p a r m s . m e a s u r e ; 
 	 	 	 	 / *   i f   t h e r e   a   d e p t h   v a l u e ?   * / 
 	 i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
 	 t h e n   i f   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 )   =   " ( " 
 	           t h e n 
 	               d o ; 	 	 / *   s t e p   o v e r   p a r e n   * / 
 	                   c t l . i n d e x   =   c t l . i n d e x   +   1 ; 
 	                   c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( c o l _ d e p t h _ a d j , 
 	 	         " i n i t i a l   c o l u m n   d e p t h " ,   p a g e _ p a r m s . l e n g t h , 
 	 	         - p a g e _ p a r m s . l e n g t h ,   p a g e _ p a r m s . l e n g t h ,   v s c a l e s , 
 	 	         c o m p _ d v t . m i n _ l e a d ) ; 
 	 	 	 	 / *   s t e p   o v e r   p a r e n   a n d   c o m m a   * / 
 	                   c t l . i n d e x   =   c t l . i n d e x   +   2 ; 
 	               e n d ; 
 	           e l s e   c o l _ d e p t h _ a d j   =   0 ; 
 	 l o c o l . d e p t h _ a d j   =   c o l _ d e p t h _ a d j ; 
 
 	 l o c o l . h d r . n e t   = 
 	           p a g e . h d r . n e t   -   c o l 0 . h d r . u s e d   -   c o l 0 . h d r . f t n . u s d   -   l o c o l . f t r u s d ; 
 
 / * * * * 	 i f   c o l 0 . h d r . u s e d   =   0 
 / * * * * 	 t h e n   l o c o l . h d r . p s p c   =   p a g e . h d r . h d s p c ; 
 / * * * * 	 e l s e   * / 
 	 l o c o l . h d r . p s p c   =   c o l 0 . h d r . p s p c ; 
 
 	 l o c o l . h d r . b a l d e p t h   =   p a g e . h d r . b a l d e p t h ; 
 	 m a x c o l u s d   =   m a x   ( m a x c o l u s d ,   l o c o l . h d r . u s e d ) ; 
                 e n d ; 
 
                 i f   c t l . i n d e x   =   l e n g t h   ( c t l _ l i n e ) 
                 t h e n 
 	 d o ; 
 	     i f   i n d e x   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   " u " )   =   1 
 	     t h e n   p a g e _ p a r m s . c o l s . b a l ,   p a g e . p a r m s . c o l s . b a l   =   " 0 " b ; 
 	     e l s e   p a g e _ p a r m s . c o l s . b a l ,   p a g e . p a r m s . c o l s . b a l   =   " 1 " b ; 
 	 e n d ; 
 
                 p a g e . p a r m s . c o l s   =   p a g e _ p a r m s . c o l s ; 
 	 	 	 	 / *   g o   t o   c o l u m n   1   * / 
                 p a g e _ p a r m s . c o l s . c o u n t ,   p a g e . h d r . c o l _ i n d e x   =   1 ; 
                 s h a r e d . c o l p t r   =   p a g e . c o l u m n _ p t r   ( 1 ) ; 
                 c u r r e n t _ p a r m s . m e a s u r e   =   c o l 1 . p a r m s . m e a s u r e ; 
             e n d ; 
 
         i f   p a g e . h d r . u s e d   >   0 
         t h e n   p a g e . h d r . c o l _ c o u n t   =   m a x   ( p a g e . h d r . c o l _ c o u n t ,   p a g e . p a r m s . c o l s . c o u n t ) ; 
         e l s e   p a g e . h d r . c o l _ c o u n t   =   p a g e . p a r m s . c o l s . c o u n t ; 
 
         d o   i   =   0   t o   p a g e . h d r . c o l _ c o u n t ; 
             l o c o l p t r   =   p a g e . c o l u m n _ p t r   ( i ) ; 
             i f   i   >   0 
             t h e n   l o c o l . h d r . b a l u s d ,   l o c o l . h d r . u s e d   =   m a x c o l u s d ; 
 
             i f   s h a r e d . b u g _ m o d e 
             t h e n 
                 d o ; 
 	 c o l _ d e p t h _ a d j   =   l o c o l . d e p t h _ a d j ; 
 	 c a l l   i o a _   ( " ^ 5 x ( c o l = ^ d   b ^ d   d ^ f   u ^ f / ^ f ( ^ f )   h ^ f   " 
 	           | |   " m r g = ^ f / ^ f / ^ f ^ [   ( f ^ d   ^ f ) ^ ] " ,   i ,   l o c o l . h d r . b l k c t , 
 	           s h o w   ( l o c o l . h d r . b a l d e p t h ,   1 2 0 0 0 ) ,   s h o w   ( l o c o l . h d r . u s e d ,   1 2 0 0 0 ) , 
 	           s h o w   ( l o c o l . h d r . n e t ,   1 2 0 0 0 ) ,   s h o w   ( l o c o l . d e p t h _ a d j ,   1 2 0 0 0 ) , 
 	           s h o w   ( l o c o l . h d r . p s p c ,   1 2 0 0 0 ) ,   s h o w   ( l o c o l . m a r g i n . l e f t ,   1 2 0 0 0 ) , 
 	           s h o w   ( l o c o l . m a r g i n . r i g h t ,   1 2 0 0 0 ) , 
 	           s h o w   ( l o c o l . p a r m s . m e a s u r e ,   1 2 0 0 0 ) ,   ( l o c o l . h d r . f t n . c t   >   0 ) , 
 	           l o c o l . h d r . f t n . c t ,   s h o w   ( l o c o l . h d r . f t n . u s d ,   1 2 0 0 0 ) ) ; 
                 e n d ; 
         e n d ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 2 3 ) : 	 	 	 / *   " . p d l "   =   p a g e - d e f i n e - l e n g t h   * / 
 p d l _ c t l : 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   c l e a n   u p   c u r r e n t   b l o c k   * / 
         t h e n   c a l l   c o m p _ b r e a k _   ( b l o c k _ b r e a k ,   0 ) ; 
 
         h f _ n e e d e d   =   0 ; 	 	 	 / *   l e n g t h   i s   f i r s t ,   f i n d   m i n   v a l   * / 
         i f   s h a r e d . o p h d r p t r   ^ =   n u l l   ( ) 
         t h e n   h f _ n e e d e d   =   m a x   ( h f _ n e e d e d ,   s h a r e d . o p h d r p t r   - >   h f c b l k . h d r . u s e d ) ; 
         i f   s h a r e d . e p h d r p t r   ^ =   n u l l   ( ) 
         t h e n   h f _ n e e d e d   =   m a x   ( h f _ n e e d e d ,   s h a r e d . e p h d r p t r   - >   h f c b l k . h d r . u s e d ) ; 
         i f   s h a r e d . o p f t r p t r   ^ =   n u l l   ( ) 
         t h e n   h f _ n e e d e d   =   m a x   ( h f _ n e e d e d ,   s h a r e d . o p f t r p t r   - >   h f c b l k . h d r . u s e d ) ; 
         i f   s h a r e d . e p f t r p t r   ^ =   n u l l   ( ) 
         t h e n   h f _ n e e d e d   =   m a x   ( h f _ n e e d e d ,   s h a r e d . e p f t r p t r   - >   h f c b l k . h d r . u s e d ) ; 
         m i n _ v a l   = 
                   p a g e . p a r m s . m a r g i n . t o p   +   p a g e . p a r m s . m a r g i n . h e a d e r   +   h f _ n e e d e d 
                   +   p a g e . p a r m s . m a r g i n . f o o t e r   +   p a g e . p a r m s . m a r g i n . b o t t o m   +   1 2 0 0 0 ; 
 
         c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( p a g e . p a r m s . l e n g t h ,   " p a g e   l e n g t h " ,   7 9 2 0 0 0 ,   m i n _ v a l , 
                   c o m p _ d v t . p d l _ m a x ,   v s c a l e s ,   c o m p _ d v t . m i n _ l e a d ) ; 
         p a g e _ p a r m s . l e n g t h   =   p a g e . p a r m s . l e n g t h ; 
 
         i f   ^ o p t i o n . g a l l e y _ o p t 
         t h e n   c a l l   c o m p _ u t i l _ $ s e t _ n e t _ p a g e   ( " 0 " b ) ; 
 
         i f   i n d e x   ( c t l _ l i n e ,   " . p d l " )   =   1 	 / *   i f   l e n g t h   o n l y   * / 
         t h e n 
             d o ; 
                 i f   s h a r e d . b u g _ m o d e 
                 t h e n   c a l l   i o a _ $ r s n n l   ( " p a g e   l e n g t h   =   ^ f " ,   e x i t _ s t r ,   0 , 
 	                 s h o w   ( p a g e . p a r m s . l e n g t h ,   1 2 0 0 0 ) ) ; 
                 g o t o   r e t u r n _ ; 
             e n d ; 
 
         e l s e   g o t o   p d w _ c t l ; 	 	 / *   o t h e r w i s e ,   g o   f o r   w i d t h   * / 
 
 c t l _   ( 1 2 4 ) : 	 	 	 / *   " . p d w "   =   p a g e - d e f i n e - w i d t h   * / 
 p d w _ c t l : 
         c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( p a g e _ p a r m s . m e a s u r e ,   " p a g e   w i d t h " ,   4 6 8 0 0 0 ,   1 , 
                   c o m p _ d v t . p d w _ m a x ,   h s c a l e s ,   c o m p _ d v t . m i n _ W S ) ; 
         p a g e . p a r m s . m e a s u r e ,   c o l 0 . p a r m s . m e a s u r e ,   c o l 0 . m a r g i n . r i g h t , 
                   t e x t _ p a r m s . m e a s u r e ,   f o o t n o t e _ p a r m s . m e a s u r e   =   p a g e _ p a r m s . m e a s u r e ; 
 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
         t h e n   t e x t . p a r m s . m e a s u r e   =   t e x t _ p a r m s . m e a s u r e ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _ $ r s n n l   ( " p a g , c o l 0   m e a s u r e   ^ f " ,   e x i t _ s t r ,   0 , 
 	         s h o w   ( p a g e _ p a r m s . m e a s u r e ,   1 2 0 0 0 ) ) ; 
 
         i f   i n d e x   ( c t l _ l i n e ,   " . p d w " )   =   1 
         t h e n   g o t o   r e t u r n _ ; 	 	 / *   i f   w i d t h   o n l y   * / 
         e l s e   g o t o   p d c _ c t l ; 	 	 / *   o t h e r w i s e ,   g o   f o r   c o l u m n s   * / 
 
 c t l _   ( 1 6 2 ) : 	 	 	 / *   " . u n "     =   u n d e n t   * / 
 c t l _   ( 1 6 3 ) : 	 	 	 / *   " . u n b "   =   u n d e n t - b o t h   * / 
         g o t o   u n l _ c t l ; 
 
 c t l _   ( 1 6 4 ) : 	 	 	 / *   " . u n h "   =   u n d e n t - h a n g i n g   * / 
 u n h _ c t l : 
         i f   s h a r e d . b l k p t r   =   n u l l 
         t h e n 
             d o ; 
                 i f   ^ p a g e . h d r . h e a d e d   &   ^ o p t i o n . g a l l e y _ o p t 
                 t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( h e a d _ u s e d ) ; 
                 c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " t x " , 
 	       a d d r   ( c u r r e n t _ p a r m s ) ,   " 0 " b ) ; 
             e n d ; 
         e l s e   i f   t e x t . i n p u t _ l i n e   ^ =   " " 
         t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 
         t e x t . i n p u t . h a n g i n g   =   " 1 " b ; 
         g o t o   j o i n _ u n l ; 
 
 c t l _   ( 1 6 5 ) : 	 	 	 / *   " . u n l "   =   u n d e n t - l e f t   * / 
 u n l _ c t l : 
         i f   s h a r e d . b l k p t r   =   n u l l 
         t h e n 
             d o ; 
                 i f   ^ p a g e . h d r . h e a d e d   &   ^ o p t i o n . g a l l e y _ o p t 
                 t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( h e a d _ u s e d ) ; 
                 c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " t x " , 
 	       a d d r   ( c u r r e n t _ p a r m s ) ,   " 0 " b ) ; 
             e n d ; 
         e l s e   i f   t e x t . i n p u t _ l i n e   ^ =   " " 
         t h e n   c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 
 j o i n _ u n l : 
         n e t _ l i n e   = 
                   c u r r e n t _ p a r m s . m e a s u r e   -   c u r r e n t _ p a r m s . r i g h t . i n d e n t 
                   -   c u r r e n t _ p a r m s . l e f t . i n d e n t ; 
         c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( t e x t . p a r m s . l e f t . u n d e n t ,   " l e f t   m a r g i n   u n d e n t " , 
                   t e x t . p a r m s . l e f t . i n d e n t ,   - n e t _ l i n e ,   t e x t . p a r m s . l e f t . i n d e n t ,   h s c a l e s , 
                   c o m p _ d v t . m i n _ W S ) ; 
 
         i f   i n d e x   ( c t l _ l i n e ,   " . u n b " )   =   1 
         t h e n   t e x t . p a r m s . r i g h t . u n d e n t   =   t e x t . p a r m s . l e f t . u n d e n t ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _ $ r s n n l   ( " c o l = ^ d   m r g = ^ f / ^ f / ^ f " ,   e x i t _ s t r ,   0 , 
 	         p a g e . h d r . c o l _ i n d e x , 
 	         s h o w   ( t e x t . p a r m s . l e f t . i n d e n t   -   t e x t . p a r m s . l e f t . u n d e n t ,   1 2 0 0 0 ) , 
 	         s h o w   ( t e x t . p a r m s . m e a s u r e   -   t e x t . p a r m s . r i g h t . i n d e n t 
 	         +   t e x t . p a r m s . r i g h t . u n d e n t ,   1 2 0 0 0 ) , 
 	         s h o w   ( t e x t . p a r m s . m e a s u r e   -   t e x t . p a r m s . l e f t . i n d e n t 
 	         +   t e x t . p a r m s . l e f t . u n d e n t   -   t e x t . p a r m s . r i g h t . i n d e n t 
 	         +   t e x t . p a r m s . r i g h t . u n d e n t ,   1 2 0 0 0 ) ) ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 6 6 ) : 	 	 	 / *   " . u n n "   =   u n d e n t - n o b r e a k   -   O B S O L E T E D   B Y   . u n h   * / 
         g o t o   u n h _ c t l ; 
 
 c t l _   ( 1 6 7 ) : 	 	 	 / *   " . u n r "   =   u n d e n t - r i g h t   * / 
         i f   s h a r e d . b l k p t r   =   n u l l 
         t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " t x " , 
 	         a d d r   ( c u r r e n t _ p a r m s ) ,   " 0 " b ) ; 
 
         n e t _ l i n e   = 
                   p a g e _ p a r m s . m e a s u r e   -   c u r r e n t _ p a r m s . r i g h t . i n d e n t 
                   -   c u r r e n t _ p a r m s . l e f t . i n d e n t ; 
         c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( t e x t . p a r m s . r i g h t . u n d e n t ,   " r i g h t   m a r g i n   u n d e n t " , 
                   t e x t . p a r m s . r i g h t . i n d e n t ,   - n e t _ l i n e ,   t e x t . p a r m s . r i g h t . i n d e n t ,   h s c a l e s , 
                   c o m p _ d v t . m i n _ W S ) ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _ $ r s n n l   ( " c o l = ^ d   m r g = ^ f / ^ f / ^ f " ,   e x i t _ s t r ,   0 , 
 	         p a g e . h d r . c o l _ i n d e x , 
 	         s h o w   ( t e x t . p a r m s . l e f t . i n d e n t   -   t e x t . p a r m s . l e f t . u n d e n t ,   1 2 0 0 0 ) , 
 	         s h o w   ( t e x t . p a r m s . m e a s u r e   -   t e x t . p a r m s . r i g h t . i n d e n t 
 	         +   t e x t . p a r m s . r i g h t . u n d e n t ,   1 2 0 0 0 ) , 
 	         s h o w   ( t e x t . p a r m s . m e a s u r e   -   t e x t . p a r m s . l e f t . i n d e n t 
 	         +   t e x t . p a r m s . l e f t . u n d e n t   -   t e x t . p a r m s . r i g h t . i n d e n t 
 	         +   t e x t . p a r m s . r i g h t . u n d e n t ,   1 2 0 0 0 ) ) ; 
 
         g o t o   r e t u r n _ ; 
 
 r e t u r n _ : 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( f o r m a t _ c t l s : ^ [   ^ a ^ ] ) " ,   ( e x i t _ s t r   ^ =   " " ) ,   e x i t _ s t r ) ; 
 
         r e t u r n ; 
 % p a g e ; 
 s h o w : 
     p r o c   ( d a t u m ,   s c a l e )   r e t u r n s   ( f i x e d   d e c   ( 1 1 ,   3 ) ) ; 
         d c l   d a t u m 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   s c a l e 	       f i x e d   b i n   ( 3 1 ) ; 
 
         r e t u r n   ( r o u n d   ( d e c   ( r o u n d   ( d i v i d e   ( d a t u m ,   s c a l e ,   3 1 ,   1 1 ) ,   1 0 ) ,   1 1 ,   4 ) ,   3 ) ) ; 
     e n d   s h o w ; 
 % p a g e ; 
 % i n c l u d e   c o m p _ b r k t y p e s ; 
 % i n c l u d e   c o m p _ c o l u m n ; 
         d c l   1   c o l 1 	       a l i g n e d   l i k e   c o l   b a s e d   ( p a g e . c o l u m n _ p t r   ( 1 ) ) ; 
 % i n c l u d e   c o m p _ d v t ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ f o o t n o t e s ; 
 % i n c l u d e   c o m p _ h t a b ; 
 % i n c l u d e   c o m p _ o p t i o n ; 
 % i n c l u d e   c o m p _ p a g e ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t a b l e ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p s t a t ; 
 % i n c l u d e   t r a n s l a t o r _ t e m p _ a l l o c ; 
 
     e n d   c o m p _ f o r m a t _ c t l s _ ; 
        
 
 
  
 	 	         c o m p _ g e t _ f i l e _ . p l 1                             0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 0 9 . 6             1 2 4 1 9 1     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   s u b r o u t i n e   t o   l o c a t e   a n d   a c c e s s   i n p u t   f i l e s   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ g e t _ f i l e _ : 
     p r o c ; 
         r e t u r n ; 	 	 	 / *   n o   e n t r y   h e r e   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   c t l _ i n f o _ p t r       p t r ; 	 	 / *   f o r   c o m p _ r e p o r t _ $ c t l s t r   * / 
         d c l   ( i ,   j ,   k ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   1   i n s e r t _ s t a t u s 
 	 	       a l i g n e d   l i k e   s t a t u s _ b r a n c h ; 
 	 	 	 	 / *   l o c a l   i n s e r t   b l o c k   i n d e x   * / 
         d c l   i n s e r t n d x 	       f i x e d   b i n   i n i t   ( 0 ) ; 
         d c l   i t s p t r 	       p t r ; 	 	 / *   l o c a l   I T S   p o i n t e r   * / 
         d c l   p n a m e _ p t r 	       p t r ; 	 	 / *   p r i m a r y   e n t r y n a m e   * / 
         d c l   p n a m e 	       c h a r   ( 3 2 )   a l i g n e d   b a s e d   ( p n a m e _ p t r ) ; 
         d c l   s t a t u s _ a r e a 	       a r e a   ( 4 0 9 6 ) ; 	 / *   w o r k   a r e a   f o r   s t a t u s   * / 
 
         d c l   ( a d d r ,   b e f o r e ,   b o o l ,   d i v i d e ,   h b o u n d ,   i n d e x ,   n u l l ,   p o i n t e r ,   r t r i m ,   s i z e , 
                 s e a r c h ) 	       b u i l t i n ; 
 
         d c l   c o m p _ e r r o r _ t a b l e _ $ l i m i t a t i o n 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ n o _ r _ p e r m i s s i o n 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ s e g k n o w n 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ z e r o _ l e n g t h _ s e g 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 
         d c l   c o m _ e r r _ 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   e x p a n d _ p a t h n a m e _ $ a d d _ s u f f i x 
 	 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * )   a l i g n e d , 
 	 	       c h a r   ( * )   a l i g n e d ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   h c s _ $ s t a t u s _ l o n g 
 	 	       e n t r y   ( c h a r   ( * )   a l i g n e d ,   c h a r   ( * )   a l i g n e d , 
 	 	       f i x e d   b i n   ( 1 ) ,   p t r ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   m s f _ m a n a g e r _ $ g e t _ p t r 
 	 	       e n t r y   ( p t r ,   f i x e d   b i n ,   b i t   ( 1 ) ,   p t r ,   f i x e d   b i n   ( 2 4 ) , 
 	 	       f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   m s f _ m a n a g e r _ $ o p e n 
 	 	       e n t r y   ( c h a r   ( * )   a l i g n e d ,   c h a r   ( * )   a l i g n e d ,   p t r , 
 	 	       f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   p a t h n a m e _ 	       e n t r y   ( c h a r   ( * )   a l i g n e d ,   c h a r   ( * )   a l i g n e d ) 
 	 	       r e t u r n s   ( c h a r   ( 1 6 8 ) ) ; 
         d c l   s e a r c h _ p a t h s _ $ f i n d _ d i r 
 	 	       e n t r y   ( c h a r   ( * ) ,   p t r ,   c h a r   ( * )   a l i g n e d ,   c h a r   ( * ) , 
 	 	       c h a r   ( * )   a l i g n e d ,   f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   s u f f i x e d _ n a m e _ $ m a k e 
 	 	       e n t r y   ( c h a r   ( * )   a l i g n e d ,   c h a r   ( * ) ,   c h a r   ( 3 2 )   a l i g n e d , 
 	 	       f i x e d   b i n   ( 3 5 ) ) ; 
 
 f i n d : 
     e n t r y   ( g i v e n _ n a m e ,   f i l d a t a p t r ,   r e f d i r ,   s o u r c e _ f i l e ,   s u f f i x ,   e r c d ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   g i v e n _ n a m e 	       c h a r   ( * ) ; 	 / *   g i v e n   s e a r c h   n a m e   * / 
         d c l   f i l d a t a p t r 	       p t r ; 	 	 / *   p o i n t e r   t o   t h e   f i l e   s t r u c   * / 
         d c l   1   f i l d a t a 	       a l i g n e d   l i k e   i n s e r t . f i l e   b a s e d   ( f i l d a t a p t r ) ; 
         d c l   r e f d i r 	       c h a r   ( * ) ; 	 / *   d i r   f o r   r e f d i r   r u l e   * / 
         d c l   s o u r c e _ f i l e 	       b i t   ( 1 ) ; 	 / *   1 =   s o u r c e   f i l e ,   0 =   i n s e r t   f i l e   * / 
         d c l   s u f f i x 	       c h a r   ( * ) ; 	 / *   f i l e   s u f f i x   * / 
         d c l   e r c d 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   s y s t e m   e r r o r   c o d e   * / 
 
         c t l _ i n f o _ p t r   =   a d d r   ( c t l . i n f o ) ; 
         e r c d   =   0 ; 
 
         i f   ( s h a r e d . b u g _ m o d e   &   d t _ s w )   |   ( s o u r c e _ f i l e   &   s f _ s w ) 
         t h e n   c a l l   i o a _   ( " g e t _ f i l e _ $ f i n d :   ( ^ [ S ^ ; I ^ ]   ^ a ) " ,   s o u r c e _ f i l e ,   g i v e n _ n a m e ) ; 
 	 	 	 	 / *   f o r c e   s u f f i x ,   t h e   d i r   m a y   n o t   * / 
         c a l l 	 	 	 	 / *   b e   t h e   r i g h t   o n e ,   t h o   * / 
                   e x p a n d _ p a t h n a m e _ $ a d d _ s u f f i x   ( g i v e n _ n a m e ,   s u f f i x ,   f i l d a t a . d i r , 
                   f i l d a t a . e n t r y n a m e ,   e r c d ) ; 
         i f   e r c d   ^ =   0 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( e r c d ,   " c o m p o s e " ,   " E x p a n d i n g   p a t h   f o r   ^ a " ,   g i v e n _ n a m e ) ; 
                 g o t o   f i n d _ r e t u r n ; 
             e n d ; 
 
         f i l d a t a . r e f n a m e   = 
                   s u b s t r   ( f i l d a t a . e n t r y n a m e ,   1 ,   l e n g t h   ( r t r i m   ( f i l d a t a . e n t r y n a m e ) )   -   7 ) ; 
 
         i f   s o u r c e _ f i l e 	 	 	 / *   a   c o m m a n d   l i n e   f i l e ?   * / 
         t h e n   f i l d a t a . i n s e r t _ p t r   =   f i l d a t a p t r ; 
 
         e l s e 	 	 	 	 / *   i n s e r t   f i l e   * / 
             d o ; 	 	 	 	 / *   s e a r c h   f o r   g i v e n   n a m e   * / 
                 d o   i   =   1   t o   i n s e r t _ d a t a . r e f _ a r e a . c o u n t ; 
 	 r e f s t r _ p t r   = 	 	 / *   s e t   s e a r c h   p o i n t e r   &   l e n g t h   * / 
 	           a d d r   ( i n s e r t _ d a t a . r e f _ a r e a . p t r   ( i )   - >   i n s e r t _ r e f s . n a m e   ( 1 ) ) ; 
 	 r e f s t r _ l e n   =   3 2   *   i n s e r t _ d a t a . r e f _ a r e a . p t r   ( i )   - >   i n s e r t _ r e f s . c o u n t ; 
 	 	 	 	 / *   s e a r c h   n a m e   a r e a   * / 
 	 j   =   i n d e x   ( r e f n a m e _ s t r ,   f i l d a t a . e n t r y n a m e ) ; 
 
 	 i f   j   >   0 	 	 	 / *   d i d   w e   f i n d   i t ?   * / 
 	 t h e n 
 	     d o ; 	 	 	 / *   t r u e   n a m e   i n d e x   * / 
 	         j   =   d i v i d e   ( j ,   3 2 ,   1 7 ,   0 )   +   1 ; 
 	         i n s e r t n d x   = 	 	 / *   f e t c h   i n s e r t   i n d e x   * / 
 	                   i n s e r t _ d a t a . r e f _ a r e a . p t r   ( i )   - >   i n s e r t _ r e f s . i n d e x   ( j ) ; 
 	         g o t o   n a m e _ f o u n d ; 
 	     e n d ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   n o   l u c k ,   t h i s   i s   a   n e w   n a m e   * / 
                 i   =   i n s e r t _ d a t a . r e f _ a r e a . c o u n t ;   / *   s e l e c t   l a s t   n a m e   a r e a   * / 
 	 	 	 	 / *   f e t c h   c o u n t   * / 
                 j   =   i n s e r t _ d a t a . r e f _ a r e a . p t r   ( i )   - >   i n s e r t _ r e f s . c o u n t ; 
 	 	 	 	 / *   d o   w e   n e e d   a   f r e s h   n a m e   a r e a ?   * / 
                 i f   j   =   h b o u n d   ( i n s e r t _ d a t a . r e f _ a r e a . p t r   ( i )   - >   i n s e r t _ r e f s . n a m e ,   1 ) 
                 t h e n 
 	 d o ; 	 	 	 / *   l a s t   o n e   f u l l ?   * / 
 	     i f   i   =   h b o u n d   ( i n s e r t _ d a t a . r e f _ a r e a . p t r ,   1 ) 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 4 ,   c o m p _ e r r o r _ t a b l e _ $ l i m i t a t i o n , 
 	 	   c t l _ i n f o _ p t r ,   c t l _ l i n e , 
 	 	   " C a n t   h a v e   m o r e   t h a n   ^ d   i n s e r t   f i l e   n a m e s . " , 
 	 	   6 0   *   h b o u n d   ( i n s e r t _ d a t a . r e f _ a r e a . p t r ,   1 ) 
 	 	   * 
 	 	   h b o u n d   ( i n s e r t _ d a t a . r e f _ a r e a . p t r   ( i )   - >   i n s e r t _ r e f s . n a m e , 
 	 	   1 ) ) ; 
 	             e r c d   =   1 ; 
 	             g o t o   f i n d _ r e t u r n ; 
 	         e n d ; 
 
 	     i ,   i n s e r t _ d a t a . r e f _ a r e a . c o u n t   =   i   +   1 ; 
 	     i n s e r t _ d a t a . r e f _ a r e a . p t r   ( i )   = 
 	               a l l o c a t e   ( c o n s t . l o c a l _ a r e a _ p t r ,   s i z e   ( i n s e r t _ r e f s ) ) ; 
 	 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   r e c o r d   n e w   n a m e   * / 
                 j   =   i n s e r t _ d a t a . r e f _ a r e a . p t r   ( i )   - >   i n s e r t _ r e f s . c o u n t   +   1 ; 
                 i n s e r t _ d a t a . r e f _ a r e a . p t r   ( i )   - >   i n s e r t _ r e f s . n a m e   ( j )   = 
 	       f i l d a t a . e n t r y n a m e ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i f   a   s e a r c h   i s   n e e d e d   * / 
         i f   s e a r c h   ( " < > " ,   g i v e n _ n a m e )   =   0 
         t h e n 
             d o ; 
                 i f   ^ s o u r c e _ f i l e 	 	 / *   s e a r c h   o n l y   f o r   i n s e r t   f i l e s   * / 
                 t h e n 
 	 d o ; 
 	     c a l l   s e a r c h _ p a t h s _ $ f i n d _ d i r   ( " c o m p o s e " ,   n u l l   ( ) ,   f i l d a t a . e n t r y n a m e , 
 	               r e f d i r ,   f i l d a t a . d i r ,   e r c d ) ; 
 	     i f   e r c d   ^ =   0 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 3 ,   e r c d ,   c t l _ i n f o _ p t r ,   c t l _ l i n e , 
 	 	   " S e a r c h i n g   f o r   ^ a " ,   g i v e n _ n a m e ) ; 
 	             g o t o   f i n d _ r e t u r n ; 
 	         e n d ; 
 	 e n d ; 
             e n d ; 
 
 / *         e l s e 	 	 	 	 / *   n o   s e a r c h ,   e x p a n d   i t   * / 
 / *             d o ; 
 / *                 c a l l 
 / * 	 e x p a n d _ p a t h n a m e _ $ a d d _ s u f f i x   ( g i v e n _ n a m e ,   s u f f i x ,   f i l d a t a . d i r , 
 / * 	 f i l d a t a . e n t r y n a m e ,   e r c d ) ; 
 / *                 i f   e r c d   ^ =   0 
 / *                 t h e n 
 / * 	 d o ; 
 / * 	     i f   s o u r c e _ f i l e 
 / * 	     t h e n   c a l l 
 / * 	                   c o m _ e r r _   ( e r c d ,   " c o m p o s e " ,   " E x p a n d i n g   p a t h   f o r   ^ a " , 
 / * 	                   g i v e n _ n a m e ) ; 
 / * 	     e l s e   c a l l 
 / * 	                   c o m p _ r e p o r t _ $ c t l s t r   ( 3 ,   e r c d ,   c t l _ i n f o _ p t r ,   c t l _ l i n e , 
 / * 	                   " E x p a n d i n g   p a t h   f o r   ^ a " ,   g i v e n _ n a m e ) ; 
 / * 	     g o t o   f i n d _ r e t u r n ; 
 / * 	 e n d ; 
 / *             e n d ;   * / 
 
         f i l d a t a . p a t h   =   p a t h n a m e _   ( f i l d a t a . d i r ,   f i l d a t a . e n t r y n a m e ) ; 
 
         i f   ^ s o u r c e _ f i l e 	 	 	 / *   a n   i n s e r t   f i l e ?   * / 
         t h e n 
             d o ; 
                 i n s e r t _ d a t a . r e f _ a r e a . p t r   ( i )   - >   i n s e r t _ r e f s . c o u n t   =   j ; 
 	 	 	 	 / *   f i n d   o u t   e v e r y t h i n g   w e   k n o w   * / 
                 s t a t u s _ a r e a _ p t r   =   a d d r   ( s t a t u s _ a r e a ) ; 
                 c a l l   h c s _ $ s t a t u s _ l o n g   ( f i l d a t a . d i r ,   f i l d a t a . e n t r y n a m e ,   0 , 
 	       a d d r   ( i n s e r t _ s t a t u s ) ,   s t a t u s _ a r e a _ p t r ,   e r c d ) ; 
                 i f   e r c d   ^ =   0 
                 t h e n 
 	 d o ; 
 s t s _ e r r : 
 	     c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 3 ,   e r c d ,   c t l _ i n f o _ p t r ,   c t l _ l i n e , 
 	               " G e t t i n g   s t a t u s   o f   ^ a " ,   f i l d a t a . p a t h ) ; 
 	     g o t o   f i n d _ r e t u r n ; 
 	 e n d ; 
 
                 i f   i n s e r t _ s t a t u s . t y p e   =   D i r e c t o r y   &   i n s e r t _ s t a t u s . b i t _ c o u n t   =   0 
                 t h e n 
 	 d o ; 
 d i r _ e r r : 
 	     c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 3 ,   e r c d ,   c t l _ i n f o _ p t r ,   c t l _ l i n e , 
 	               " D i r e c t o r i e s   n o t   a l l o w e d ,   ^ a " ,   f i l d a t a . p a t h ) ; 
 	     g o t o   f i n d _ r e t u r n ; 
 	 e n d ; 
 
                 i f   i n s e r t _ s t a t u s . t y p e   =   L i n k 
                 t h e n 
 	 d o ; 	 	 	 / *   r e c o r d   l i n k   t a r g e t   p a t h   * / 
 	     s t a t u s _ p t r   =   a d d r   ( i n s e r t _ s t a t u s ) ; 
 	     f i l d a t a . p a t h   =   s t a t u s _ p a t h n a m e ; 
 	 	 	 	 / *   n o w   c h a s e   t h e   l i n k   * / 
 	     c a l l   h c s _ $ s t a t u s _ l o n g   ( f i l d a t a . d i r ,   f i l d a t a . e n t r y n a m e ,   1 , 
 	               a d d r   ( i n s e r t _ s t a t u s ) ,   n u l l ,   e r c d ) ; 
 	     i f   e r c d   ^ =   0 
 	     t h e n   g o t o   s t s _ e r r ; 
 
 	     i f   i n s e r t _ s t a t u s . t y p e   =   D i r e c t o r y   &   i n s e r t _ s t a t u s . b i t _ c o u n t   =   0 
 	     t h e n   g o t o   d i r _ e r r ; 
 
 	     c a l l   e x p a n d _ p a t h n a m e _ $ a d d _ s u f f i x   ( ( f i l d a t a . p a t h ) ,   s u f f i x , 
 	               f i l d a t a . d i r ,   " " ,   e r c d ) ; 
 	     i f   e r c d   ^ =   0 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 3 ,   e r c d ,   c t l _ i n f o _ p t r ,   c t l _ l i n e , 
 	 	   " E x p a n d i n g   p a t h   f o r   ^ a " ,   g i v e n _ n a m e ) ; 
 	             g o t o   f i n d _ r e t u r n ; 
 	         e n d ; 
 	 e n d ; 
 
                 d o   k   =   1   t o   i n s e r t _ d a t a . c o u n t 	 / *   d o   w e   k n o w   i t   b y   a n o t h e r   n a m e ?   * / 
 	       w h i l e   ( i n s e r t _ d a t a . p t r   ( k )   - >   i n s e r t . p a t h   ^ =   f i l d a t a . p a t h ) ; 
                 e n d ; 
 
                 i f   k   < =   i n s e r t _ d a t a . c o u n t 	 / *   y e s   * / 
                 t h e n 
 	 d o ; 
 	     f i l d a t a . c h a r c o u n t   =   i n s e r t _ d a t a . p t r   ( k )   - >   i n s e r t . c h a r c o u n t ; 
 	     f i l d a t a . f c b _ p t r   =   i n s e r t _ d a t a . p t r   ( k )   - >   i n s e r t . f c b _ p t r ; 
 	 e n d ; 	 	 	 / *   n e e d   a   n e w   f i l e   d a t a   b l o c k   * / 
 	 	 	 	 / *   c h e c k   l i m i t   * / 
                 i f   i n s e r t _ d a t a . c o u n t   =   h b o u n d   ( i n s e r t _ d a t a . p t r ,   1 ) 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 4 ,   c o m p _ e r r o r _ t a b l e _ $ l i m i t a t i o n , 
 	               a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	               " C a n t   h a v e   m o r e   t h a n   ^ d   i n s e r t   f i l e s . " , 
 	               h b o u n d   ( i n s e r t _ d a t a . p t r ,   1 ) ) ; 
 	     g o t o   f i n d _ r e t u r n ; 
 	 e n d ; 
 
                 i n s e r t n d x ,   i n s e r t _ d a t a . c o u n t   =   i n s e r t _ d a t a . c o u n t   +   1 ; 
                 i n s e r t _ d a t a . p t r   ( i n s e r t n d x )   = 
 	       a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( i n s e r t ) ) ; 
 	 	 	 	 / *   s e t u p   f i l e   d a t a   * / 
                 s h a r e d . i n s e r t _ p t r   =   i n s e r t _ d a t a . p t r   ( i n s e r t n d x ) ; 
                 i n s e r t . f i l e   =   f i l d a t a ; 
                 i n s e r t . i n s e r t _ p t r   =   s h a r e d . i n s e r t _ p t r ; 
                 i n s e r t . c h a r c o u n t ,   i n s e r t . c o m p _ n o   =   0 ; 
                 i n s e r t . f c b _ p t r ,   i n s e r t . p o i n t e r   =   n u l l ; 
 
                 i n s e r t _ d a t a . r e f _ a r e a . p t r   ( i )   - >   i n s e r t _ r e f s . i n d e x   ( j )   =   i n s e r t n d x ; 
 	 	 	 	 / *   m a k e   s u r e   u s e r   c a n   a c c e s s   i t   * / 
                 i f   b o o l   ( i n s e r t _ s t a t u s . m o d e ,   " 0 1 0 0 0 " b ,   " 0 0 0 1 " b )   ^ =   " 0 1 0 0 0 " b 
                 t h e n 
 	 d o ; 
 	     e r c d   =   e r r o r _ t a b l e _ $ n o _ r _ p e r m i s s i o n ; 
 	     i f   s o u r c e _ f i l e 
 	     t h e n   c a l l   c o m _ e r r _   ( e r c d ,   " c o m p o s e " ,   " ^ a " ,   f i l d a t a . p a t h ) ; 
 	     e l s e   c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 3 ,   e r c d ,   c t l _ i n f o _ p t r ,   c t l _ l i n e , 
 	 	     " ^ a " ,   f i l d a t a . p a t h ) ; 
 	     g o t o   f i n d _ r e t u r n ; 
 	 e n d ; 	 	 	 / *   a n d   t h e r e s   s o m e t h i n g   i n   i t   * / 
                 i f   i n s e r t _ s t a t u s . b i t _ c o u n t   >   0 
                 t h e n   f i l d a t a . c h a r c o u n t   =   d i v i d e   ( i n s e r t _ s t a t u s . b i t _ c o u n t ,   9 ,   2 1 ,   0 ) ; 
                 e l s e 
 	 d o ; 
 	     e r c d   =   e r r o r _ t a b l e _ $ z e r o _ l e n g t h _ s e g ; 
 	     i f   s o u r c e _ f i l e 
 	     t h e n   c a l l   c o m _ e r r _   ( e r c d ,   " c o m p o s e " ,   " ^ a " ,   f i l d a t a . p a t h ) ; 
 	     e l s e   c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 3 ,   e r c d ,   c t l _ i n f o _ p t r ,   c t l _ l i n e , 
 	 	     " ^ a " ,   f i l d a t a . p a t h ) ; 
 	     g o t o   f i n d _ r e t u r n ; 
 	 e n d ; 
             e n d ; 
 
         c a l l   m s f _ m a n a g e r _ $ o p e n   ( f i l d a t a . d i r ,   f i l d a t a . e n t r y n a m e ,   i t s p t r ,   e r c d ) ; 
         i f   e r c d   ^ =   0   &   e r c d   ^ =   e r r o r _ t a b l e _ $ s e g k n o w n 
         t h e n 
             d o ; 
                 i f   s o u r c e _ f i l e 
                 t h e n   c a l l   c o m _ e r r _   ( e r c d ,   " c o m p o s e " ,   " I n p u t   f i l e   ^ a " ,   f i l d a t a . p a t h ) ; 
                 e l s e   c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 3 ,   e r c d ,   c t l _ i n f o _ p t r ,   c t l _ l i n e ,   " ^ a " , 
 	                 f i l d a t a . p a t h ) ; 
                 g o t o   f i n d _ r e t u r n ; 
             e n d ; 
 
         f i l d a t a . f c b _ p t r   =   i t s p t r ; 
         e r c d   =   0 ; 
 
         i f   ^ s o u r c e _ f i l e 
         t h e n   i n s e r t . f c b _ p t r   =   f i l d a t a . f c b _ p t r ; 
 
 n a m e _ f o u n d : 
         i f   ^ s o u r c e _ f i l e 
         t h e n 
             d o ; 
                 s h a r e d . i n s e r t _ p t r   =   i n s e r t _ d a t a . p t r   ( i n s e r t n d x ) ; 
                 i n s e r t _ d a t a . i n d e x ,   i n s e r t . f i l e . i n f o . f i l e n o   =   i n s e r t n d x ; 
                 f i l d a t a   =   i n s e r t . f i l e ; 
             e n d ; 
 
 f i n d _ r e t u r n : 
         i f   ( s h a r e d . b u g _ m o d e   &   d t _ s w )   |   ( s o u r c e _ f i l e   &   s f _ s w ) 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( g e t _ f i l e _ $ f i n d :   ^ a ) " ,   f i l d a t a . p a t h ) ; 
 
         r e t u r n ; 	 	 	 / *   e n d   o f   f i n d   * / 
 
 o p e n : 
     e n t r y   ( f i l d a t a p t r ,   s o u r c e _ f i l e ,   e r c d ) ; 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   b c 	       f i x e d   b i n   ( 2 4 ) ; 	 / *   l o c a l   b i t c o u n t   * / 
         d c l   c h r c o u n t 	       f i x e d   b i n   ( 2 1 ) ; 	 / *   l o c a l   c h a r a c t e r   c o u n t   * / 
 
         e r c d   =   0 ; 
 
         i f   ( s h a r e d . b u g _ m o d e   &   d t _ s w )   |   ( s o u r c e _ f i l e   &   s f _ s w ) 
         t h e n   c a l l   i o a _   ( " g e t _ f i l e _ $ o p e n :   ( ^ [ S ^ ; I ^ ]   ^ a ) " ,   s o u r c e _ f i l e ,   f i l d a t a . p a t h ) 
 	         ; 
 
         i f   ^ s o u r c e _ f i l e 	 	 	 / *   g e t   s t a t u s   o f   i n s e r t   f i l e   * / 
         t h e n 
             d o ; 
                 i n s e r t n d x   =   i n s e r t _ d a t a . i n d e x ; 	 / *   c o p y   i n s e r t   d a t a   i n d e x   * / 
 	 	 	 	 / *   T h e   c h a r   c o u n t   &   d t c m   m u s t   c h e c k e d 
 	 	 	 	       f o r   e v e r y   i n s e r t i o n   o f   a   f i l e 
 	 	 	 	       b e c a u s e   o f   t h e   p o s s i b i l i t y   o f 
 	 	 	 	       d y n a m i c a l l y   c h a n g i n g   i n s e r t   f i l e s   * / 
                 c a l l   h c s _ $ s t a t u s _ l o n g   ( f i l d a t a . d i r ,   f i l d a t a . e n t r y n a m e ,   1 , 
 	       a d d r   ( i n s e r t _ s t a t u s ) ,   n u l l   ( ) ,   e r c d ) ; 
                 i f   e r c d   ^ =   0 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 3 ,   e r c d ,   " G e t t i n g   s t a t u s   o f   i n s e r t   f i l e . " , 
 	               a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	     g o t o   o p e n _ r e t u r n ; 
 	 e n d ; 
 
                 i f   i n s e r t _ s t a t u s . b i t _ c o u n t   =   0 
                 t h e n 
 	 d o ; 
 	     e r c d   =   e r r o r _ t a b l e _ $ z e r o _ l e n g t h _ s e g ; 
 	     c a l l   c o m p _ r e p o r t _   ( 3 ,   e r c d ,   " I n s e r t   f i l e   i s   e m p t y . " , 
 	               a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	     g o t o   o p e n _ r e t u r n ; 
 	 e n d ; 
 
                 c h r c o u n t   =   d i v i d e   ( i n s e r t _ s t a t u s . b i t _ c o u n t ,   9 ,   2 1 ,   0 ) ; 
 	 	 	 	 / *   i f   c r i t i c a l   s t u f f   h a s   c h a n g e d   * / 
                 i f   i n s e r t _ d a t a . p t r   ( i n s e r t _ d a t a . i n d e x )   - >   i n s e r t . c h a r c o u n t   ^ =   c h r c o u n t 
 	       |   i n s e r t _ d a t a . p t r   ( i n s e r t _ d a t a . i n d e x )   - >   i n s e r t . d t c m 
 	       ^ =   i n s e r t _ s t a t u s . d t c m 
                 t h e n 
 	 d o ; 	 	 	 / *   r e c o r d   n e w   d a t a   * / 
 	     f i l d a t a . c h a r c o u n t   =   c h r c o u n t ; 
 	     i n s e r t _ d a t a . p t r   ( i n s e r t _ d a t a . i n d e x )   - >   i n s e r t . d t c m   = 
 	               i n s e r t _ s t a t u s . d t c m ; 	 / *   c l e a r   a l l   l a b e l s   * / 
 	     i n s e r t _ d a t a . p t r   ( i n s e r t _ d a t a . i n d e x )   - >   i n s e r t . l a b e l . c o u n t   =   0 ; 
 	 e n d ; 	 	 	 / *   p o i n t   t o   n e w   f i l e   * / 
                 s h a r e d . i n s e r t _ p t r   =   i n s e r t _ d a t a . p t r   ( i n s e r t _ d a t a . i n d e x ) ; 
                 i n s e r t . i n s e r t _ p t r   =   s h a r e d . i n s e r t _ p t r ; 
                 i n s e r t . t h r b   =   c t l . i n f o . f i l e n o ; 
                 i n s e r t . c a l l e r s _ n a m e   =   s h a r e d . i n p u t _ f i l e n a m e ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   f e t c h   c o m p o n e n t   z e r o   * / 
         c a l l   m s f _ m a n a g e r _ $ g e t _ p t r   ( ( f i l d a t a . f c b _ p t r ) ,   0 ,   " 0 " b ,   i t s p t r ,   b c ,   e r c d ) ; 
         i f   e r c d   ^ =   0 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( e r c d ,   " c o m p o s e " , 
 	       " m s f _ m a n a g e r _   a t t e m p t i n g   t o   a c c e s s " 
 	       | |   "   c o m p o n e n t   0   o f   i n p u t   f i l e   ^ a " ,   f i l d a t a . p a t h ) ; 
                 g o t o   o p e n _ r e t u r n ; 
             e n d ; 
 
         f i l d a t a . p o i n t e r   =   i t s p t r ; 
         i f   s o u r c e _ f i l e 	 	 	 / *   f o r   s o u r c e   f i l e s   * / 
         t h e n   f i l d a t a . c h a r c o u n t   =   d i v i d e   ( b c ,   9 ,   2 1 ,   0 ) ; 
 	 	 	 	 / *   c o p y   v a r i o u s   d a t a   t o   s h a r e d   * / 
         s h a r e d . i n p u t _ d i r n a m e   =   r t r i m   ( f i l d a t a . d i r ) ; 
         s h a r e d . i n p u t _ f i l e n a m e   =   f i l d a t a . r e f n a m e ; 
 o p e n _ r e t u r n : 
         i f   ( s h a r e d . b u g _ m o d e   &   d t _ s w )   |   ( s o u r c e _ f i l e   &   s f _ s w ) 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( g e t _ f i l e < _ $ o p e n )   ( ^ d   ^ a   ^ p ) " ,   i n s e r t n d x , 
 	         f i l d a t a . r e f n a m e ,   f i l d a t a . p o i n t e r ) ; 
 
         r e t u r n ; 
 
         d c l   d t _ s w 	       b i t   ( 1 )   s t a t i c   i n i t   ( " 0 " b ) ; 
 d t n : 
     e n t r y ; 
         d t _ s w   =   " 1 " b ; 
         r e t u r n ; 
 d t f : 
     e n t r y ; 
         d t _ s w   =   " 0 " b ; 
         r e t u r n ; 
 
         d c l   s f _ s w 	       b i t   ( 1 )   s t a t i c   i n i t   ( " 0 " b ) ; 
 s f n : 
     e n t r y ; 
         s f _ s w   =   " 1 " b ; 
         r e t u r n ; 
 s f f : 
     e n t r y ; 
         s f _ s w   =   " 0 " b ; 
         r e t u r n ; 
 
 a l l f : 
     e n t r y ; 
         d t _ s w ,   s f _ s w   =   " 0 " b ; 
         r e t u r n ; 
 % p a g e ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ i n s e r t ; 
 % i n c l u d e   c o m p _ o p t i o n ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p s t a t ; 
 % i n c l u d e   s t a t u s _ s t r u c t u r e s ; 
 % i n c l u d e   t r a n s l a t o r _ t e m p _ a l l o c ; 
 
     e n d   c o m p _ g e t _ f i l e _ ; 
    
 
 
  
 	 	         c o m p _ h e a d _ p a g e _ . p l 1                           0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 0 9 . 7               6 3 0 0 9     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   s u b r o u t i n e   t o   h e a d   a   p a g e   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ h e a d _ p a g e _ : 
     p r o c   ( h e a d _ u s e d ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   h e a d _ u s e d 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   s p a c e   t a k e n   b y   p a g e   h e a d e r   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   b l a n k 	       b i t   ( 1 ) ; 	 / *   l o c a l   c o p y   o f   b l a n k   p a g e   f l a g   * / 
         d c l   E M P T Y 	       b i t   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 1 " b ) ; 
         d c l   f t n b l k p t r 	       p t r ; 	 	 / *   f o o t n o t e   b l o c k   * / 
         d c l   1   f t n b l k 	       a l i g n e d   l i k e   t e x t   b a s e d   ( f t n b l k p t r ) ; 
         d c l   i 	 	       f i x e d ; 	 	 / *   w o r k i n g   i n d e x   * / 
         d c l   m e a s 	       b i t   ( 1 ) ; 	 / *   1 =   m e a s u r e   o f   < t i t l e >   p a r t s   * / 
         d c l   p a r m s _ p t r 	       p t r ; 	 	 / *   p a r m s   f o r   t h e   h e a d e r   * / 
         d c l   s a v e _ c o l n o 	       f i x e d   b i n ; 
 
         d c l   ( a d d r ,   d e c ,   d i v i d e ,   i n d e x ,   l e n g t h ,   m a x ,   m o d ,   n u l l ) 
 	 	       b u i l t i n ; 
 
         i f   ^ p a g e . h d r . b l a n k p a g e 	 	 / *   a d v a n c e   p a g e n o   * / 
         t h e n 
             d o ; 
                 c a l l   c o m p _ u t i l _ $ p a g e n o   ( 1 0 0 0 ,   p a g e . h d r . p a g e n o ) ; 
 	 	 	 	 / *   s e t   f r o n t p a g e   f l a g   * / 
                 i f   s h a r e d . d o t _ a d d _ l e t t e r   =   P A D 
                 t h e n   p a g e _ h e a d e r . f r o n t p a g e ,   p a g e . h d r . f r o n t p a g e   = 
 	                 m o d   ( s h a r e d . p a g e n u m . n m b r   ( s h a r e d . p a g e n u m . i n d e x ) ,   2 0 0 0 ) 
 	                 =   1 0 0 0 ; 
                 e l s e 	 	 	 / *   t o g g l e   f r o n t p a g e   f l a g   * / 
 	       p a g e . h d r . f r o n t p a g e ,   p a g e _ h e a d e r . f r o n t p a g e   = 
 	                 ^ p a g e _ h e a d e r . f r o n t p a g e ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   t o g g l e   f r o n t p a g e   f l a g   * / 
         e l s e   p a g e . h d r . f r o n t p a g e ,   p a g e _ h e a d e r . f r o n t p a g e   =   ^ p a g e _ h e a d e r . f r o n t p a g e ; 
 
         p a g e . h d r . d o t _ a d d l t r   =   s h a r e d . d o t _ a d d _ l e t t e r ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " h e a d _ p a g e :   ( ^ [ f r o n t ^ ; b a c k ^ ] ^ [ , b l a n k ^ ]   p a g = ^ a ) " , 
 	         p a g e . h d r . f r o n t p a g e ,   p a g e . h d r . b l a n k p a g e ,   p a g e . h d r . p a g e n o ) ; 
 
         p a g e . h d r . p g c _ s e l e c t   =   "   " ; 
 
         s a v e _ c o l n o   =   p a g e . h d r . c o l _ i n d e x ; 	 / *   g o   t o   c o l u m n   0   f o r   t h e   h e a d e r   * / 
         p a g e . h d r . c o l _ i n d e x   =   0 ; 
         s h a r e d . c o l p t r   =   p a g e . c o l u m n _ p t r   ( 0 ) ; 
 
         i f   p a g e . h d r . f r o n t p a g e 
         t h e n 
             d o ; 
                 p a g e . h d r . n e t   =   p a g e _ p a r m s . n e t . o d d ; 
                 p a g e . h d r . l m a r g   =   p a g e _ p a r m s . l m a r g . o d d ; 
                 i f   s h a r e d . o p h d r p t r   ^ =   n u l l 
                 t h e n   p a r m s _ p t r   =   a d d r   ( s h a r e d . o p h d r p t r   - >   h f c b l k . p a r m s ) ; 
                 e l s e   p a r m s _ p t r   =   c o n s t . t e x t _ p a r m s _ p t r ; 
             e n d ; 
 
         e l s e 
             d o ; 
                 p a g e . h d r . n e t   =   p a g e _ p a r m s . n e t . e v e n ; 
                 p a g e . h d r . l m a r g   =   p a g e _ p a r m s . l m a r g . e v e n ; 
                 i f   s h a r e d . e p h d r p t r   ^ =   n u l l 
                 t h e n   p a r m s _ p t r   =   a d d r   ( s h a r e d . e p h d r p t r   - >   h f c b l k . p a r m s ) ; 
                 e l s e   p a r m s _ p t r   =   c o n s t . t e x t _ p a r m s _ p t r ; 
             e n d ; 
 
         d o   i   =   0   t o   p a g e . p a r m s . c o l s . c o u n t ; 
             i f   p a g e . c o l u m n _ p t r   ( i )   ^ =   n u l l 
             t h e n   p a g e . c o l u m n _ p t r   ( i )   - >   c o l . h d r . n e t   = 
 	             p a g e . h d r . n e t   -   p a g e . c o l u m n _ p t r   ( i )   - >   c o l . f t r u s d ; 
         e n d ; 
 
         c a l l   c o m p _ u t i l _ $ g e t b l k   ( 0 ,   c o l 0 . b l k p t r   ( 1 ) ,   " p h " ,   p a r m s _ p t r ,   " 0 " b ) ; 
         s h a r e d . b l k p t r   =   c o l 0 . b l k p t r   ( 1 ) ; 
         c o n s t . c u r r e n t _ p a r m s _ p t r   =   p a r m s _ p t r ; 
         t e x t . p a r m s . p a g e   =   " 1 " b ; 
         t e x t . p a r m s . c b a r . a d d , 	 	 / *   n o   c b a r s   i n   p a g e   h e a d e r s   * / 
                   t e x t . p a r m s . c b a r . m o d ,   t e x t . p a r m s . c b a r . d e l   =   " 0 " b ; 
         t e x t . h d r . t b l b l k   =   " 0 " b ; 
 
         i f   p a g e . h d r . b l a n k p a g e 	 	 / *   b l a n k   p a g e ?   * / 
         t h e n 
             d o ; 
                 h f c b l k _ p t r   =   s h a r e d . b l a n k _ h e a d e r _ p t r ; 
                 i f   h f c b l k _ p t r   ^ =   n u l l 
                 t h e n   t e x t . h d r . t b l b l k   =   h f c b l k . h d r . t b l b l k ; 
             e n d ; 
 
         e l s e   i f   p a g e . h d r . f r o n t p a g e 	 / *   o d d   p a g e ?   * / 
         t h e n 
             d o ; 
                 h f c b l k _ p t r   =   s h a r e d . o p h d r p t r ; 
                 i f   h f c b l k _ p t r   ^ =   n u l l 
                 t h e n   t e x t . h d r . t b l b l k   =   h f c b l k . h d r . t b l b l k ; 
             e n d ; 
 
         e l s e   i f   ^ p a g e . h d r . f r o n t p a g e 	 / *   e v e n   p a g e ?   * / 
         t h e n 
             d o ; 
                 h f c b l k _ p t r   =   s h a r e d . e p h d r p t r ; 
                 i f   h f c b l k _ p t r   ^ =   n u l l 
                 t h e n   t e x t . h d r . t b l b l k   =   h f c b l k . h d r . t b l b l k ; 
             e n d ; 
 
         t e x t . p a r m s . a r t ,   t e x t . h d r . a r t   =   " 0 " b ; / * * / 
 
         p a g e . h d r . h d s p c ,   c o l 0 . h d r . p s p c   =   0 ; 	 / *   p u t   i n   t o p   m a r g i n   * / 
         i f   p a g e . p a r m s . m a r g i n . t o p   -   p a g e . p a r m s . i n i t _ p a g e _ d e p t h   >   0 
         t h e n   c a l l   c o m p _ s p a c e _   ( p a g e . p a r m s . m a r g i n . t o p   -   p a g e . p a r m s . i n i t _ p a g e _ d e p t h , 
 	         s h a r e d . b l k p t r ,   " 0 " b ,   " 0 " b ,   " 0 " b ,   " 0 " b ) ; 
         p a g e . h d r . h e a d e d   =   " 1 " b ; 	 	 / *   t h e   p a g e   i s   n o w   h e a d e d   * / 
         p a g e . h d r . h d s p c ,   c o l 0 . h d r . p s p c   =   p a g e . p a r m s . m a r g i n . t o p ; 
 
         i f   h f c b l k _ p t r   ^ =   n u l l   ( ) 
         t h e n 
             d o ; 
                 t e x t . p a r m s   =   h f c b l k . p a r m s ; 	 / *   s e t   p a r m s   f o r   t h e   h e a d e r   * / 
                 p a g e . h d r . a r t ,   t e x t . h d r . a r t   =   h f c b l k . p a r m s . a r t ; 
 
                 i f   h f c b l k . h d r . c o u n t   >   0 	 / *   b u i l d   h e a d e r   * / 
                 t h e n   c a l l   c o m p _ t i t l e _ b l o c k _   ( h f c b l k _ p t r ) ; 
                 t e x t . i n p u t _ l i n e   =   " " ; 	 	 / *   c l e a n   u p   i n p u t   * / 
 
                 i f   h f c b l k . h d r . w h i t e 
                 t h e n   p a g e . h d r . h d s p c ,   c o l 0 . h d r . p s p c   =   p a g e . h d r . h d s p c   +   h f c b l k . h d r . u s e d ; 
                 e l s e   p a g e . h d r . h d s p c ,   c o l 0 . h d r . p s p c   =   t e x t . h d r . t r l _ w s ; 
             e n d ; 
 
         i f   p a g e . p a r m s . m a r g i n . h e a d e r   >   0 
         t h e n 
             d o ; 
                 c a l l   c o m p _ s p a c e _   ( p a g e . p a r m s . m a r g i n . h e a d e r ,   s h a r e d . b l k p t r ,   " 0 " b ,   " 0 " b , 
 	       " 0 " b ,   " 0 " b ) ; 
                 p a g e . h d r . h d s p c ,   c o l 0 . h d r . p s p c   = 
 	       p a g e . h d r . h d s p c   +   p a g e . p a r m s . m a r g i n . h e a d e r ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   p i c k   u p   o r p h a n   f o o t n o t e s   * / 
         i f   s h a r e d . f t n b l k _ d a t a _ p t r   ^ =   n u l l 
         t h e n 
             d o   i   =   1   t o   f t n b l k _ d a t a . h i g h n d x ; 
                 f t n b l k p t r   =   f t n b l k _ d a t a . b l k p t r   ( i ) ; 
                 i f   f t n b l k p t r   ^ =   n u l l 
                 t h e n   i f   f t n b l k . h d r . o r p h a n 
 	       t h e n 
 	           d o ; 
 	               c o l 0 . f t n . c t ,   t e x t . h d r . f t n . c t   =   t e x t . h d r . f t n . c t   +   1 ; 
 	               c o l 0 . f t n . u s d ,   t e x t . h d r . f t n . u s d   = 
 	 	     t e x t . h d r . f t n . u s d   +   f t n b l k . h d r . u s e d ; 
 	               c o l 0 . f t n . b l k n d x   ( c o l 0 . f t n . c t ) , 
 	 	     t e x t . h d r . f t n . b l k n d x   ( t e x t . h d r . f t n . c t )   =   i ; 
 	           e n d ; 
             e n d ; 
 
         h e a d _ u s e d ,   c o l 0 . h d r . d e p t h   =   t e x t . h d r . u s e d ; 
         p a g e . h d r . h d s p c   =   c o l 0 . h d r . p s p c ; 
         p a g e . p a r m s . c o l s . b a l   =   p a g e _ p a r m s . c o l s . b a l ; 
 
         p a g e . h d r . c o l _ i n d e x   =   s a v e _ c o l n o ; 
         s h a r e d . c o l p t r   =   p a g e . c o l u m n _ p t r   ( s a v e _ c o l n o ) ; 
 
         i f   c o l . h d r p t r   ^ =   n u l l 	 	 / *   r u n n i n g   c o l u m n   h e a d e r ?   * / 
         t h e n   i f   c o l . h d r p t r   - >   t e x t . h d r . c o u n t   >   0 
                   t h e n 
 	   d o ; 
 	       c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " c h " , 
 	                 a d d r   ( c o l . h d r p t r   - >   t e x t . p a r m s ) ,   ^ E M P T Y ) ; 
 	       t e x t . h d r . t b l b l k   =   " 0 " b ; 
 	       c a l l   c o m p _ t i t l e _ b l o c k _   ( c o l . h d r p t r ) ; 
 / * * * * 	       c a l l   c o m p _ b r e a k _   ( h e a d e r _ b r e a k ,   0 ) ; * / 
 	   e n d ; 
 
         c o n s t . c u r r e n t _ p a r m s _ p t r   =   c o n s t . t e x t _ p a r m s _ p t r ; 
         s h a r e d . b l k p t r   =   n u l l ; 
 
 r e t u r n _ : 
         i f   s h a r e d . p a s s _ c o u n t e r   < =   1 	 / *   i f   t h i s   p a g e   i s   t o   b e   p r i n t e d   * / 
                   &   p a g e . h d r . p a g e n o   =   o p t i o n . p g l s t   ( o p t i o n . p g l s t n d x ) . f r o m 
         t h e n   s h a r e d . p r i n t _ f l a g   =   " 1 " b ; 	 / *   p r i n t   f l a g   O N   * / 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( h e a d _ p a g e :   p a g = ^ a   h u s d = ^ f   h s p c = ^ f ^ [   A ^ ]   " 
 	         | |   " ^ [ f r o n t ^ ; b a c k ^ ] ) " ,   p a g e . h d r . p a g e n o , 
 	         d e c   ( d i v i d e   ( h e a d _ u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	         d e c   ( d i v i d e   ( p a g e . h d r . h d s p c ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	         p a g e . h d r . a r t ,   p a g e . h d r . f r o n t p a g e ) ; 
  
 % i n c l u d e   c o m p _ b r k t y p e s ; 
 % i n c l u d e   c o m p _ c o l u m n ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ f o o t n o t e s ; 
 % i n c l u d e   c o m p _ m e t a c o d e s ; 
 % i n c l u d e   c o m p _ o p t i o n ; 
 % i n c l u d e   c o m p _ p a g e ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t a b l e ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p s t a t ; 
 
     e n d   c o m p _ h e a d _ p a g e _ ; 
        
 
 
  
 	 	         c o m p _ h f t _ c t l s _ . p l 1                             0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 1 0 . 0             4 2 4 8 7 2     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   s u b r o u t i n e   i m p l e m e n t i n g   t h e   h e a d e r / f o o t e r / t i t l e   b l o c k   c o n t r o l s   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ h f t _ c t l s _ : 
     p r o c   ( c t l _ i n d e x ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   c t l _ i n d e x 	       f i x e d   b i n ; 	 / *   c o n t r o l   i n d e x   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   b l n k c t 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   b l a n k   l i n e   c o u n t   * / 
         d c l   b l o c k _ t y p e 	       c h a r   ( 1 )   s t a t i c   i n i t   ( "   " ) ; 
         d c l   E M P T Y 	       b i t   ( 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( " 1 " b ) ; 
         d c l   e r c d 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   e r r o r   c o d e   * / 
         d c l   e r r _ s w 	       b i t   ( 1 ) ; 
         d c l   e x i t _ s t r 	       c h a r   ( 2 5 6 )   v a r ; 	 / *   d e b u g   m e s s a g e   * / 
         d c l   f n x t 	       f i x e d   b i n   ( 2 1 ) ; 	 / *   n e x t   v a r i a b l e   f i e l d   c h a r   * / 
         d c l   h f _ l i n _ k e y 	       c h a r   ( 1 )   v a r ; 	 / *   a | e | o   f o r   h d r s   &   f t r s   * / 
         d c l   h s c a l e s 	       ( 7 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( 7 2 0 0 ,   6 0 0 0 ,   7 2 0 0 0 ,   2 8 3 4 . 6 5 ,   1 2 0 0 0 ,   1 0 0 0 ,   0 ) ; 
         d c l   ( i ,   i i ,   j ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   l i n o 	       f i x e d   i n i t   ( 0 ) ; 	 / *   l i n e   i n d e x   * / 
         d c l   l o c _ l e a d 	       f i x e d   b i n   ( 3 1 ) ; 
         d c l   L O O S E 	       f i x e d   b i n   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( - 1 ) ; 
         d c l   n e w _ i n d e n t 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   i n d e n t   v a l u e   f o r   f o r m a t t e d   b l o c k s   * / 
         d c l   s a v e _ v a r f l d 	       c h a r   ( 1 0 2 0 )   v a r ; 
         d c l   t f _ a r t 	       b i t   ( 1 ) ; 	 / *   f o r   a r t   m o d e   p r o m o t i o n   * / 
         d c l   t f _ k e e p 	       b i t   ( 1 ) ; 	 / *   f o r   k e e p   m o d e   p r o m o t i o n   * / 
         d c l   t h _ a r t 	       b i t   ( 1 ) ; 	 / *   f o r   a r t   m o d e   p r o m o t i o n   * / 
         d c l   t h _ k e e p 	       b i t   ( 1 ) ; 	 / *   f o r   k e e p   m o d e   p r o m o t i o n   * / 
         d c l   u n s c a l e d 	       ( 1 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 1 ) ; 
 	 	 	 	 / *   c o n t r o l   l i n e   v a r i a b l e   f i e l d   * / 
         d c l   v a r f l d 	       c h a r   ( 1 0 2 0 )   v a r ; 
         d c l   v s c a l e s 	       ( 7 )   f i x e d   b i n   ( 3 1 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( 1 2 0 0 0 ,   9 0 0 0 ,   7 2 0 0 0 ,   2 8 3 4 . 6 5 ,   1 2 0 0 0 ,   1 0 0 0 ,   0 ) ; 
 
         d c l   ( d i v i d e ,   i n d e x ,   l e n g t h ,   m a x ,   n u l l ,   r o u n d ,   s u b s t r ) 
 	 	       b u i l t i n ; 
 
         d c l   c o m p _ a b o r t 	       c o n d i t i o n ; 
 
         d c l   i o a _ $ r s n n l 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
 
         e x i t _ s t r   =   " " ; 	 	 	 / *   i n i t i a l i z e   * / 
         t h _ k e e p ,   t h _ a r t   =   " 0 " b ; 
         h f c b l k _ p t r   =   n u l l ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " h f t _ c t l s :   ( ^ d )   " " ^ a " " " ,   c t l _ i n d e x , 
 	         c o m p _ u t i l _ $ d i s p l a y   ( c t l _ l i n e ,   0 ,   " 0 " b ) ) ; 
 	 	 	 	 / *   c o p y   v a r i a b l e   f i e l d   * / 
         v a r f l d   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ; 
 
         g o t o   c t l _   ( c t l _ i n d e x ) ; 
 
 c t l _   ( 2 0 ) : 	 	 	 / *   " . b c f "   =   b e g i n - c o l u m n - f o o t e r   * / 
         g o t o   r e t u r n _ ; 	 	 	 / *   H M M M !   * / 
 
 c t l _   ( 2 1 ) : 	 	 	 / *   " . b c h "   =   b e g i n - c o l u m n - h e a d e r   * / 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 3 2 ) : 	 	 	 / *   " . b p f "   =   b e g i n - p a g e - f o o t e r   * / 
 b p f _ c t l : 
         i f   c u r r e n t _ p a r m s . t i t l e _ m o d e 	 / *   i f   a l r e a d y   i n   a   f o r m a t t e d   b l o c k   * / 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " A l r e a d y   p r o c e s s i n g   a   f o r m a t t e d   t i t l e   b l o c k " , 
 	       a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
                 g o t o   b p f _ e r r ; 
             e n d ; 
 
         i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 	 / *   i f   a   n u m e r i c   i s   g i v e n   * / 
                   &   i n d e x   ( " + - 0 1 2 3 4 5 6 7 8 9 " ,   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) )   ^ =   0 
         t h e n   c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( n e w _ i n d e n t ,   " h e a d e r   i n d e n t " ,   0 ,   0 , 
 	         p a g e . p a r m s . m e a s u r e ,   h s c a l e s ,   c o m p _ d v t . m i n _ W S ) ; 
         e l s e   n e w _ i n d e n t   =   0 ; 
 
         i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 	 / *   i f   t y p e   i s   g i v e n   * / 
         t h e n   b l o c k _ t y p e   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) ; 
         e l s e   b l o c k _ t y p e   =   " a " ; 	 	 / *   o t h e r w i s e ,   a l l   * / 
 	 	 	 	 / *   e v e n   o r   a l l   * / 
         i f   ( b l o c k _ t y p e   =   " e "   |   b l o c k _ t y p e   =   " a " ) 
         t h e n 
             d o ; 
                 c a l l   c o m p _ u t i l _ $ r e l b l k   ( L O O S E ,   s h a r e d . e p f t r p t r ) ; 
                 c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   s h a r e d . e p f t r p t r ,   " e f " , 
 	       c o n s t . d e f a u l t _ p a r m s _ p t r ,   ^ E M P T Y ) ; 
                 h f c b l k _ p t r   =   s h a r e d . e p f t r p t r ; 
                 h f c b l k . p a r m s . p a g e   =   " 1 " b ; 
 
                 i f   s h a r e d . e p h d r p t r   ^ =   n u l l 	 / *   c o p y   a r t   f l a g   f r o m   h e a d e r   * / 
                 t h e n   h f c b l k . h d r . a r t ,   h f c b l k . p a r m s . a r t   = 
 	                 s h a r e d . e p h d r p t r   - >   h f c b l k . p a r m s . a r t ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   o d d   o r   a l l   * / 
         i f   ( b l o c k _ t y p e   =   " o "   |   b l o c k _ t y p e   =   " a " ) 
         t h e n 
             d o ; 
                 c a l l   c o m p _ u t i l _ $ r e l b l k   ( L O O S E ,   s h a r e d . o p f t r p t r ) ; 
                 c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   s h a r e d . o p f t r p t r ,   " o f " , 
 	       c o n s t . d e f a u l t _ p a r m s _ p t r ,   ^ E M P T Y ) ; 
                 h f c b l k _ p t r   =   s h a r e d . o p f t r p t r ; 
                 h f c b l k . p a r m s . p a g e   =   " 1 " b ; 
 
                 i f   s h a r e d . o p h d r p t r   ^ =   n u l l 	 / *   c o p y   a r t   f l a g   f r o m   h e a d e r   * / 
                 t h e n   h f c b l k . h d r . a r t ,   h f c b l k . p a r m s . a r t   = 
 	                 s h a r e d . o p h d r p t r   - >   h f c b l k . p a r m s . a r t ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   u n k n o w n   b l o c k   t y p e ?   * / 
         e l s e   i f   i n d e x   ( " a e o " ,   b l o c k _ t y p e )   =   0 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " U n k n o w n   b l o c k   t y p e . " ,   a d d r   ( c t l . i n f o ) , 
 	       c t l _ l i n e ) ; 
 
 b p f _ e r r : 
                 d o   w h i l e   ( s u b s t r   ( c t l _ l i n e ,   v e r i f y   ( c t l _ l i n e ,   "   " ) ,   4 )   ^ =   " . f b e " 
 	       &   s u b s t r   ( c t l _ l i n e ,   v e r i f y   ( c t l _ l i n e ,   "   " ) ,   4 )   ^ =   " . e p f " ) ; 
 	 c a l l _ b o x _ p t r   =   c a l l _ s t a c k . p t r   ( c a l l _ s t a c k . i n d e x ) ; 
 	 c a l l   c o m p _ r e a d _ $ l i n e   ( c a l l _ b o x _ p t r ,   " " ,   " 1 " b ) ; 
 	 c t l . i n f o   =   c a l l _ b o x . i n f o ; 
                 e n d ; 
                 g o t o   r e t u r n _ ; 
             e n d ; 
 
         h f c b l k . h d r . b l k p t r   =   s h a r e d . b l k p t r ; 	 / *   s a v e   p o i n t e r s   f o r   e n d   * / 
         h f c b l k . h d r . p a r m s _ p t r   =   c o n s t . c u r r e n t _ p a r m s _ p t r ; 
 	 	 	 	 / *   s w i t c h   b l o c k   p o i n t e r s   * / 
         i f   b l o c k _ t y p e   =   " a "   |   b l o c k _ t y p e   =   " o " 
         t h e n   s h a r e d . b l k p t r   =   s h a r e d . o p f t r p t r ; 
         e l s e   s h a r e d . b l k p t r   =   s h a r e d . e p f t r p t r ; 
 	 	 	 	 / *   d o n t   d i s t u r b   m a i n   b o d y   p a r m s   * / 
         c o n s t . c u r r e n t _ p a r m s _ p t r   =   a d d r   ( t e x t . p a r m s ) ; 
         t e x t . p a r m s . t i t l e _ m o d e   =   " 1 " b ; 	 / *   s e t   f l a g   * / 
         t e x t . p a r m s . l e f t . i n d e n t   =   n e w _ i n d e n t ; 
         t e x t . p a r m s . m e a s u r e   =   p a g e . p a r m s . m e a s u r e ; 
 
         g o t o   r e t u r n _ ; 	 	 	 / *   g o   p r o c e s s   t h e   b l o c k   * / 
 
 c t l _   ( 3 3 ) : 	 	 	 / *   " . b p h "   =   b e g i n - p a g e - h e a d e r   * / 
 b p h _ c t l : 
         i f   c u r r e n t _ p a r m s . t i t l e _ m o d e 	 / *   i f   a l r e a d y   i n   a   f o r m a t t e d   b l o c k   * / 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " A l r e a d y   p r o c e s s i n g   a   f o r m a t t e d   t i t l e   b l o c k " , 
 	       a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
                 g o t o   b p h _ e r r ; 
             e n d ; 
 
         i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 	 / *   i f   a   n u m e r i c   i s   g i v e n   * / 
                   &   i n d e x   ( " + - 0 1 2 3 4 5 6 7 8 9 " ,   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) )   ^ =   0 
         t h e n   c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( n e w _ i n d e n t ,   " h e a d e r   i n d e n t " ,   0 ,   0 , 
 	         p a g e . p a r m s . m e a s u r e ,   h s c a l e s ,   c o m p _ d v t . m i n _ W S ) ; 
         e l s e   n e w _ i n d e n t   =   0 ; 
 
         i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 	 / *   i f   t y p e   i s   g i v e n   * / 
         t h e n   b l o c k _ t y p e   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) ; 
         e l s e   b l o c k _ t y p e   =   " a " ; 	 	 / *   o t h e r w i s e ,   a l l   * / 
 	 	 	 	 / *   e v e n   o r   a l l   * / 
         i f   ( b l o c k _ t y p e   =   " e "   |   b l o c k _ t y p e   =   " a " ) 
         t h e n 
             d o ; 
                 c a l l   c o m p _ u t i l _ $ r e l b l k   ( L O O S E ,   s h a r e d . e p h d r p t r ) ; 
                 c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   s h a r e d . e p h d r p t r ,   " e h " , 
 	       c o n s t . d e f a u l t _ p a r m s _ p t r ,   ^ E M P T Y ) ; 
                 h f c b l k _ p t r   =   s h a r e d . e p h d r p t r ; 
                 h f c b l k . p a r m s . p a g e   =   " 1 " b ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   o d d   o r   a l l   * / 
         i f   ( b l o c k _ t y p e   =   " o "   |   b l o c k _ t y p e   =   " a " ) 
         t h e n 
             d o ; 
                 c a l l   c o m p _ u t i l _ $ r e l b l k   ( L O O S E ,   s h a r e d . o p h d r p t r ) ; 
                 c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   s h a r e d . o p h d r p t r ,   " o h " , 
 	       c o n s t . d e f a u l t _ p a r m s _ p t r ,   ^ E M P T Y ) ; 
                 h f c b l k _ p t r   =   s h a r e d . o p h d r p t r ; 
                 h f c b l k . p a r m s . p a g e   =   " 1 " b ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   u n k n o w n   b l o c k   t y p e ?   * / 
         e l s e   i f   i n d e x   ( " a e o " ,   b l o c k _ t y p e )   =   0 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " U n k n o w n   b l o c k   t y p e . " ,   a d d r   ( c t l . i n f o ) , 
 	       c t l _ l i n e ) ; 
 
 b p h _ e r r : 
                 d o   w h i l e   ( s u b s t r   ( c t l _ l i n e ,   v e r i f y   ( c t l _ l i n e ,   "   " ) ,   4 )   ^ =   " . h b e " 
 	       &   s u b s t r   ( c t l _ l i n e ,   v e r i f y   ( c t l _ l i n e ,   "   " ) ,   4 )   ^ =   " . e p h " ) ; 
 	 c a l l _ b o x _ p t r   =   c a l l _ s t a c k . p t r   ( c a l l _ s t a c k . i n d e x ) ; 
 	 c a l l   c o m p _ r e a d _ $ l i n e   ( c a l l _ b o x _ p t r ,   " " ,   " 1 " b ) ; 
 	 c t l . i n f o   =   c a l l _ b o x . i n f o ; 
                 e n d ; 
                 g o t o   r e t u r n _ ; 
             e n d ; 
 
         h f c b l k . h d r . b l k p t r   =   s h a r e d . b l k p t r ; 	 / *   s a v e   p o i n t e r s   f o r   e n d   * / 
         h f c b l k . h d r . p a r m s _ p t r   =   c o n s t . c u r r e n t _ p a r m s _ p t r ; 
 	 	 	 	 / *   s w i t c h   b l o c k   p o i n t e r s   * / 
         i f   b l o c k _ t y p e   =   " a "   |   b l o c k _ t y p e   =   " o " 
         t h e n   s h a r e d . b l k p t r   =   s h a r e d . o p h d r p t r ; 
         e l s e   s h a r e d . b l k p t r   =   s h a r e d . e p h d r p t r ; 
 	 	 	 	 / *   d o n t   d i s t u r b   m a i n   b o d y   p a r m s   * / 
         c o n s t . c u r r e n t _ p a r m s _ p t r   =   a d d r   ( t e x t . p a r m s ) ; 
         t e x t . p a r m s . t i t l e _ m o d e   =   " 1 " b ; 	 / *   s e t   f l a g   * / 
         t e x t . p a r m s . l e f t . i n d e n t   =   n e w _ i n d e n t ; 
         t e x t . p a r m s . m e a s u r e   =   p a g e . p a r m s . m e a s u r e ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 4 2 ) : 	 	 	 / *   " . b t c "   =   b e g i n - t e x t - c a p t i o n   * / 
         b l o c k _ t y p e   =   " c " ; 
         g o t o   j o i n _ b t t 1 ; 
 
 c t l _   ( 4 3 ) : 	 	 	 / *   " . b t t "   =   b e g i n - t e x t - t i t l e   * / 
         b l o c k _ t y p e   =   " h " ; 
 
 j o i n _ b t t 1 : 	 	 	 / *   i n i t i a l i z e   l o c a l   s t o r a g e   * / 
         n e w _ i n d e n t   =   c u r r e n t _ p a r m s . l e f t . i n d e n t ; 
 
         i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 	 / *   i f   a   n u m e r i c   i s   g i v e n   * / 
                   &   i n d e x   ( " + - 0 1 2 3 4 5 6 7 8 9 " ,   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) )   ^ =   0 
         t h e n   c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( n e w _ i n d e n t ,   " t i t l e   i n d e n t " ,   n e w _ i n d e n t ,   0 , 
 	         c u r r e n t _ p a r m s . m e a s u r e ,   h s c a l e s ,   c o m p _ d v t . m i n _ W S ) ; 
 
 j o i n _ b t t 2 : 
         i f   s e a r c h   ( b l o c k _ t y p e ,   " h c " )   =   0 
         t h e n 
             d o ; 	 	 	 	 / *   u n k n o w n   b l o c k   t y p e   * / 
                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " U n k n o w n   t e x t   t i t l e   b l o c k   t y p e . " , 
 	       a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; / * * / 
 	 	 	 	 / *   s k i p   t h e   b l o c k   * / 
                 d o   w h i l e   ( s u b s t r   ( c t l _ l i n e ,   1 ,   4 )   ^ =   " . t b e " 
 	       &   s u b s t r   ( c t l _ l i n e ,   1 ,   4 )   ^ =   " . t b e " ) ; 
 	 c a l l _ b o x _ p t r   =   c a l l _ s t a c k . p t r   ( c a l l _ s t a c k . i n d e x ) ; 
 	 c a l l   c o m p _ r e a d _ $ l i n e   ( c a l l _ b o x _ p t r ,   " " ,   " 1 " b ) ; 
 	 c t l . i n f o   =   c a l l _ b o x . i n f o ; 
                 e n d ; 
 
                 g o t o   r e t u r n _ ; 
             e n d ; 
 
         i f   s h a r e d . b l k p t r   =   n u l l 	 	 / *   i f   n o   t e x t   b l o c k   y e t   * / 
         t h e n 
             d o ; 
                 i f   ^ ( p a g e . h d r . h e a d e d   |   o p t i o n . g a l l e y _ o p t ) 
                 t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( 0 ) ; 
                 c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " t x " , 
 	       c o n s t . c u r r e n t _ p a r m s _ p t r ,   ^ E M P T Y ) ; 
             e n d ; 
 
         i f   b l o c k _ t y p e   =   " h " 
         t h e n 
             d o ; 
                 i f   t e x t . p a r m s . h d r p t r   =   n u l l 	 / *   i f   n o   h e a d e r   b l o c k   y e t   * / 
                 t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   t e x t . p a r m s . h d r p t r ,   " t h " , 
 	                 c o n s t . c u r r e n t _ p a r m s _ p t r ,   ^ E M P T Y ) ; 
                 h f c b l k _ p t r   =   t e x t . p a r m s . h d r p t r ;   / * * / 
 	 	 	 	 / *   s e t   p a r m s   * / 
                 h f c b l k . p a r m s   =   c u r r e n t _ p a r m s ; 	 / *   i n   c a s e   t h e y   c h a n g e d   * / 
                 h f c b l k . p a r m s . t i t l e _ m o d e   =   " 1 " b ; 
                 h f c b l k . p a r m s . l e f t . i n d e n t   =   n e w _ i n d e n t ; 
 	 	 	 	 / *   s a v e   p o i n t e r s   f o r   e n d   * / 
                 h f c b l k . h d r . b l k p t r   =   s h a r e d . b l k p t r ; 
                 h f c b l k . h d r . p a r m s _ p t r   =   c o n s t . c u r r e n t _ p a r m s _ p t r ; 
 	 	 	 	 / *   s w i t c h   b l o c k s   * / 
                 s h a r e d . b l k p t r   =   t e x t . p a r m s . h d r p t r ; 
                 c o n s t . c u r r e n t _ p a r m s _ p t r   =   a d d r   ( t e x t . p a r m s ) ; 
             e n d ; 
 
         e l s e   i f   b l o c k _ t y p e   =   " c " 
         t h e n 
             d o ; 
                 i f   t e x t . p a r m s . f t r p t r   =   n u l l 	 / *   i f   n o   f o o t e r   b l o c k   y e t   * / 
                 t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   t e x t . p a r m s . f t r p t r ,   " t f " , 
 	                 c o n s t . c u r r e n t _ p a r m s _ p t r ,   ^ E M P T Y ) ; 
                 h f c b l k _ p t r   =   t e x t . p a r m s . f t r p t r ;   / * * / 
 	 	 	 	 / *   s e t   p a r m s   * / 
                 h f c b l k . p a r m s   =   c u r r e n t _ p a r m s ; 	 / *   i n   c a s e   t h e y   c h a n g e d   * / 
                 h f c b l k . p a r m s . t i t l e _ m o d e   =   " 1 " b ; 
                 h f c b l k . p a r m s . l e f t . i n d e n t   =   n e w _ i n d e n t ; 
 	 	 	 	 / *   s a v e   p o i n t e r s   f o r   e n d   * / 
                 h f c b l k . h d r . b l k p t r   =   s h a r e d . b l k p t r ; 
                 h f c b l k . h d r . p a r m s _ p t r   =   c o n s t . c u r r e n t _ p a r m s _ p t r ; 
 	 	 	 	 / *   s w i t c h   b l o c k s   * / 
                 s h a r e d . b l k p t r   =   t e x t . p a r m s . f t r p t r ; 
                 c o n s t . c u r r e n t _ p a r m s _ p t r   =   a d d r   ( t e x t . p a r m s ) ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   i f   m u l t i - c o l u m n   m o d e   * / 
         i f   ^ s h a r e d . t a b l e _ m o d e   &   p a g e . h d r . c o l _ c o u n t   >   0 
         t h e n   t e x t . p a r m s . m e a s u r e ,   c u r r e n t _ p a r m s . m e a s u r e   =   c o l . p a r m s . m e a s u r e ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 4 9 ) : 	 	 	 / *   " . c f l "   =   c o l u m n - f o o t e r - l i n e   * / 
         i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 	 / *   c a n c e l l i n g ?   * / 
         t h e n 
             d o ; 
                 c a l l   c o m p _ u t i l _ $ r e l b l k   ( L O O S E ,   c o l . f t r p t r ) ; 
 	 	 	 	 / *   i f   m u l t i c o l u m n ,   e r a s e   a l l   t r a c k s   o f   i t   * / 
                 d o   i   =   0   t o   p a g e . p a r m s . c o l s . c o u n t ; 
 	 p a g e . c o l u m n _ p t r   ( i )   - >   c o l . h d r . n e t   = 
 	           p a g e . c o l u m n _ p t r   ( i )   - >   c o l . h d r . n e t 
 	           +   p a g e . c o l u m n _ p t r   ( i )   - >   c o l . f t r u s d ; 
 	 p a g e . c o l u m n _ p t r   ( i )   - >   c o l . f t r u s d   =   0 ; 
 	 p a g e . c o l u m n _ p t r   ( i )   - >   c o l . f t r p t r   =   n u l l ; 
                 e n d ; 
             e n d ; 
 
         e l s e 	 	 	 	 / *   ( r e ) d e f i n i n g   t h e   f o o t e r   * / 
             d o ; 
                 h f c b l k _ p t r   =   c o l . f t r p t r ; 	 / *   c o p y   t h e   f o o t e r   p o i n t e r   * / 
 	 	 	 	 / *   i f   n o   b l o c k   y e t   * / 
                 i f   h f c b l k _ p t r   =   n u l l   ( ) 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   h f c b l k _ p t r ,   " r f " , 
 	               c o n s t . c u r r e n t _ p a r m s _ p t r ,   ^ E M P T Y ) ; 
 	     c o l . f t r p t r   =   h f c b l k _ p t r ; 	 / *   r e c o r d   t h e   n e w   p o i n t e r   * / 
 	 	 	 	 / *   s e t   a l l   f o r   m u l t i c o l u m n   * / 
 	     i f   p a g e . p a r m s . c o l s . c o u n t   >   0 
 	     t h e n 
 	         d o   i   =   1   t o   p a g e . p a r m s . c o l s . c o u n t ; 
 	             p a g e . c o l u m n _ p t r   ( i )   - >   c o l . f t r p t r   =   h f c b l k _ p t r ; 
 	         e n d ; 
 	 e n d ; 
 
                 i f   h f c b l k . h d r . c o u n t   =   0 	 / *   r e - i n i t i a l i z e   i f   e m p t y   * / 
                 t h e n 
 	 d o ; 
 	     h f c b l k . p a r m s . l i n e s p a c e   =   1 2 0 0 0 ; 
 	     h f c b l k . p a r m s . a r t ,   h f c b l k . h d r . a r t   =   " 0 " b ; 
 	 e n d ; 
 
                 c a l l   s e t _ h f _ l i n e s   ( " 1 " b ,   h f c b l k _ p t r ,   0 ) ; 
                 c o l . f t r u s d   =   h f c b l k . h d r . u s e d ; 
                 c o l . h d r . n e t   =   c o l . h d r . n e t   -   h f c b l k . p a r m s . l i n e s p a c e ; 
                 i f   p a g e . p a r m s . c o l s . c o u n t   >   1 
                 t h e n 
 	 d o   i   =   1   t o   p a g e . p a r m s . c o l s . c o u n t ; 
 	     p a g e . c o l u m n _ p t r   ( i )   - >   c o l . f t r u s d   =   h f c b l k . h d r . u s e d ; 
 	     p a g e . c o l u m n _ p t r   ( i )   - >   c o l . h d r . n e t   = 
 	               p a g e . c o l u m n _ p t r   ( i )   - >   c o l . h d r . n e t   -   h f c b l k . p a r m s . l i n e s p a c e ; 
 	 e n d ; 
             e n d ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 5 0 ) : 	 	 	 / *   " . c h l "   =   c o l u m n - h e a d e r - l i n e   * / 
         i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 	 / *   c a n c e l l i n g ?   * / 
         t h e n   i f   c o l . h d r p t r   ^ =   n u l l 
                   t h e n 
 	   d o ; 
 	       c o l . h d r p t r   - >   t e x t . h d r . c o u n t   =   0 ; 
 	       c o l . h d r u s d   =   0 ; 	 	 / *   e r a s e   h d r u s d   * / 
 
 	       i f   p a g e . p a r m s . c o l s . c o u n t   >   0 
 	 	 	 	 / *   i f   m u l t i c o l u m n ,   e r a s e   a l l   h d r u s d   * / 
 	       t h e n 
 	           d o   i   =   1   t o   p a g e . p a r m s . c o l s . c o u n t ; 
 	               i f   p a g e . c o l u m n _ p t r   ( i )   ^ =   n u l l 
 	               t h e n   p a g e . c o l u m n _ p t r   ( i )   - >   c o l . h d r u s d   =   0 ; 
 	           e n d ; 
 	   e n d ; 
                   e l s e   ; 
 
         e l s e 	 	 	 	 / *   ( r e ) d e f i n i n g   t h e   h e a d e r   * / 
             d o ; 	 	 	 	 / *   i f   n o   b l o c k   y e t   * / 
                 i f   c o l . h d r p t r   =   n u l l   ( ) 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   c o l . h d r p t r ,   " r h " , 
 	               c o n s t . c u r r e n t _ p a r m s _ p t r ,   ^ E M P T Y ) ; 
 	     c o l . h d r p t r   - >   t e x t . p a r m s . l i n e s p a c e   =   1 2 0 0 0 ; 
 	     c o l . h d r p t r   - >   t e x t . p a r m s . a r t ,   c o l . h d r p t r   - >   t e x t . h d r . a r t   =   " 0 " b ; 
 	     u n s p e c   ( c o l . h d r p t r   - >   t e x t . p a r m s . c b a r )   =   " 0 " b ; 
 
 	     i f   p a g e . p a r m s . c o l s . c o u n t   >   0 
 	     t h e n 
 	         d o   i   =   1   t o   p a g e . p a r m s . c o l s . c o u n t ; 
 	             p a g e . c o l u m n _ p t r   ( i )   - >   c o l . h d r p t r   =   c o l . h d r p t r ; 
 	         e n d ; 
 	 e n d ; 
 
                 i f   s h a r e d . b u g _ m o d e 
                 t h e n   h f c b l k _ p t r   =   c o l . h d r p t r ; 
 
                 c a l l   s e t _ h f _ l i n e s   ( " 1 " b ,   c o l . h d r p t r ,   0 ) ; 
                 c o l . h d r u s d   =   c o l . h d r p t r   - >   t e x t . h d r . u s e d ; 
                 i f   p a g e . p a r m s . c o l s . c o u n t   >   1 
                 t h e n 
 	 d o   i   =   1   t o   p a g e . p a r m s . c o l s . c o u n t ; 
 	     p a g e . c o l u m n _ p t r   ( i )   - >   c o l . h d r u s d   =   c o l . h d r p t r   - >   t e x t . h d r . u s e d ; 
 	 e n d ; 
             e n d ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 5 8 ) : 	 	 	 / *   " . e c f "   =   e n d - c o l u m n - f o o t e r   * / 
         g o t o   r e t u r n _ ; 	 	 	 / *   H M M M !   * / 
 
 c t l _   ( 5 9 ) : 	 	 	 / *   " . e c h "   =   e n d - c o l u m n - h e a d e r   * / 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 6 4 ) : 	 	 	 / *   " . e p f "   =   e n d - p a g e - f o o t e r   * / 
 e p f _ c t l : 	 	 	 	 / *   i f   n o t   a   p a g e   f o o t e r   * / 
         i f   ( s h a r e d . b l k p t r   ^ =   s h a r e d . o p f t r p t r   &   s h a r e d . b l k p t r   ^ =   s h a r e d . e p f t r p t r ) 
         t h e n   g o t o   r e t u r n _ ; 	 	 / *   i g n o r e   i t   * / 
 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   i f   t h e r e   i s   a   b l o c k   * / 
         t h e n 
             d o ; 
                 i f   ^ t e x t . p a r m s . t i t l e _ m o d e 	 / *   i f   n o t   a   f o r m a t t e d   b l o c k   * / 
                 t h e n   g o t o   r e t u r n _ ; 	 	 / *   i g n o r e   i t   * / 
 	 	 	 	 / *   e v e n   f o o t e r s   * / 
                 i f   ( s h a r e d . b l k p t r   =   s h a r e d . e p f t r p t r 
 	       &   t e x t . h d r . u s e d   > =   p a g e . p a r m s . n e t . e v e n ) 
 	 	 	 	 / *   o d d   f o o t e r s   * / 
 	       |   ( s h a r e d . b l k p t r   =   s h a r e d . o p f t r p t r 
 	       &   t e x t . h d r . u s e d   > =   p a g e . p a r m s . n e t . o d d ) 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	               " F o o t e r   b l o c k   e x c e e d s   p a g e   s i z e .   I t   w i l l   b e   i g n o r e d . " , 
 	               a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 
 	     t e x t . h d r . c o u n t   =   0 ; 	 / *   e r a s e   t h e   w h o l e   b l o c k   * / 
 	     t e x t . i n p u t   =   t e x t _ e n t r y ; 	 / *   o v e r w r i t e   o l d   t e x t   * / 
 	     t e x t . i n p u t . p t r   =   a d d r   ( t e x t . i n p u t _ l i n e ) ; 
 	     l i n e _ a r e a _ p t r ,   h f c b l k . l i n e _ a r e a . c u r   =   h f c b l k . l i n e _ a r e a . f i r s t ; 
 	     l i n e _ a r e a . n d x   =   0 ; 
 	     t e x t _ a r e a _ p t r ,   h f c b l k . t e x t _ a r e a . c u r   =   h f c b l k . t e x t _ a r e a . f i r s t ; 
 	     t e x t _ a r e a . n d x   =   1 ; 
 	     h f c b l k . n e x t _ t e x t   =   t e x t _ a r e a . s t r a r e a p t r   ( 1 ) ; 
 	 e n d ; 
 
                 e l s e 
 	 d o ; 	 	 	 / *   f i n i s h   t h e   b l o c k   * / 
 	     c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 	 	 	 	 / *   s h u t   o f f   t i t l e   f l a g   * / 
 	     t e x t . p a r m s . t i t l e _ m o d e   =   " 0 " b ; 
 
 	     i f   ^ o p t i o n . g a l l e y _ o p t 
 	     t h e n   c a l l   c o m p _ u t i l _ $ s e t _ n e t _ p a g e   ( " 0 " b ) ; 
 
 	     i f   b l o c k _ t y p e   =   " a " 	 / *   i f   t y p e   i s   a l l   * / 
 	     t h e n 	 	 	 / *   c u r r e n t   b l o c k   i s   t h e   o d d   f o o t e r   * / 
 	         d o ; 	 	 	 / *   c o p y   o d d   f o o t e r   t o   e v e n   f o o t e r   * / 
 	             h f c b l k _ p t r   =   s h a r e d . e p f t r p t r ; 
 	             h f c b l k . p a r m s   =   t e x t . p a r m s ; 
 	             h f c b l k . h d r . c o u n t ,   h f c b l k . h d r . u s e d   =   0 ; 
 	 	 	 	 / *   o v e r w r i t e   o l d   t e x t   * / 
 	             l i n e _ a r e a _ p t r ,   h f c b l k . l i n e _ a r e a . c u r   =   h f c b l k . l i n e _ a r e a . f i r s t ; 
 	             l i n e _ a r e a . n d x   =   0 ; 
 	             t e x t _ a r e a _ p t r ,   h f c b l k . t e x t _ a r e a . c u r   =   h f c b l k . t e x t _ a r e a . f i r s t ; 
 	             t e x t _ a r e a . n d x   =   1 ; 
 	             h f c b l k . n e x t _ t e x t   =   t e x t _ a r e a . s t r a r e a p t r   ( 1 ) ; 
 
 	             d o   l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . f i r s t 
 	 	   r e p e a t   ( l i n e _ a r e a . n e x t )   w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 	                 d o   i   =   1   t o   l i n e _ a r e a . n d x ; 
 	 	 t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( i ) ; 
 	 	 c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . e p f t r p t r ,   " 0 " b ,   " 0 " b , 
 	 	           " 0 " b ,   " 0 " b ,   t x t l i n p t r ) ; 
 	                 e n d ; 
 	             e n d ; 
 
 	             i f   s h a r e d . b u g _ m o d e 
 	             t h e n   c a l l   i o a _ $ r s n n l   ( 
 	 	             " ^ 5 x ( h f t _ c t l s :   e f = ^ d   e ^ d   u ^ f   h s p c = c o l ^ d   ^ f   p a g ^ f ) " , 
 	 	             e x i t _ s t r ,   0 ,   s h a r e d . e p f t r p t r   - >   h f c b l k . b l k n d x , 
 	 	             s h a r e d . e p f t r p t r   - >   h f c b l k . h d r . c o u n t , 
 	 	             d e c   ( 
 	 	             d i v i d e   ( s h a r e d . e p f t r p t r   - >   h f c b l k . h d r . u s e d ,   1 2 0 0 0 , 
 	 	             3 1 ,   1 0 ) ,   1 1 ,   3 ) ,   p a g e . h d r . c o l _ i n d e x , 
 	 	             d e c   ( d i v i d e   ( c o l . h d r . p s p c ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	 	             d e c   ( d i v i d e   ( p a g e . h d r . h d s p c ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) ) ; 
 
 	             i f   ^ o p t i o n . g a l l e y _ o p t 
 	             t h e n   c a l l   c o m p _ u t i l _ $ s e t _ n e t _ p a g e   ( " 0 " b ) ; 
 	         e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   s w i t c h   b a c k   t o   t e x t   b l o c k   * / 
 	     c o n s t . c u r r e n t _ p a r m s _ p t r   =   t e x t . h d r . p a r m s _ p t r ; 
 	     s h a r e d . b l k p t r   =   t e x t . h d r . b l k p t r ; 
 
 	     i f   s h a r e d . b l k p t r   ^ =   n u l l 
 	     t h e n   c t l . f o n t   =   t e x t . i n p u t . f o n t ; 
 	 e n d ; 
             e n d ; 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 6 5 ) : 	 	 	 / *   " . e p h "   =   e n d - p a g e - h e a d e r   * / 
 e p h _ c t l : 	 	 	 	 / * * / 
 	 	 	 	 / *   i f   n o t   a   p a g e   h e a d e r   * / 
         i f   ( s h a r e d . b l k p t r   ^ =   s h a r e d . o p h d r p t r   &   s h a r e d . b l k p t r   ^ =   s h a r e d . e p h d r p t r ) 
         t h e n   g o t o   r e t u r n _ ; 	 	 / *   i g n o r e   i t   * / 
 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   i f   t h e r e   i s   a   b l o c k   * / 
         t h e n 
             d o ; 
                 i f   ^ t e x t . p a r m s . t i t l e _ m o d e 	 / *   i f   n o t   a   f o r m a t t e d   b l o c k   * / 
                 t h e n   g o t o   r e t u r n _ ; 	 	 / *   i g n o r e   i t   * / 
 	 	 	 	 / *   e v e n   h e a d e r s   * / 
                 i f   ( s h a r e d . b l k p t r   =   s h a r e d . e p h d r p t r 
 	       &   t e x t . h d r . u s e d   > =   p a g e . p a r m s . n e t . e v e n ) 
 	 	 	 	 / *   o d d   h e a d e r s   * / 
 	       |   ( s h a r e d . b l k p t r   =   s h a r e d . o p h d r p t r 
 	       &   t e x t . h d r . u s e d   > =   p a g e . p a r m s . n e t . o d d ) 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	               " H e a d e r   b l o c k   e x c e e d s   p a g e   s i z e .   I t   w i l l   b e   i g n o r e d . " , 
 	               a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 
 	     t e x t . h d r . c o u n t   =   0 ; 	 / *   e r a s e   t h e   w h o l e   b l o c k   * / 
 	     t e x t . i n p u t   =   t e x t _ e n t r y ; 	 / *   o v e r w r i t e   o l d   t e x t   * / 
 	     t e x t . i n p u t . p t r   =   a d d r   ( t e x t . i n p u t _ l i n e ) ; 
 	     l i n e _ a r e a _ p t r ,   h f c b l k . l i n e _ a r e a . c u r   =   h f c b l k . l i n e _ a r e a . f i r s t ; 
 	     l i n e _ a r e a . n d x   =   0 ; 
 	     t e x t _ a r e a _ p t r ,   h f c b l k . t e x t _ a r e a . c u r   =   h f c b l k . t e x t _ a r e a . f i r s t ; 
 	     t e x t _ a r e a . n d x   =   1 ; 
 	     h f c b l k . n e x t _ t e x t   =   t e x t _ a r e a . s t r a r e a p t r   ( 1 ) ; 
 	 e n d ; 
 
                 e l s e 
 	 d o ; 	 	 	 / *   f i n i s h   t h e   b l o c k   * / 
 	     c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 	 	 	 	 / *   t u r n   o f f   t h e   b l o c k   f l a g   * / 
 	     t e x t . p a r m s . t i t l e _ m o d e   =   " 0 " b ; 
 
 	     i f   ^ o p t i o n . g a l l e y _ o p t 
 	     t h e n   c a l l   c o m p _ u t i l _ $ s e t _ n e t _ p a g e   ( " 1 " b ) ; 
 
 	     i f   b l o c k _ t y p e   =   " a " 	 / *   i f   o d d   b l o c k   o f   a l l   * / 
 	               &   s h a r e d . b l k p t r   =   s h a r e d . o p h d r p t r 
 	     t h e n 
 	         d o ; 	 	 	 / *   c o p y   i t   t o   t h e   e v e n   b l o c k   * / 
 	             h f c b l k _ p t r   =   s h a r e d . e p h d r p t r ; 
 	             h f c b l k . p a r m s   =   t e x t . p a r m s ; 
 	             h f c b l k . h d r . c o u n t ,   h f c b l k . h d r . u s e d   =   0 ; 
 	 	 	 	 / *   o v e r w r i t e   o l d   t e x t   * / 
 	             l i n e _ a r e a _ p t r ,   h f c b l k . l i n e _ a r e a . c u r   =   h f c b l k . l i n e _ a r e a . f i r s t ; 
 	             l i n e _ a r e a . n d x   =   0 ; 
 	             t e x t _ a r e a _ p t r ,   h f c b l k . t e x t _ a r e a . c u r   =   h f c b l k . t e x t _ a r e a . f i r s t ; 
 	             t e x t _ a r e a . n d x   =   1 ; 
 	             h f c b l k . n e x t _ t e x t   =   t e x t _ a r e a . s t r a r e a p t r   ( 1 ) ; 
 
 	             d o   l i n e _ a r e a _ p t r   =   t e x t . l i n e _ a r e a . f i r s t 
 	 	   r e p e a t   ( l i n e _ a r e a . n e x t )   w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 	                 d o   i   =   1   t o   l i n e _ a r e a . n d x ; 
 	 	 t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( i ) ; 
 
 	 	 c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . e p h d r p t r ,   " 0 " b ,   " 0 " b , 
 	 	           " 0 " b ,   " 0 " b ,   t x t l i n p t r ) ; 
 	                 e n d ; 
 	             e n d ; 
 
 	             i f   s h a r e d . b u g _ m o d e 
 	             t h e n   c a l l   i o a _ $ r s n n l   ( " ^ 5 x ( h f t _ c t l s :   e h = ^ d   e ^ d   u ^ f " 
 	 	             | |   "   h s p c = c o l ^ d   ^ f   p a g ^ f ) " ,   e x i t _ s t r ,   0 , 
 	 	             h f c b l k . b l k n d x ,   h f c b l k . h d r . c o u n t , 
 	 	             d e c   ( d i v i d e   ( h f c b l k . h d r . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	 	             p a g e . h d r . c o l _ i n d e x , 
 	 	             d e c   ( d i v i d e   ( c o l . h d r . p s p c ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	 	             d e c   ( d i v i d e   ( p a g e . h d r . h d s p c ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) ) ; 
 
 	             i f   ^ o p t i o n . g a l l e y _ o p t 
 	             t h e n   c a l l   c o m p _ u t i l _ $ s e t _ n e t _ p a g e   ( " 1 " b ) ; 
 	         e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   s w i t c h   b a c k   t o   t e x t   b l o c k   * / 
 	     c o n s t . c u r r e n t _ p a r m s _ p t r   =   t e x t . h d r . p a r m s _ p t r ; 
 	     s h a r e d . b l k p t r   =   t e x t . h d r . b l k p t r ; 
 	 e n d ; 
             e n d ; 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 6 8 ) : 	 	 	 / *   " . e t c "   =   e n d - t e x t - c a p t i o n   * / 
 e t f _ c t l : 
 c t l _   ( 6 9 ) : 	 	 	 / *   " . e t t "   =   e n d - t e x t - t i t l e   * / 
 e t t _ c t l : 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 	 / *   i f   t h e r e   i s   a   b l o c k   * / 
         t h e n 
             d o ; 
                 h f c b l k _ p t r   =   s h a r e d . b l k p t r ; 	 / *   f o r   d e b u g g i n g   * / 
                 i f   ^ t e x t . p a r m s . t i t l e _ m o d e 	 / *   n o t   a   f o r m a t t e d   b l o c k ?   * / 
                 t h e n   g o t o   r e t u r n _ ; 	 	 / *   i g n o r e   i t   * / 
 	 	 	 	 / *   f i n i s h   t h e   b l o c k   * / 
                 c a l l   c o m p _ b r e a k _   ( f o r m a t _ b r e a k ,   0 ) ; 
 	 	 	 	 / *   s a v e   m o d e s   f o r   p r o m o t i o n   * / 
                 i f   t e x t . b l k t y p e   =   " t h " 	 / *   i s   t h i s   a   t e x t   h e a d e r ?   * / 
                 t h e n 
 	 d o ; 
 	     t h _ k e e p   =   t e x t . p a r m s . k e e p ; 
 	     t h _ a r t   =   t e x t . p a r m s . a r t ; 
 	 e n d ; 
 
                 e l s e 	 	 	 / *   i t s   a   c a p t i o n   * / 
 	 d o ; 
 	     t f _ k e e p   =   t e x t . p a r m s . k e e p ; 
 	     t f _ a r t   =   t e x t . p a r m s . a r t ; 
 	 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   s w i t c h   b a c k   t o   t e x t   b l o c k   * / 
                 c o n s t . c u r r e n t _ p a r m s _ p t r   =   t e x t . h d r . p a r m s _ p t r ; 
                 s h a r e d . b l k p t r   =   t e x t . h d r . b l k p t r ; / * * / 
 	 	 	 	 / *   p r o m o t e   a r t   a n d   k e e p   m o d e s   * / 
                 i f   h f c b l k . b l k t y p e   =   " t h " 	 / *   i s   t h i s   a   t e x t   h e a d e r ?   * / 
                 t h e n 
 	 d o ; 
 	     c u r r e n t _ p a r m s . k e e p   =   c u r r e n t _ p a r m s . k e e p   |   t h _ k e e p ; 
 	     t e x t . h d r . a r t ,   c u r r e n t _ p a r m s . a r t   =   c u r r e n t _ p a r m s . a r t   |   t h _ a r t ; 
 	 e n d ; 
 
                 e l s e 	 	 	 / *   i t s   a   c a p t i o n   * / 
 	 d o ; 
 	     c u r r e n t _ p a r m s . k e e p   =   c u r r e n t _ p a r m s . k e e p   &   t f _ k e e p ; 
 	     c u r r e n t _ p a r m s . a r t   =   c u r r e n t _ p a r m s . a r t   &   t f _ a r t ; 
 	 e n d ; 
             e n d ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 7 1 ) : 	 	 	 / *   " . f b "   =   f o o t e r - b l o c k - b e g i n   * / 
 c t l _   ( 7 2 ) : 	 	 	 / *   " . f b b "   =   f o o t e r - b l o c k - b e g i n   * / 
         g o t o   b p f _ c t l ; 
 
 c t l _   ( 7 3 ) : 	 	 	 / *   " . f b e "   =   f o o t e r - b l o c k - e n d   * / 
         g o t o   e p f _ c t l ; 
 
 c t l _   ( 7 7 ) : 	 	 	 / *   " . f l "   " . f l a "   =   f o o t e r - l i n e - a l l   * / 
 c t l _   ( 7 8 ) : 
         h f _ l i n _ k e y   =   " a " ; 
         g o t o   j o i n _ p f l ; 
 
 / *   " . f l e "   =   f o o t e r - l i n e - e v e n   * / 
 c t l _   ( 7 9 ) : 
         h f _ l i n _ k e y   =   " e " ; 
         g o t o   j o i n _ p f l ; 
 
 / *   " . f l o "   =   f o o t e r - l i n e - o d d   * / 
 c t l _   ( 8 0 ) : 
         h f _ l i n _ k e y   =   " o " ; 
         g o t o   j o i n _ p f l ; 
 
 c t l _   ( 9 0 ) : 	 	 	 / *   " . h b "   =   h e a d e r - b l o c k - b e g i n   * / 
 c t l _   ( 9 1 ) : 	 	 	 / *   " . h b b "   =   h e a d e r - b l o c k - b e g i n   * / 
         g o t o   b p h _ c t l ; 
 
 c t l _   ( 9 2 ) : 	 	 	 / *   " . h b e "   =   h e a d e r - b l o c k - e n d   * / 
         g o t o   e p h _ c t l ; 
 
 c t l _   ( 9 5 ) : 	 	 	 / *   " . h l "   =   h e a d e r - l i n e   * / 
 c t l _   ( 9 6 ) : 	 	 	 / *   " . h l a "   =   h e a d e r - l i n e - a l l   * / 
         h f _ l i n _ k e y   =   " a " ; 
         g o t o   j o i n _ p h l ; 
 
 / *   " . h l e "   =   h e a d e r - l i n e - e v e n   * / 
 c t l _   ( 9 7 ) : 
         h f _ l i n _ k e y   =   " e " ; 
         g o t o   j o i n _ p h l ; 
 
 / *   " . h l f "   =   h e a d e r - l i n e - f o o t n o t e   * / 
 c t l _   ( 9 8 ) : 	 	 	 / *   i f   n o   b l o c k   y e t   * / 
         i f   s h a r e d . f o o t n o t e _ h e a d e r _ p t r   =   n u l l   ( ) 
         t h e n 
             d o ; 
                 c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   s h a r e d . f o o t n o t e _ h e a d e r _ p t r ,   " f h " , 
 	       a d d r   ( f o o t n o t e _ p a r m s ) ,   ^ E M P T Y ) ; 
 	 	 	 	 / *   n o   c b a r s   o n   h e a d e r s   * / 
                 u n s p e c   ( f t n h d r . p a r m s . c b a r )   =   " 0 " b ; 
             e n d ; 
 
         i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
         t h e n   c a l l   s e t _ h f _ l i n e s   ( " 1 " b ,   s h a r e d . f o o t n o t e _ h e a d e r _ p t r ,   0 ) ; 
 
         e l s e 
             d o ; 
                 f t n h d r . h d r . c o u n t   =   1 ; 
                 t x t l i n p t r   =   f t n h d r . l i n e _ a r e a . f i r s t   - >   l i n e _ a r e a . l i n p t r   ( 1 ) ; 
                 t x t l i n . t i t l e   =   " 1 " b ; 
                 t x t l i n . l i n e s p a c e ,   l o c _ l e a d   =   1 2 0 0 0 ; 
                 t x t l i n . f o n t . f a m n d x   =   c o m p _ d v t . i n i t _ f a m ; 
                 t x t l i n . f o n t . m e m n d x   =   c o m p _ d v t . i n i t _ m e m ; 
                 t x t l i n . f o n t . s i z e   =   c o m p _ d v t . i n i t _ p s ; 
                 t x t l i n . l m a r g   =   0 ; 
                 t x t l i n . d e f a u l t   =   " 1 " b ; 	 / *   s e t   d e f a u l t   f l a g   * / 
             e n d ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 9 9 ) : 	 	 	 / *   " . h l o "   =   h e a d e r - l i n e - o d d   * / 
         h f _ l i n _ k e y   =   " o " ; 
         g o t o   j o i n _ p h l ; 
 
 c t l _   ( 1 2 5 ) : 	 	 	 / *   " . p f l "   =   p a g e - f o o t e r - l i n e   * / 
 p f l _ c t l : 
         i f   s e a r c h   ( v a r f l d ,   " a e o " )   =   1 
         t h e n 
             d o ; 
                 h f _ l i n _ k e y   =   c o m p _ r e a d _ $ n a m e   ( v a r f l d ,   1 ,   f n x t ,   a d d r   ( c t l . i n f o ) ) ; 
                 v a r f l d   =   l t r i m   ( s u b s t r   ( v a r f l d ,   f n x t ) ) ; 
             e n d ; 
         e l s e   h f _ l i n _ k e y   =   " a " ; 
 
 j o i n _ p f l : 
         i f   h f _ l i n _ k e y   =   " a "   |   h f _ l i n _ k e y   =   " e " 
         t h e n 
             d o ; 
                 s a v e _ v a r f l d   =   v a r f l d ; 	 	 / *   s a v e   f o r   o t h e r   p a g e   i f   " a "   * / 
 
                 i f   v a r f l d   =   " " 	 	 / *   i f   c a n c e l l i n g   * / 
                 t h e n   i f   s h a r e d . e p f t r p t r   ^ =   n u l l 
 	       t h e n   c a l l   c o m p _ u t i l _ $ r e l b l k   ( L O O S E ,   s h a r e d . e p f t r p t r ) ; 
 	       e l s e   ; 
 
                 e l s e 
 	 d o ; 	 	 	 / *   n o   b l o c k   y e t ?   * / 
 	     i f   s h a r e d . e p f t r p t r   =   n u l l   ( ) / *   i f   n o   b l o c k   y e t   * / 
 	     t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   s h a r e d . e p f t r p t r ,   " e f " , 
 	 	     c o n s t . d e f a u l t _ p a r m s _ p t r ,   ^ E M P T Y ) ; 
 	     h f c b l k _ p t r   =   s h a r e d . e p f t r p t r ; 
 
 	     i f   h f c b l k . h d r . c o u n t   =   0 	 / *   r e - i n i t i a l i z e   i f   e m p t y   * / 
 	     t h e n 
 	         d o ; 	 	 	 / *   s e t   d e f a u l t   p a r m s   * / 
 	             h f c b l k . p a r m s   =   c u r r e n t _ p a r m s ; 
 	             h f c b l k . p a r m s . p a g e   =   " 1 " b ; 
 	             h f c b l k . p a r m s . l i n e s p a c e   =   1 2 0 0 0 ; 
 	             h f c b l k . i n p u t . l m a r g   =   0 ; 
 	             h f c b l k . i n p u t . r m a r g ,   h f c b l k . i n p u t . n e t   =   p a g e . p a r m s . m e a s u r e ; 
 	         e n d ; 
 
 	     c a l l   s e t _ h f _ l i n e s   ( " 1 " b ,   s h a r e d . e p f t r p t r ,   0 ) ; 
 	 e n d ; 
 
                 i f   ^ o p t i o n . g a l l e y _ o p t 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ u t i l _ $ s e t _ n e t _ p a g e   ( " 0 " b ) ; 
 	     i f   p a g e . p a r m s . n e t . e v e n   < =   0 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m p _ r e p o r t _   ( 4 ,   0 , 
 	 	   " P a g e   f o o t e r   s i z e   r e s u l t s   i n   z e r o   n e t   p a g e   s i z e . " , 
 	 	   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	             s i g n a l   c o m p _ a b o r t ; 
 	             g o t o   r e t u r n _ ; 
 	         e n d ; 
 	 e n d ; 
 
                 i f   h f _ l i n _ k e y   =   " a " 
                 t h e n 
 	 d o ; 
 	     v a r f l d   =   s a v e _ v a r f l d ; 
 	     g o t o   d o _ p f l o ; 
 	 e n d ; 
             e n d ; 
 
         e l s e   i f   h f _ l i n _ k e y   =   " a "   |   h f _ l i n _ k e y   =   " o " 
         t h e n 
             d o ; 
 d o _ p f l o : 
                 i f   v a r f l d   =   " " 	 	 / *   i f   c a n c e l l i n g   * / 
                 t h e n   i f   s h a r e d . o p f t r p t r   ^ =   n u l l 
 	       t h e n   c a l l   c o m p _ u t i l _ $ r e l b l k   ( L O O S E ,   s h a r e d . o p f t r p t r ) ; 
 	       e l s e   ; 
 
                 e l s e 
 	 d o ; 	 	 	 / *   n o   b l o c k   y e t ?   * / 
 	     i f   s h a r e d . o p f t r p t r   =   n u l l   ( ) 
 	     t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   s h a r e d . o p f t r p t r ,   " o f " , 
 	 	     c o n s t . d e f a u l t _ p a r m s _ p t r ,   ^ E M P T Y ) ; 
 	     h f c b l k _ p t r   =   s h a r e d . o p f t r p t r ; 
 
 	     i f   h f c b l k . h d r . c o u n t   =   0 	 / *   r e - i n i t i a l i z e   i f   e m p t y   * / 
 	     t h e n 
 	         d o ; 	 	 	 / *   s e t   d e f a u l t   p a r m s   * / 
 	             h f c b l k . p a r m s   =   c u r r e n t _ p a r m s ; 
 	             h f c b l k . p a r m s . p a g e   =   " 1 " b ; 
 	             h f c b l k . p a r m s . l i n e s p a c e   =   1 2 0 0 0 ; 
 	         e n d ; 
 
 	     c a l l   s e t _ h f _ l i n e s   ( " 1 " b ,   s h a r e d . o p f t r p t r ,   0 ) ; 
 	 e n d ; 
 
                 i f   ^ o p t i o n . g a l l e y _ o p t 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ u t i l _ $ s e t _ n e t _ p a g e   ( " 0 " b ) ; 
 	     i f   p a g e . p a r m s . n e t . o d d   < =   0 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m p _ r e p o r t _   ( 4 ,   0 , 
 	 	   " P a g e   f o o t e r   s i z e   r e s u l t s   i n   z e r o   n e t   p a g e   s i z e . " , 
 	 	   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	             s i g n a l   c o m p _ a b o r t ; 
 	             g o t o   r e t u r n _ ; 
 	         e n d ; 
 	 e n d ; 
 / * * * *                 i f   ^ o p t i o n . g a l l e y _ o p t 
 / * * * *                 t h e n   c a l l   c o m p _ u t i l _ $ s e t _ n e t _ p a g e   ( " 0 " b ) ; * / 
             e n d ; 
 
         e l s e   c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " U n k n o w n   f o o t e r   p o s i t i o n   k e y w o r d . " , 
 	         a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 2 6 ) : 	 	 	 / *   " . p h l "   =   p a g e - h e a d e r - l i n e   * / 
 p h l _ c t l : 
         i f   s e a r c h   ( v a r f l d ,   " a e o " )   =   1 
         t h e n 
             d o ; 
                 h f _ l i n _ k e y   =   c o m p _ r e a d _ $ n a m e   ( v a r f l d ,   1 ,   f n x t ,   a d d r   ( c t l . i n f o ) ) ; 
                 v a r f l d   =   l t r i m   ( s u b s t r   ( v a r f l d ,   f n x t ) ) ; 
             e n d ; 
         e l s e   h f _ l i n _ k e y   =   " a " ; 
 
 j o i n _ p h l : 
         i f   h f _ l i n _ k e y   =   " a "   |   h f _ l i n _ k e y   =   " e " 
         t h e n 
             d o ; 
                 s a v e _ v a r f l d   =   v a r f l d ; 	 	 / *   i n   c a s e   i t s   ' a '   * / 
 
                 i f   v a r f l d   =   " " 	 	 / *   i f   c a n c e l l i n g   * / 
                 t h e n   i f   s h a r e d . e p h d r p t r   ^ =   n u l l 
 	       t h e n   c a l l   c o m p _ u t i l _ $ r e l b l k   ( L O O S E ,   s h a r e d . e p h d r p t r ) ; 
 	       e l s e   ; 
 
                 e l s e 
 	 d o ; 	 	 	 / *   n o   b l o c k   y e t ?   * / 
 	     i f   s h a r e d . e p h d r p t r   =   n u l l   ( ) 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   s h a r e d . e p h d r p t r ,   " e h " , 
 	 	   c o n s t . d e f a u l t _ p a r m s _ p t r ,   ^ E M P T Y ) ; 
 	             h f c b l k _ p t r   =   s h a r e d . e p h d r p t r ; 
 	             h f c b l k . p a r m s . p a g e   =   " 1 " b ; 
 	         e n d ; 
 	     e l s e   h f c b l k _ p t r   =   s h a r e d . e p h d r p t r ; 
 
 	     i f   h f c b l k . h d r . c o u n t   =   0 	 / *   r e s e t   f l a g s   i f   e m p t y   * / 
 	     t h e n   h f c b l k . p a r m s . a r t ,   h f c b l k . h d r . a r t   =   " 0 " b ; 
 
 	     c a l l   s e t _ h f _ l i n e s   ( " 1 " b ,   s h a r e d . e p h d r p t r ,   0 ) ; 
 	 e n d ; 
 
                 i f   ^ o p t i o n . g a l l e y _ o p t 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ u t i l _ $ s e t _ n e t _ p a g e   ( " 1 " b ) ; 
 	     i f   p a g e . p a r m s . n e t . e v e n   < =   0 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m p _ r e p o r t _   ( 4 ,   0 , 
 	 	   " P a g e   h e a d e r   s i z e   r e s u l t s   i n   z e r o   n e t   p a g e   s i z e . " , 
 	 	   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	             s i g n a l   c o m p _ a b o r t ; 
 	             g o t o   r e t u r n _ ; 
 	         e n d ; 
 	 e n d ; 
 
                 i f   h f _ l i n _ k e y   =   " a " 
                 t h e n   v a r f l d   =   s a v e _ v a r f l d ; 
                 e l s e   g o t o   r e t u r n _ ; 
             e n d ; 
 
         i f   h f _ l i n _ k e y   =   " a "   |   h f _ l i n _ k e y   =   " o " 
         t h e n 
             d o ; 
                 i f   v a r f l d   =   " " 	 	 / *   i f   c a n c e l l i n g   * / 
                 t h e n   i f   s h a r e d . o p h d r p t r   ^ =   n u l l 
 	       t h e n   c a l l   c o m p _ u t i l _ $ r e l b l k   ( L O O S E ,   s h a r e d . o p h d r p t r ) ; 
 	       e l s e   ; 
 
                 e l s e 
 	 d o ; 	 	 	 / *   n o   b l o c k   y e t ?   * / 
 	     i f   s h a r e d . o p h d r p t r   =   n u l l   ( ) 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   s h a r e d . o p h d r p t r ,   " o h " , 
 	 	   c o n s t . d e f a u l t _ p a r m s _ p t r ,   ^ E M P T Y ) ; 
 	             h f c b l k _ p t r   =   s h a r e d . o p h d r p t r ; 
 	             h f c b l k . p a r m s . p a g e   =   " 1 " b ; 
 	         e n d ; 
 	     e l s e   h f c b l k _ p t r   =   s h a r e d . o p h d r p t r ; 
 
 	     i f   h f c b l k . h d r . c o u n t   =   0 	 / *   r e - i n i t i a l i z e   i f   e m p t y   * / 
 	     t h e n 
 	         d o ; 	 	 	 / *   s e t   d e f a u l t   p a r m s   * / 
 	             h f c b l k . p a r m s . p a g e   =   " 1 " b ; 
 	             h f c b l k . p a r m s . l i n e s p a c e   =   1 2 0 0 0 ; 
 	             h f c b l k . p a r m s . a r t ,   h f c b l k . h d r . a r t   =   " 0 " b ; 
 	         e n d ; 
 
 	     c a l l   s e t _ h f _ l i n e s   ( " 1 " b ,   s h a r e d . o p h d r p t r ,   0 ) ; 
 
 	     i f   h f c b l k . h d r . c o u n t   =   0 	 / *   r e s e t   f l a g s   i f   e m p t y   * / 
 	     t h e n   h f c b l k . p a r m s . a r t ,   h f c b l k . h d r . a r t   =   " 0 " b ; 
 	 e n d ; 
 
                 i f   ^ o p t i o n . g a l l e y _ o p t 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ u t i l _ $ s e t _ n e t _ p a g e   ( " 1 " b ) ; 
 	     i f   p a g e . p a r m s . n e t . o d d   < =   0 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m p _ r e p o r t _   ( 4 ,   0 , 
 	 	   " P a g e   h e a d e r   s i z e   r e s u l t s   i n   z e r o   n e t   p a g e   s i z e . " , 
 	 	   a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	             s i g n a l   c o m p _ a b o r t ; 
 	             g o t o   r e t u r n _ ; 
 	         e n d ; 
 	 e n d ; 
                 g o t o   r e t u r n _ ; 
             e n d ; 
 
         e l s e   c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " U n k n o w n   h e a d e r   k e y w o r d . " ,   a d d r   ( c t l . i n f o ) , 
 	         c t l _ l i n e ) ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 4 3 ) : 	 	 	 / *   " . s t l "   =   s p l i t _ h e a d e r _ l i n e   * / 
         i f   s h a r e d . s p c l _ b l k p t r   ^ =   n u l l   ( )   |   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
         t h e n 
             d o ; 	 	 	 	 / *   i f   n o   b l o c k   y e t   * / 
                 i f   s h a r e d . s p c l _ b l k p t r   =   n u l l   ( ) 
                 t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   s h a r e d . s p c l _ b l k p t r ,   " s h " , 
 	                 a d d r   ( c u r r e n t _ p a r m s ) ,   ^ E M P T Y ) ; 
                 h f c b l k _ p t r   =   s h a r e d . s p c l _ b l k p t r ; 
 
                 i f   h f c b l k . h d r . c o u n t   =   0 	 / *   r e - i n i t i a l i z e   i f   e m p t y   * / 
                 t h e n   h f c b l k . p a r m s   =   c u r r e n t _ p a r m s ; 
 
                 c a l l   s e t _ h f _ l i n e s   ( " 1 " b ,   s h a r e d . s p c l _ b l k p t r ,   0 ) ; 
 
                 i f   h f c b l k . h d r . c o u n t   =   0 	 / *   r e s e t   f l a g s   i f   e m p t y   * / 
                 t h e n   h f c b l k . p a r m s . a r t ,   h f c b l k . h d r . a r t   =   " 0 " b ; 
             e n d ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 4 8 ) : 	 	 	 / *   " . t b "   =   t i t l e - b l o c k - b e g i n   * / 
 c t l _   ( 1 4 9 ) : 	 	 	 / *   " . t b b "   =   t i t l e - b l o c k - b e g i n   * / 
         n e w _ i n d e n t   =   c u r r e n t _ p a r m s . l e f t . i n d e n t ; 
 
         i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 	 / *   i f   a   n u m e r i c   i s   g i v e n   * / 
                   &   i n d e x   ( " + - 0 1 2 3 4 5 6 7 8 9 " ,   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) )   ^ =   0 
         t h e n   c a l l   c o m p _ u t i l _ $ s e t _ b i n   ( n e w _ i n d e n t ,   " t i t l e   i n d e n t " ,   n e w _ i n d e n t ,   0 , 
 	         c u r r e n t _ p a r m s . m e a s u r e ,   h s c a l e s ,   c o m p _ d v t . m i n _ W S ) ; 
 
         i f   c t l . i n d e x   <   l e n g t h   ( c t l _ l i n e ) 	 / *   s k i p   w h i t e   s p a c e   * / 
         t h e n   c t l . i n d e x   = 
 	         c t l . i n d e x   -   1   +   v e r i f y   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   "   " ) ; 
 
         i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
         t h e n   b l o c k _ t y p e   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ,   1 ) ; 
         e l s e   b l o c k _ t y p e   =   " h " ; 
 
         g o t o   j o i n _ b t t 2 ; 
 
 c t l _   ( 1 5 0 ) : 	 	 	 / *   " . t b e "   =   t i t l e - b l o c k - e n d   * / 
         g o t o   e t t _ c t l ; 
 
 c t l _   ( 1 5 1 ) : 	 	 	 / *   " . t c l "   =   t e x t - c a p t i o n - l i n e   * / 
 t c l _ c t l : 
         i f   s h a r e d . b l k p t r   =   n u l l   ( ) 	 / *   n e e d   a   t e x t   b l o c k   f o r   h d r   p t r   * / 
         t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " t x " , 
 	         a d d r   ( c u r r e n t _ p a r m s ) ,   ^ E M P T Y ) ; 
 
         i f   t e x t . p a r m s . f t r p t r   =   n u l l   ( ) 	 / *   i f   n o   b l o c k   y e t   * / 
         t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   t e x t . p a r m s . f t r p t r ,   " t f " , 
 	         a d d r   ( c u r r e n t _ p a r m s ) ,   ^ E M P T Y ) ; 
 
         h f c b l k _ p t r   =   t e x t . p a r m s . f t r p t r ; 
         h f c b l k . p a r m s   =   c u r r e n t _ p a r m s ; 	 / *   u p d a t e   p a r m s   i n   c a s e   t h e y ' r e   o l d   * / 
         h f c b l k . p a r m s . l i n e s p a c e   =   1 2 0 0 0 ; 
 
         v a r f l d   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ; 
 
         i f   s e a r c h   ( v a r f l d ,   " 0 1 2 3 4 5 6 7 8 9 " )   =   1 
         t h e n 	 	 	 	 / *   i s   a   b l a n k   l i n e   c o u n t   g i v e n ?   * / 
             d o ; 
                 b l n k c t   = 
 	       c o m p _ r e a d _ $ n u m b e r   ( v a r f l d ,   v s c a l e s ,   1 ,   f n x t ,   a d d r   ( c t l . i n f o ) ,   0 ) ; 
                 v a r f l d   =   l t r i m   ( s u b s t r   ( v a r f l d ,   f n x t ) ) ; 
             e n d ; 
         e l s e   b l n k c t   =   0 ; 	 	 / *   n o n - n u m e r i c   =   n o   b l a n k   l i n e s   * / 
 
         i f   b l n k c t   >   0 	 	 	 / *   a d d   l e a d i n g   b l a n k   l i n e s   * / 
         t h e n 
             d o ; 
                 c t l . l i n e s p a c e   =   b l n k c t ; 	 / *   a d d   w h i t e   s p a c e   * / 
                 c a l l   c o m p _ s p a c e _   ( b l n k c t ,   t e x t . p a r m s . f t r p t r ,   " 1 " b ,   " 1 " b ,   " 1 " b ,   " 0 " b ) ; 
                 c t l . l i n e s p a c e   =   1 2 0 0 0 ; 
             e n d ; 
 
         i f   v a r f l d   ^ =   " " 	 	 	 / *   i f   t h e r e s   m o r e   * / 
         t h e n 
             d o ; 
                 c a l l   s e t _ h f _ l i n e s   ( " 0 " b ,   t e x t . p a r m s . f t r p t r ,   0 ) ; 
 	 	 	 	 / *   i f   t i t l e   i s n t   n u l l   * / 
 / * * * *                 i f   s e a r c h   ( v a r f l d ,   s h a r e d . t t l _ d e l i m )   ^ =   0 
 / * * * *                 t h e n   c o l . h d r . p s p c   =   0 ; * / 
             e n d ; 
 
         i f   s h a r e d . b l k p t r   ^ =   n u l l   ( ) 
         t h e n   t e x t . h d r . c a p _ u s e d   =   h f c b l k . h d r . u s e d ; 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 5 3 ) : 	 	 	 / *   " . t h l "   =   t e x t - h e a d e r - l i n e   * / 
 t h l _ c t l : 
         i f   s h a r e d . b l k p t r   =   n u l l   ( ) 	 / *   i f   n o   t e x t   b l o c k   y e t   * / 
         t h e n 
             d o ; 	 	 	 	 / *   h e a d   p a g e ?   * / 
                 i f   ^ ( p a g e . h d r . h e a d e d   |   o p t i o n . g a l l e y _ o p t ) 
                 t h e n   c a l l   c o m p _ h e a d _ p a g e _   ( 0 ) ; 	 / * * / 
 
                 c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " t x " , 
 	       a d d r   ( c u r r e n t _ p a r m s ) ,   ^ E M P T Y ) ; 
 
                 i f   t e x t . p a r m s . h d r p t r   =   n u l l   ( ) 	 / *   i f   n o   b l o c k   y e t   * / 
                 t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( L O O S E ,   t e x t . p a r m s . h d r p t r ,   " t h " , 
 	                 a d d r   ( c u r r e n t _ p a r m s ) ,   ^ E M P T Y ) ; 
                 h f c b l k _ p t r   =   t e x t . p a r m s . h d r p t r ; 
 
                 h f c b l k . p a r m s   =   c u r r e n t _ p a r m s ; 	 / *   u p d a t e   p a r m s   i n   c a s e   t h e y ' r e   o l d   * / 
             e n d ; 
 
         e l s e   i f   t e x t . p a r m s . h d r p t r   ^ =   n u l l 
         t h e n   h f c b l k _ p t r   =   t e x t . p a r m s . h d r p t r ; 
 
         e l s e   h f c b l k _ p t r   =   s h a r e d . b l k p t r ; 	 / * * / 
 	 	 	 	 / *   n u m e r i c   =   b l a n k   l i n e   c o u n t   * / 
         i f   s e a r c h   ( v a r f l d ,   " 0 1 2 3 4 5 6 7 8 9 " )   =   1 
         t h e n 
             d o ; 
                 b l n k c t   = 
 	       c o m p _ r e a d _ $ n u m b e r   ( v a r f l d ,   v s c a l e s ,   1 ,   f n x t ,   a d d r   ( c t l . i n f o ) , 
 	       e r c d ) ; 
                 i f   e r c d   ^ =   0 
                 t h e n   g o t o   r e t u r n _ ; 
                 v a r f l d   =   l t r i m   ( s u b s t r   ( v a r f l d ,   f n x t ) ) ; 
             e n d ; 
         e l s e   b l n k c t   =   0 ; 	 	 / *   n o n - n u m e r i c   =   n o   b l a n k   l i n e s   * / 
 	 	 	 	 / *   s e t   c h a n g e   b a r   f l a g s   * / 
         h f c b l k . i n p u t . c b a r   =   c u r r e n t _ p a r m s . c b a r ; 
         c u r r e n t _ p a r m s . c b a r . d e l   =   " 0 " b ; 
         i f   h f c b l k . i n p u t . c b a r . d e l 
         t h e n   s h a r e d . c b a r _ t y p e   =   " " ; 
 
         i f   v a r f l d   ^ =   " " 	 	 	 / *   i f   t h e r e s   m o r e   * / 
         t h e n   c a l l   s e t _ h f _ l i n e s   ( " 0 " b ,   h f c b l k _ p t r ,   b l n k c t ) ; 
         e l s e   c a l l   c o m p _ s p a c e _   ( b l n k c t ,   h f c b l k _ p t r ,   " 1 " b ,   " 1 " b ,   " 1 " b ,   " 0 " b ) ; 
 
 / * * * *         c o l . h d r . p s p c   =   b l n k c t ; * / 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 5 4 ) : 	 	 	 / *   " . t l c "   =   t i t l e - l i n e - c a p t i o n   * / 
         g o t o   t c l _ c t l ; 
 
 c t l _   ( 1 5 5 ) : 	 	 	 / *   " . t l h "   =   t i t l e - l i n e - h e a d i n g   * / 
         g o t o   t h l _ c t l ; 
 
 c t l _   ( 1 5 9 ) : 	 	 	 / *   " . t t l "   =   t e x t - t i t l e - l i n e   * / 
         g o t o   t h l _ c t l ; 
 
 r e t u r n _ : 
         i f   s h a r e d . b u g _ m o d e 
         t h e n 
             d o ; 
                 c a l l   i o a _ $ n n l   ( " ^ 5 x ( h f t _ c t l s : " ) ; 
                 i f   h f c b l k _ p t r   ^ =   n u l l 
                 t h e n   c a l l   i o a _ $ n n l   ( "   ^ a = ^ d   e ^ d   u ^ f ( ^ f )   h s p c = c o l ^ d   ^ f   p a g ^ f ) ^ [ ^ / ^ a ^ ] " , 
 	                 h f c b l k . b l k t y p e ,   h f c b l k . b l k n d x ,   h f c b l k . h d r . c o u n t , 
 	                 d e c   ( d i v i d e   ( h f c b l k . h d r . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	                 d e c   ( d i v i d e   ( h f c b l k . h d r . t r l _ w s ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	                 p a g e . h d r . c o l _ i n d e x , 
 	                 d e c   ( d i v i d e   ( c o l . h d r . p s p c ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	                 d e c   ( d i v i d e   ( p a g e . h d r . h d s p c ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	                 ( e x i t _ s t r   ^ =   " " ) ,   e x i t _ s t r ) ; 
                 c a l l   i o a _   ( " ) " ) ; 
             e n d ; 
 
         r e t u r n ; 
 % p a g e ; 
 t i t l e : 
     e n t r y   ( b l k p t r ,   l i n p t r ,   l i n e _ t e x t ,   l e a d ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   b l k p t r 	       p t r ; 	 	 / *   t h e   c o n t a i n i n g   b l o c k   * / 
         d c l   l i n p t r 	       p t r ; 	 	 / *   l i n e   t o   a d d e d   * / 
         d c l   l i n e _ t e x t 	       c h a r   ( * )   v a r ; 	 / *   t i t l e   l i n e   t o   b e   p a r s e d   * / 
         d c l   l e a d 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   t o t a l   l e a d   f o r   l i n e   * / 
 
         h f c b l k _ p t r   =   b l k p t r ; 	 	 / *   c o p y   t h e   b l o c k   p o i n t e r   * / 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " t i t l e :   ( ^ a = ^ d   l d = ^ f   " " ^ a " " ) " ,   h f c b l k . b l k t y p e , 
 	         h f c b l k . b l k n d x ,   d e c   ( d i v i d e   ( l e a d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	         c o m p _ u t i l _ $ d i s p l a y   ( l i n e _ t e x t ,   0 ,   " 0 " b ) ) ; 
 	 	 	 	 / *   i f   t h e r e s   n o   d e l i m i t e r   * / 
         i f   i n d e x   ( l i n e _ t e x t ,   s h a r e d . t t l _ d e l i m )   ^ =   1 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _   ( 0 ,   0 ,   " < t i t l e >   m u s t   s t a r t   w i t h   a   t i t l e   d e l i m i t e r . " , 
 	       a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
                 g o t o   t t l _ r e t u r n ; 
             e n d ; 
 
         i f   i n d e x   ( l i n e _ t e x t ,   " * " )   ^ =   0   &   ^ h f c b l k . p a r m s . a r t 
         t h e n   c a l l   c o m p _ u t i l _ $ e s c a p e   ( l i n e _ t e x t ,   a d d r   ( c t l . i n f o ) ) ; 
 
         c a l l   t i t l e _   ( l e a d ,   l i n p t r ,   l i n e _ t e x t , 
                   b i n   ( h f c b l k _ p t r   =   s h a r e d . b l a n k _ f o o t e r _ p t r 
                   |   h f c b l k _ p t r   =   s h a r e d . b l a n k _ h e a d e r _ p t r 
                   |   h f c b l k _ p t r   =   s h a r e d . o p f t r p t r   |   h f c b l k _ p t r   =   s h a r e d . o p h d r p t r 
                   |   h f c b l k _ p t r   =   s h a r e d . e p f t r p t r   |   h f c b l k _ p t r   =   s h a r e d . s p c l _ b l k p t r ) ) ; 
 
         b l k p t r   =   h f c b l k _ p t r ; 	 	 / *   i n   c a s e   t h e   b l o c k   g r e w   * / 
 
 t t l _ r e t u r n : 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( t i t l e :   ^ a = ^ d   e ^ d   u ^ f ( ^ f ) ^ [   A ^ ] " ,   h f c b l k . b l k t y p e , 
 	         h f c b l k . b l k n d x ,   h f c b l k . h d r . c o u n t , 
 	         d e c   ( d i v i d e   ( h f c b l k . h d r . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	         d e c   ( d i v i d e   ( h f c b l k . h d r . t r l _ w s ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	         h f c b l k . h d r . a r t ) ; 
 % p a g e ; 
 s e t _ h f _ l i n e s : 
     p r o c   ( n d x _ f l a g ,   b l k p t r ,   l e a d ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   n d x _ f l a g 	       b i t   ( 1 ) ; 	 / *   1   =   i n d e x e d   b l o c k , 
 	 	 	 	       0   =   f o r m a t t e d   b l o c k   * / 
         d c l   b l k p t r 	       p t r ; 	 	 / *   p o i n t e r   t o   r e c e i v i n g   b l o c k   * / 
         d c l   l e a d 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   t o t a l   l e a d   * / 
 
         d c l   ( i n d e x ,   m a x )       b u i l t i n ; 
 
         h f c b l k _ p t r   =   b l k p t r ; 	 	 / *   c o p y   t h e   b l o c k   p o i n t e r   * / 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " s e t _ h f _ l i n e s :   ( ^ [ N D X ^ ; F M T ^ ]   " 
 	         | |   " ^ a = ^ d   e ^ d   u ^ f ( ^ f )   x l d = ^ f )   ^ [ ^ / ^ 5 x ^ ] " " ^ a " " " ,   n d x _ f l a g , 
 	         h f c b l k . b l k t y p e ,   h f c b l k . b l k n d x ,   h f c b l k . h d r . c o u n t , 
 	         d e c   ( d i v i d e   ( h f c b l k . h d r . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	         d e c   ( d i v i d e   ( h f c b l k . h d r . t r l _ w s ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	         d e c   ( d i v i d e   ( l e a d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	         ( l e n g t h   ( v a r f l d )   >   4 0 ) ,   c o m p _ u t i l _ $ d i s p l a y   ( v a r f l d ,   0 ,   " 0 " b ) ) ; 
 
         i f   v a r f l d   =   " " 	 	 	 / *   i f   n o   v a r i a b l e   f i e l d   * / 
         t h e n 
             d o ; 
 c a n c e l _ a l l : 
                 h f c b l k . h d r . m x _ t t l _ n d x ,   h f c b l k . h d r . c o u n t ,   h f c b l k . h d r . u s e d   =   0 ; 
                 g o t o   s e t _ r e t u r n ; 
             e n d ; 
 
         i f   n d x _ f l a g 	 	 	 / *   i f   a n   i n d e x e d   b l o c k   * / 
         t h e n 
             d o ; 
                 i f   s e a r c h   ( v a r f l d ,   " 0 1 2 3 4 5 6 7 8 9 " )   =   1 
                 t h e n 
 	 d o ; 	 	 	 / *   i f   a   l i n e   i n d e x   i s   g i v e n   * / 
 	     l i n o   = 
 	               c o m p _ r e a d _ $ n u m b e r   ( v a r f l d ,   u n s c a l e d ,   1 ,   f n x t ,   a d d r   ( c t l . i n f o ) , 
 	               0 ) ; 
 	     v a r f l d   =   l t r i m   ( s u b s t r   ( v a r f l d ,   f n x t ) ) ; 
 	 	 	 	 / *   c h e c k   l i n o   f o r   . . .   * / 
 	     i f   ( l i n o   >   d i v i d e   ( p a g e . p a r m s . n e t . e v e n ,   1 2 0 0 0 ,   3 1 ,   1 0 ) 
 	               &   ( h f c b l k _ p t r   =   s h a r e d . s p c l _ b l k p t r 
 	 	 	 	 / *   e v e n   p a g e s   * / 
 	               |   h f c b l k _ p t r   =   s h a r e d . e p f t r p t r ) ) 
 	               |   ( l i n o   >   d i v i d e   ( p a g e . p a r m s . n e t . o d d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) 
 	 	 	 	 / *   o d d   p a g e s   * / 
 	               &   ( h f c b l k _ p t r   =   s h a r e d . o p h d r p t r   |   b l k p t r   =   s h a r e d . o p f t r p t r ) ) 
 	     t h e n 
 	         d o ; 
 	             c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 	 	   " I n v a l i d   h e a d e r / f o o t e r   i n d e x   v a l u e , " 
 	 	   | |   "   i t   e x c e e d s   l i n e s   l e f t   o n   p a g e . " ,   a d d r   ( c t l . i n f o ) , 
 	 	   c t l _ l i n e ) ; 
 	             g o t o   s e t _ r e t u r n ; 
 	         e n d ; 
 
 	     e l s e   i f   l i n o   =   0 	 	 / *   c a n c e l   a l l   f o r   a   z e r o   a n d   * / 
 	     t h e n   i f   v a r f l d   =   " " 	 / *   t h e r e s   n o t h i n g   m o r e   * / 
 	               t h e n   g o t o   c a n c e l _ a l l ; 
 	               e l s e   g o t o   r e p l a c e _ a l l ; 
 	 e n d ; 
 
                 e l s e 
 	 d o ; 
 r e p l a c e _ a l l : 
 	     l i n o   =   1 ; 	 	 / *   o t h e r w i s e ,   t h i s   i s   l i n e   1   o f   1   * / 
 	     h f c b l k . h d r . c o u n t   =   0 ; 	 / *   e r a s e   t h e   b l o c k   * / 
 	 	 	 	 / *   o v e r w r i t e   o l d   t e x t   * / 
 	     l i n e _ a r e a _ p t r ,   h f c b l k . l i n e _ a r e a . c u r   =   h f c b l k . l i n e _ a r e a . f i r s t ; 
 	     l i n e _ a r e a . n d x   =   0 ; 
 	     t e x t _ a r e a _ p t r ,   h f c b l k . t e x t _ a r e a . c u r   =   h f c b l k . t e x t _ a r e a . f i r s t ; 
 	     t e x t _ a r e a . n d x   =   1 ; 
 	     h f c b l k . n e x t _ t e x t   =   t e x t _ a r e a . s t r a r e a p t r   ( 1 ) ; 
 	 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   t h e   l i n e   m a y   a l r e a d y   e x i s t   * / 
                 i f   l i n o   < =   h f c b l k . h d r . m x _ t t l _ n d x 
                 t h e n 
 	 d o   l i n e _ a r e a _ p t r   =   h f c b l k . l i n e _ a r e a . f i r s t 
 	           r e p e a t   ( l i n e _ a r e a . n e x t )   w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 	     d o   i i   =   1   t o   l i n e _ a r e a . n d x ; 
 	         t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( i i ) ; 
 	 	 	 	 / *   d i s c a r d   l i n e s   w i t h   t h i s   i n d e x   * / 
 	         i f   t x t l i n . t i t l e _ i n d e x   =   l i n o 
 	         t h e n 
 	             d o ; 	 	 	 / *   a d j u s t   s p a c e   u s e d   * / 
 	                 h f c b l k . h d r . u s e d   =   h f c b l k . h d r . u s e d   -   t x t l i n . l i n e s p a c e ; 
 	                 t x t l i n . l i n e s p a c e   =   0 ;   / *   m a k e   i t   n u l l   * / 
 	                 t x t l i n . p t r   - >   t x t s t r   =   " " ; 
 	             e n d ; 
 	     e n d ; 
 	 e n d ; 
             e n d ; 
         e l s e   l i n o   =   0 ; 	 	 	 / *   f o r   t e x t   t i t l e s   * / 
 	 	 	 	 / *   i f   t h e r e s   m o r e   * / 
         i f   v a r f l d   ^ =   " " 	 	 	 / *   a n d   i t s   n u m e r i c   * / 
                   &   s e a r c h   ( v a r f l d ,   " + - 0 1 2 3 4 5 6 7 8 9 " )   =   1 
         t h e n 
             d o ; 
                 i f   i n d e x   ( " + - " ,   s u b s t r   ( v a r f l d ,   1 ,   1 ) )   ^ =   0 
                 t h e n   h f c b l k . i n p u t . l m a r g   = 	 / *   a n   a d j u s t m e n t   * / 
 	                 m a x   ( 0 , 
 	                 c u r r e n t _ p a r m s . l e f t . i n d e n t 
 	                 + 
 	                 c o m p _ r e a d _ $ n u m b e r   ( v a r f l d ,   h s c a l e s ,   1 ,   f n x t ,   a d d r   ( c t l . i n f o ) , 
 	                 0 ) ) ; 
                 e l s e   h f c b l k . i n p u t . l m a r g   = 	 / *   a   c o l u m n   * / 
 	                 c o m p _ r e a d _ $ n u m b e r   ( v a r f l d ,   h s c a l e s ,   1 ,   f n x t ,   a d d r   ( c t l . i n f o ) , 
 	                 0 ) ; 
                 v a r f l d   =   l t r i m   ( s u b s t r   ( v a r f l d ,   f n x t ) ) ; 
             e n d ; 
 
         e l s e   i f   n d x _ f l a g 
         t h e n   h f c b l k . i n p u t . l m a r g   =   0 ; 
 
         e l s e   h f c b l k . i n p u t . l m a r g   = 
 	         h f c b l k . p a r m s . l e f t . i n d e n t   -   h f c b l k . p a r m s . l e f t . u n d e n t ; 
 
         h f c b l k . i n p u t . r m a r g   = 
                   h f c b l k . p a r m s . m e a s u r e   -   h f c b l k . p a r m s . r i g h t . i n d e n t 
                   +   h f c b l k . p a r m s . r i g h t . u n d e n t ; 
 
         i f   v a r f l d   ^ =   " " 	 	 	 / *   i f   t h e r e s   m o r e   * / 
         t h e n 
             d o ; 
                 i f   i n d e x   ( v a r f l d ,   s h a r e d . t t l _ d e l i m )   ^ =   1 
                 t h e n 
 	 d o ; 	 	 	 / *   i f   t h e r e s   n o   d e l i m i t e r   * / 
 	     c a l l   c o m p _ r e p o r t _   ( 0 ,   0 , 
 	               " < t i t l e >   m u s t   s t a r t   w i t h   a   t i t l e   d e l i m i t e r . " ,   a d d r   ( c t l . i n f o ) , 
 	               c t l _ l i n e ) ; 
 	     g o t o   s e t _ r e t u r n ; 
 	 e n d ; 
 
                 i f   n d x _ f l a g 
                 t h e n 
 	 d o ; 
 	     c a l l   t i t l e _   ( h f c b l k . p a r m s . l i n e s p a c e ,   a d d r   ( h f c b l k . i n p u t ) ,   v a r f l d , 
 	               l i n o ) ; 
 / * * * * 	     c a l l   c o m p _ s p a c e _   ( h f c b l k . p a r m s . l i n e s p a c e ,   h f c b l k _ p t r ,   " 1 " b ,   " 1 " b , 
 / * * * * 	               ( u n s p e c   ( h f c b l k . p a r m s . c b a r )   ^ =   " 0 " b ) ,   " 0 " b ) ; * / 
 	 e n d ; 
 
                 e l s e 
 	 d o ; 
 	     c a l l   t i t l e _   ( h f c b l k . p a r m s . l i n e s p a c e ,   a d d r   ( h f c b l k . i n p u t ) ,   v a r f l d , 
 	               l i n o ) ; 
 / * * * * 	     c a l l   c o m p _ s p a c e _   ( h f c b l k . p a r m s . l i n e s p a c e ,   h f c b l k _ p t r ,   " 1 " b ,   " 1 " b , 
 / * * * * 	               ( u n s p e c   ( h f c b l k . p a r m s . c b a r )   ^ =   " 0 " b ) ,   " 0 " b ) ; * / 
 	 e n d ; 
 
                 i f   l e a d   >   0 	 	 	 / *   a d d   t h e   e x t r a   l e a d   * / 
                 t h e n   c a l l   c o m p _ s p a c e _   ( l e a d ,   h f c b l k _ p t r ,   " 1 " b ,   " 1 " b , 
 	                 ( u n s p e c   ( h f c b l k . p a r m s . c b a r )   ^ =   " 0 " b ) ,   " 0 " b ) ; 
             e n d ; 
 
         i f   n d x _ f l a g 
         t h e n 
             d o ; 
                 h f c b l k . h d r . m x _ t t l _ n d x   =   m a x   ( h f c b l k . h d r . m x _ t t l _ n d x ,   l i n o ) ; 
 
                 h f c b l k . h d r . u s e d   =   0 ; 
                 d o   l i n e _ a r e a _ p t r   =   h f c b l k . l i n e _ a r e a . f i r s t   r e p e a t   ( l i n e _ a r e a . n e x t ) 
 	       w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 	 d o   i i   =   1   t o   l i n e _ a r e a . n d x ; 
 	     t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( i i ) ; 
 	     h f c b l k . h d r . u s e d   =   h f c b l k . h d r . u s e d   +   t x t l i n . l i n e s p a c e ; 
 	 e n d ; 
                 e n d ; 
             e n d ; 
 
 s e t _ r e t u r n : 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( s e t _ h f _ l i n e s :   ^ a = ^ d   e = ^ d   u = ^ f ( ^ f ) ) " ,   h f c b l k . b l k t y p e , 
 	         h f c b l k . b l k n d x ,   h f c b l k . h d r . c o u n t , 
 	         d e c   ( d i v i d e   ( h f c b l k . h d r . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	         d e c   ( d i v i d e   ( h f c b l k . h d r . t r l _ w s ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) ) ; 
 
         r e t u r n ; 
     e n d   s e t _ h f _ l i n e s ; 
 % p a g e ; 
 / *   c o n t r u c t   a n   e x p a n d e d   < t i t l e >   l i n e   * / 
 t i t l e _ : 
     p r o c   ( l e a d ,   l i n p t r ,   p _ f i e l d ,   l n d x ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   l e a d 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   t o t a l   l e a d   f o r   l i n e   * / 
         d c l   l i n p t r 	       p t r ; 	 	 / *   l i n e   t o   b e   e x p a n d e d   * / 
         d c l   p _ f i e l d 	       c h a r   ( * )   v a r ; 
         d c l   l n d x 	       f i x e d   b i n ; 	 / *   l i n e   i n d e x   f o r   p a g e   h e a d e r / f o o t e r , 
 	 	 	 	       0   f o r   a l l   o t h e r   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   a r t l i n e 	       c h a r   ( 1 0 2 0 )   v a r ;   / *   t i t l e   l i n e   w i t h   a r t w o r k   * / 
         d c l   f i e l d 	       c h a r   ( 1 0 2 0 )   v a r ; 
         d c l   ( i p a r t ,   k ,   l )     f i x e d ; 	 	 / *   w o r k i n g   i n d e x   * / 
         d c l   1   l i n e 	       a l i g n e d   l i k e   t e x t _ e n t r y   b a s e d   ( l i n p t r ) ; 
         d c l   m e a s 	       b i t   ( 1 ) ; 	 / *   c o n t r o l s   p a r t   m e a s u r i n g   * / 
 	 	 	 	 / *   f o r   t i t l e   m e a s u r i n g   * / 
         d c l   1   m e a s 1 	       a l i g n e d   l i k e   t e x t _ e n t r y . c u r ; 
         d c l   1   m e a s 2 	       a l i g n e d   l i k e   t e x t _ e n t r y . c u r ; 
         d c l   p a r t 	       c h a r   ( 1 0 2 0 )   v a r   b a s e d   ( a d d r   ( h f c b l k . i n p u t _ l i n e ) ) ; 
         d c l   p a r t _ a d d e d 	       b i t   ( 1 ) ; 
         d c l   p q u a d 	       ( 3 )   b i t   ( 6 ) ; 	 / *   p a r t   a l i g n m e n t s   * / 
         d c l   p w i d t h 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   w i d t h   o f   a   p a r t   * / 
         d c l   1   s h i f t _ c t l 	       l i k e   d c l o n g _ v a l ;   / *   f o r   p a r t   p o s i t i o n i n g   * / 
         d c l   s h i f t _ s t r 	       c h a r   ( 7 )   b a s e d   ( s h i f t _ s t r _ p t r ) ; 
         d c l   s h i f t _ s t r _ p t r     p t r ; 	 	 / *   e x p a n d e d   t e x t   * / 
         d c l   t l e n 	       f i x e d   b i n   ( 2 1 ) ; 	 / *   f o r   W S   c o n t r o l   * / 
 
         d c l   ( i n d e x ,   m a x )       b u i l t i n ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " t i t l e _ :   ( l n = ^ d   l d = ^ f   " " ^ a " " ) " ,   l n d x , 
 	         d e c   ( d i v i d e   ( l e a d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	         c o m p _ u t i l _ $ d i s p l a y   ( p _ f i e l d ,   0 ,   " 0 " b ) ) ; 
 
         f i e l d   =   p _ f i e l d ; 	 	 / *   c o p y   t h e   f i e l d   * / 
 
         s h i f t _ s t r _ p t r   =   a d d r   ( s h i f t _ c t l ) ; 
         s h i f t _ c t l . l e n g   =   d c l o n g 1 _ l e n ; 
         s h i f t _ c t l . m a r k   =   D C 1 ; 
         s h i f t _ c t l . t y p e   =   t y p e _ s l x ; 
         p a r t _ a d d e d   =   " 0 " b ; 
         a r t l i n e ,   p a r t   =   " " ; 
         p q u a d   ( 1 )   =   q u a d l ; 
         p q u a d   ( 2 )   =   q u a d c ; 
         p q u a d   ( 3 )   =   q u a d r ; 
 
         h f c b l k . i n p u t . i n f o   =   c t l . i n f o ; 
         h f c b l k . i n p u t . w i d t h ,   h f c b l k . i n p u t . l i n e s p a c e   =   0 ; 
         h f c b l k . i n p u t . t i t l e _ i n d e x   =   l n d x ; 
         h f c b l k . i n p u t . t i t l e   =   " 1 " b ; 
         h f c b l k . i n p u t . a r t   =   h f c b l k . p a r m s . a r t ; 
         h f c b l k . i n p u t . c b a r   =   h f c b l k . p a r m s . c b a r ; 
         h f c b l k . i n p u t . c u r . f o n t ,   h f c b l k . i n p u t . f o n t   = 
                   h f c b l k . p a r m s . f n t s t k . e n t r y   ( h f c b l k . p a r m s . f n t s t k . i n d e x ) ; 
         t l e n   =   0 ; 	 	 	 / *   t i t l e   s t a r t s   o u t   n u l l   * / 
 	 	 	 	 / *   t r i m   o p e n i n g   d e l i m i t e r   * / 
         f i e l d   =   a f t e r   ( f i e l d ,   s h a r e d . t t l _ d e l i m ) ; 
 	 	 	 	 / *   f o r   e a c h   t i t l e   p a r t   * / 
         d o   i p a r t   =   1   t o   3   w h i l e   ( f i e l d   ^ =   " " ) ; 
 	 	 	 	 / *   e x t r a c t   a   p a r t   * / 
             p a r t   =   b e f o r e   ( f i e l d ,   s h a r e d . t t l _ d e l i m ) ; 
             f i e l d   =   a f t e r   ( f i e l d ,   p a r t ) ; 
 f i n d _ c l o s e r : 	 	 	 / *   i f   i t s   e s c a p e d   * / 
             i f   ( i n d e x   ( r e v e r s e   ( p a r t ) ,   " ¿ " )   =   1   |   i n d e x   ( r e v e r s e   ( p a r t ) ,   " * " )   =   1 ) 
 	   &   i n d e x   ( r e v e r s e   ( p a r t ) ,   " ¿ "   | |   " ¿ " )   ^ =   1 
 	   &   i n d e x   ( r e v e r s e   ( p a r t ) ,   " * "   | |   " * " )   ^ =   1 
 	   &   i n d e x   ( r e v e r s e   ( p a r t ) ,   " * "   | |   " ¿ " )   ^ =   1 
             t h e n 
                 d o ; 
 	 p a r t   =   p a r t   | |   s h a r e d . t t l _ d e l i m ; 
 	 f i e l d   =   a f t e r   ( f i e l d ,   s h a r e d . t t l _ d e l i m ) ; 
 	 p a r t   =   p a r t   | |   b e f o r e   ( f i e l d ,   s h a r e d . t t l _ d e l i m ) ; 
 	 f i e l d   =   s h a r e d . t t l _ d e l i m   | |   a f t e r   ( f i e l d ,   s h a r e d . t t l _ d e l i m ) ; 
 	 g o t o   f i n d _ c l o s e r ; 
                 e n d ; 
 
             i f   p a r t   ^ =   " " 	 	 	 / *   a n y t h i n g   t h e r e ?   * / 
             t h e n 
                 d o ; 
 	 i f   h f c b l k . h d r . c o l n o   > =   0 	 / *   m e a s u r e   n o w ?   * / 
 	 t h e n   m e a s   =   ( i p a r t   >   1 )   &   ^ h f c b l k . i n p u t . a r t ; 
 	 e l s e   m e a s   =   " 0 " b ; 	 	 / *   m e a s u r e   l a t e r   * / 
 	 t l e n   =   t l e n   +   l e n g t h   ( p a r t ) ; 	 / * * / 
 	 	 	 	 / *   i f   n o   a r t ,   a d d   p a r t   t o   b l o c k   * / 
 	 i f   ^ h f c b l k . i n p u t . a r t 
 	 t h e n 
 	     d o ; 
 	         h f c b l k . i n p u t . q u a d   =   p q u a d   ( i p a r t ) ; 
 	         h f c b l k . i n p u t _ l i n e   =   p a r t ; 
 	         p a r t _ a d d e d   =   " 1 " b ; 
 	         c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( h f c b l k _ p t r ,   m e a s ,   ^ h f c b l k . i n p u t . a r t , 
 	                   " 0 " b ,   " 0 " b ,   a d d r   ( h f c b l k . i n p u t ) ) ; 
 	     e n d ; 
 
 	 e l s e 
 	     d o ; 	 	 	 / *   a c c u m u l a t e   a r t w o r k   p a r t s   * / 
 	         u n s p e c   ( m e a s 1 )   =   " 0 " b ; 
 	         c a l l   c o m p _ m e a s u r e _   ( p a r t ,   a d d r   ( h f c b l k . i n p u t . f o n t ) ,   " 0 " b ,   " 1 " b , 
 	                   p q u a d   ( i p a r t ) ,   0 ,   a d d r   ( m e a s 1 ) ,   a d d r   ( m e a s 2 ) , 
 	                   a d d r   ( c t l . i n f o ) ) ; 
 	         p w i d t h   =   m e a s 1 . w i d t h   +   m e a s 1 . a v g ; 
 
 	         i f   i p a r t   =   1 	 	 / *   f i r s t   p a r t   * / 
 	         t h e n 
 	             d o ; 
 	                 a r t l i n e   =   p a r t ; 
 	                 h f c b l k . i n p u t . w i d t h   =   p w i d t h ; 
 	             e n d ; 
 
 	         e l s e   i f   i p a r t   =   2 	 / *   s e c o n d   p a r t   * / 
 	         t h e n 
 	             d o ; 
 	                 s h i f t _ c t l . v 1   = 
 	 	       - h f c b l k . i n p u t . w i d t h 
 	 	       +   c o m p _ d v t . m i n _ W S 
 	 	       * 
 	 	       r o u n d   ( 
 	 	       d i v i d e   ( h f c b l k . i n p u t . n e t   -   p w i d t h   -   c t l . l m a r g , 
 	 	       2   *   c o m p _ d v t . m i n _ W S ,   3 1 ,   1 ) ,   0 ) ; 
 	                 a r t l i n e   =   a r t l i n e   | |   s h i f t _ s t r   | |   p a r t ; 
 	                 h f c b l k . i n p u t . w i d t h   = 
 	 	       h f c b l k . i n p u t . w i d t h   +   s h i f t _ c t l . v 1   +   p w i d t h ; 
 	             e n d ; 
 
 	         e l s e   i f   i p a r t   =   3 	 / *   t h i r d   p a r t   * / 
 	         t h e n 
 	             d o ; 
 	                 s h i f t _ c t l . v 1   = 
 	 	       h f c b l k . i n p u t . n e t   -   m a x   ( p w i d t h ,   s h a r e d . E N _ w i d t h ) 
 	 	       -   h f c b l k . i n p u t . w i d t h ; 
 	                 a r t l i n e   =   a r t l i n e   | |   s h i f t _ s t r   | |   p a r t ; 
 	                 h f c b l k . i n p u t . w i d t h   = 
 	 	       h f c b l k . i n p u t . w i d t h   +   s h i f t _ c t l . v 1   +   p w i d t h ; 
 	             e n d ; 
 	     e n d ; 
                 e n d ; 
 
             f i e l d   =   a f t e r   ( f i e l d ,   s h a r e d . t t l _ d e l i m ) ; 
         e n d ; 
 
         i f   h f c b l k . i n p u t . a r t 	 	 / *   a d d   a r t   l i n e   t o   b l o c k   * / 
         t h e n 
             d o ; 
                 h f c b l k . i n p u t _ l i n e   =   a r t l i n e ; 
                 h f c b l k . i n p u t . q u a d   =   q u a d l ; 
                 p a r t _ a d d e d   =   " 1 " b ; 
                 c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( h f c b l k _ p t r ,   " 0 " b ,   " 0 " b ,   " 0 " b ,   " 0 " b , 
 	       a d d r   ( h f c b l k . i n p u t ) ) ; 
             e n d ; 
 
         i f   l e a d   >   0 	 	 	 / *   a d d   g i v e n   l e a d   * / 
         t h e n 
             d o ; 
                 i f   p a r t _ a d d e d 	 	 / *   i f   a n y t h i n g   w a s   a d d e d   * / 
                 t h e n 
 	 d o ; 
 	     l i n e _ a r e a _ p t r   =   h f c b l k . l i n e _ a r e a . c u r ; 
 	     l i n e _ a r e a . l i n p t r   ( l i n e _ a r e a . n d x )   - >   t x t l i n . l i n e s p a c e   =   l e a d ; 
 	     h f c b l k . h d r . u s e d   =   h f c b l k . h d r . u s e d   +   l e a d ; 
 
 	     i f   ( s h a r e d . t a b l e _ m o d e   |   h f c b l k . t b l b l k )   &   h f c b l k . c o l n o   > =   0 
 	     t h e n 
 	         d o ; 
 	             t b l f m t p t r   =   t b l d a t a . f m t   ( t b l d a t a . n d x ) . p t r ; 
 	             t b l c o l p t r   =   t b l f m t . c o l p t r   ( t b l f m t . c c o l ) ; 
 	             t b l c o l . d e p t h   =   t b l c o l . d e p t h   +   l e a d ; 
 	             t b l f m t . m a x d e p t h   =   m a x   ( t b l f m t . m a x d e p t h ,   t b l c o l . d e p t h ) ; 
 	         e n d ; 
 	 e n d ; 
 
                 e l s e 
 	 d o ; 
 	     c a l l   c o m p _ s p a c e _   ( l e a d ,   h f c b l k _ p t r ,   " 1 " b ,   " 1 " b , 
 	               ( u n s p e c   ( h f c b l k . p a r m s . c b a r )   ^ =   " 0 " b ) ,   " 0 " b ) ; 
 	     h f c b l k . l i n e _ a r e a . c u r 
 	               - >   l i n e _ a r e a . l i n p t r   ( h f c b l k . l i n e _ a r e a . c u r   - >   l i n e _ a r e a . n d x ) 
 	               - >   t x t l i n . t i t l e _ i n d e x   =   l i n o ; 
 	 e n d ; 
             e n d ; 
 
         h f c b l k . i n p u t _ l i n e   =   " " ; 	 	 / *   e r a s e   l e f t o v e r s   * / 
         h f c b l k . i n p u t . l i n e s p a c e   =   h f c b l k . p a r m s . l i n e s p a c e ; 
         h f c b l k . i n p u t . q u a d   =   h f c b l k . p a r m s . q u a d ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( t i t l e _ :   ^ a = ^ d   e ^ d   u ^ f ( ^ f ) ^ [   A ^ ] ) " ,   h f c b l k . b l k t y p e , 
 	         h f c b l k . b l k n d x ,   h f c b l k . h d r . c o u n t , 
 	         d e c   ( d i v i d e   ( h f c b l k . h d r . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	         d e c   ( d i v i d e   ( h f c b l k . h d r . t r l _ w s ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	         h f c b l k . h d r . a r t ) ; 
 
     e n d   t i t l e _ ; 
 % p a g e ; 
 % i n c l u d e   c o m p _ b r k t y p e s ; 
 % i n c l u d e   c o m p _ c o l u m n ; 
 % i n c l u d e   c o m p _ D C d a t a ; 
 % i n c l u d e   c o m p _ e n t r i e s ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ f o o t n o t e s ; 
 % i n c l u d e   c o m p _ i n s e r t ; 
 % i n c l u d e   c o m p _ m e t a c o d e s ; 
 % i n c l u d e   c o m p _ o p t i o n ; 
 % i n c l u d e   c o m p _ p a g e ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ t a b l e ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p _ d v t ; 
 % i n c l u d e   c o m p s t a t ; 
 
     e n d   c o m p _ h f t _ c t l s _ ; 
  
 
 
  
 	 	         c o m p _ i n i t _ . p l 1                                     0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 1 0 . 0             2 8 7 2 8 0     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / * 	 c o m p o s e   s u b r o u t i n e   t o   i n i t i a l i z e   t h e   i n t e r n a l   d a t a   b a s e   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ i n i t _ : 
     p r o c ; 
         r e t u r n ; 	 	 	 / *   n o   e n t r y   h e r e   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   d a t e _ t i m e _ s t r i n g 
 	 	       c h a r   ( 1 6 ) ; 	 / *   c u r r e n t   d a t e   a n d   t i m e   * / 
         d c l   d e b u g _ s w 	       b i t   ( 1 ) ; 	 / *   e f f e c t i v e   d e b u g   s w i t c h   * / 
         d c l   e r c d 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   s y s t e m   e r r o r   c o d e   * / 
 
         d c l   ( a d d r ,   m i n ,   n u l l ,   s i z e ) 
 	 	       b u i l t i n ; 
         d c l   c l e a n u p 	       c o n d i t i o n ; 
 
         d c l   c l o c k _ 	       e n t r y   r e t u r n s   ( f i x e d   b i n   ( 7 1 ) ) ; 
         d c l   c o m _ e r r _ 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   d a t e _ t i m e _ 	       e n t r y   ( f i x e d   b i n   ( 7 1 ) ,   c h a r   ( * ) ) ; 
         d c l   t r a n s l a t o r _ t e m p _ $ g e t _ s e g m e n t 
 	 	       e n t r y   ( c h a r   ( * )   a l i g n e d ,   p t r ,   f i x e d   b i n   ( 3 5 ) ) ; 
 
 / *   C O N S T A N T   S T A T I C   S T O R A G E   * / 
 
         d c l   b u i l t i n _ n a m e s     ( 8 0 )   c h a r   ( 3 2 )   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " A l i g n M o d e " ,   " A r g C o u n t " ,   " A r g s " ,   " A r t M o d e " , 
 	 	       " B l o c k I n d e x " ,   " B l o c k N a m e " ,   " C a l l i n g F i l e N a m e " , 
 	 	       " C a l l i n g L i n e N o " ,   " C h a n g e B a r " ,   " C o m m a n d A r g C o u n t " ,   " D a t e " , 
 	 	       " D e v i c e " ,   " D e v i c e C l a s s " ,   " D e v i c e N a m e " ,   " D o t A d d L e t t e r " , 
 	 	       " E q c n t " ,   " E q M o d e " ,   " E x t r a M a r g i n " ,   " F i l e N a m e " , 
 	 	       " F i l l M o d e " ,   " F i r s t P a s s " ,   " F o n t N a m e " ,   " F o o t c n t " , 
 	 	       " F o o t n o t e M o d e " ,   " F o o t R e s e t " ,   " F r o m " ,   " F r o n t P a g e " , 
 	 	       " G a l l e y " ,   " H e a d S p a c e " ,   " H y p h e n a t i n g " ,   " I n d e n t " , 
 	 	       " I n d e n t R i g h t " ,   " I n p u t D i r N a m e " ,   " I n p u t F i l e N a m e " , 
 	 	       " I n p u t L i n e n o " ,   " I n s e r t I n d e x " ,   " K e e p M o d e " , 
 	 	       " L i n e N u m b e r O p t " ,   " L i n e I n p u t " ,   " L i n e s L e f t " ,   " L i n e S p a c e " , 
 	 	       " M e a s u r e " ,   " N e x t P a g e N o " ,   " O u t p u t F i l e O p t " ,   " P a g e B l o c k " , 
 	 	       " P a g e C o u n t " ,   " P a g e L e n g t h " ,   " P a g e L i n e " ,   " P a g e N o " , 
 	 	       " P a g e S p a c e " ,   " P a g e W i d t h " ,   " P a r a m e t e r " ,   " P a r a m P r e s e n t " , 
 	 	       " P a s s " ,   " P i c t u r e C o u n t " ,   " P o i n t S i z e " ,   " P r i n t " ,   " S t o p O p t " , 
 	 	       " S y m b o l D e l i m i t e r " ,   " T a b l e M o d e " ,   " T e x t D e p t h " , 
 	 	       " T e x t W i d t h " ,   " T i m e " ,   " T i t l e D e l i m i t e r " ,   " T o " ,   " T r T a b l e " , 
 	 	       " U n d e n t " ,   " U n d e n t R i g h t " ,   " U s e r I n p u t " ,   " V M a r g B o t t o m " , 
 	 	       " V M a r g F o o t e r " ,   " V M a r g H e a d e r " ,   " V M a r g T o p " ,   " W a i t O p t " , 
 	 	       " W i d o w " ,   " W i d o w F o o t " , 
 	 	 	 	 / * * / 
 	 	       ( 4 )   ( 3 2 ) "  " ) ; 	 / *   s e t   s p a r e s   t o   P A D s   * / 
 
         d c l   1   i n i t i a l _ p a g e _ p a r m s 	 	 / *   i n i t i a l   p a g e   f o r m a t t i n g   p a r m s   * / 
 	 	       a l i g n e d   s t a t i c   o p t i o n s   ( c o n s t a n t ) , 
 	 2   i n i t _ p a g e _ d e p t h 
 	 	       f i x e d   b i n   ( 3 1 ) , 	 / *   i n i t i a l   p a g e   d e p t h   * / 
 	 2   l e n g t h 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 7 9 2 0 0 0 ) , 
 	 	 	 	 / *   p a g e   l e n g t h   * / 
 	 2   l m a r g , 	 	 	 / *   p a g e   l e f t   m a r g i n s   * / 
 	     3   e v e n 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) , 
 	     3   o d d 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) , 
 	 2   m a r g i n , 	 	 	 / *   m a r g i n   v a l u e s   * / 
 	     3   t o p 	       f i x e d   b i n   ( 3 1 ) , 
 	     3   h e a d e r       f i x e d   b i n   ( 3 1 ) , 
 	     3   f o o t e r       f i x e d   b i n   ( 3 1 ) , 
 	     3   b o t t o m       f i x e d   b i n   ( 3 1 ) , 
 	 2   m e a s u r e 	       f i x e d   b i n   ( 3 1 ) , 	 / *   l i n e   s p a c e   a v a i l a b l e   f o r   t e x t   * / 
 	 2   n e t , 	 	 	 / *   n e t   u s a b l e   s p a c e   o n   p a g e   * / 
 	     3   e v e n 	       f i x e d   b i n   ( 3 1 ) , 	 / *   e v e n   p a g e s   * / 
 	     3   o d d 	       f i x e d   b i n   ( 3 1 ) , 	 / *   o d d   p a g e s   * / 
 	 2   c o l s , 	 	 	 / *   c o l u m n s   d e f i n e d   f o r   t h e   p a g e   * / 
 	 	 	 	 / *   1 =   b a l a n c e   c o l u m n s   * / 
 	     3   b a l 	       b i t   ( 1 )   u n a l   i n i t   ( " 1 " b ) , 
 	     3   M B Z 	       b i t   ( 1 7 )   u n a l   i n i t   ( ( 1 7 ) " 0 " b ) , 
 	 	 	 	 / *   t h e   n u m b e r   o f   c o l u m n s   * / 
 	     3   c o u n t 	       f i x e d   b i n   u n a l   i n i t   ( 0 ) ; 
 	 	 	 	 / *   f o r c e   f o l l o w i n g   s t r u c t u r e   t o   e v e n   * / 
         d c l   d u m m y 	       p t r   i n i t   ( n u l l   ( ) )   s t a t i c   o p t i o n s   ( c o n s t a n t ) ; 
 
         d c l   1   i n i t i a l _ s h a r e d 	 	 / *   i n i t i a l   s h a r e d   d a t a   v a l u e s   * / 
 	 	       a l i g n e d   s t a t i c   o p t i o n s   ( c o n s t a n t ) , 
 	 2   v e r s i o n 	       f i x e d   b i n   ( 3 5 ) , 	 / *   v e r s i o n   o f   t h i s   s t r u c t u r e   * / 
 	 2   c h a r s , 	 	 	 / * * / 
 	 (   3   s y m _ d e l i m 	 	 / *   d e l i m i t e r   f o r   s y m b o l s   * / 
 	 	       i n i t   ( " % " ) , 
 	     3   t t l _ d e l i m 	 	 / *   d e l i m i t e r   f o r   t i t l e   p a r t s   * / 
 	 	       i n i t   ( " | " ) , 
 	     3   w r d _ b r k r   i n i t   ( "   " ) 	 / *   w o r d   b r e a k   c h a r a c t e r   * / 
 	     ) 	       c h a r   ( 1 )   u n a l , 
 	     3   P A D 	       c h a r   ( 1 )   u n a l   i n i t   ( " " ) , 
 	 2   c b a r _ t y p e 	 	 / *   c h a n g e   b a r   t y p e   * / 
 	 	       c h a r   ( 4 )   v a r   i n i t   ( " " ) , 
 	 2   d o t _ a d d _ l e t t e r 	 	 / *   d o t   p a g e   a d d   l e t t e r   ( =   P A D )   * / 
 	 	       c h a r   ( 1 )   v a r   i n i t   ( "  " ) , 
 	 	 	 	 / *   w i d t h   o f   E N   i n   c u r r e n t   f o n t   * / 
 	 2   E N _ w i d t h       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) , 
 	 	 	 	 / *   e q u a t i o n   r e f e r e n c e   c o u n t e r   * / 
 	 2   e q n _ r e f c t     f i x e d   b i n   i n i t   ( 1 ) , 
 	 2   f o o t r e f _ f c s 	 	 / *   f o o t n o t e   r e f   F C S   s t r i n g   * / 
 	 	       c h a r   ( 8 )   i n i t   ( " " ) , 
 	 	 	 	 / *   f o o t n o t e   r e s e t   m o d e   * / 
 	 2   f t n _ r e s e t     c h a r   ( 8 )   v a r   i n i t   ( " p a g e d " ) , 
 	 	 	 	 / *   f o o t n o t e   r e f   c o u n t e r   * / 
 	 2   f t n r e f c t       f i x e d   b i n   i n i t   ( 1 ) , 
 	 	 	 	 / *   l e a s t   w o r d   p a r t   s i z e   f o r   h y p h i n g   * / 
 	 2   h y p h _ s i z e     f i x e d   b i n   ( 3 1 )   i n i t   ( 3 ) , 
 	 2   i f _ n e s t , 	 	 / *   i f / t h e n / e l s e   l o g i c   c o n t r o l   * / 
 	 	 	 	 / *   d e p t h   o f   l o g i c   n e s t   * / 
 	     3   n d x 	       f i x e d   b i n   i n i t   ( 0 ) , 
 	     3   e 	       ( 2 5 ) , 	 	 / *   n e s t   e n t r i e s   * / 
 	 	 	 	 / *   . i f   c o n t r o l   s w i t c h   * / 
 	         4   s w 	       f i x e d   b i n , 	 / *   0 = o f f ,   1 = ( t h e n ) ,   - 1 = ( e l s e )   * / 
 	         4   i n f o       l i k e   t e x t _ e n t r y . i n f o , 
 	         4   l i n e       c h a r   ( 2 5 6 )   v a r , 	 / *   t h e   c o n t r o l   l i n e   * / 
 	 2   i n d c t l , 	 	 	 / *   i n d e n t   c t l s   s t a c k   * / 
 	 	 	 	 / *   c u r r e n t   l e v e l   * / 
 	     3   n d x 	       f i x e d   b i n   i n i t   ( 0 ) , 
 	 	 	 	 / *   s w i t c h   b i t s   * / 
 	     3   s t k 	       ( 0 : 3 5 )   b i t   ( 1 )   u n a l   i n i t   ( ( 3 6 )   ( 1 ) " 0 " b ) , 
 	 2   i n p u t _ d i r n a m e 	 	 / *   d i r   c o n t a i n i n g   c u r r e n t   i n p u t   f i l e   * / 
 	 	       c h a r   ( 1 6 8 )   v a r   i n i t   ( " " ) , 
 	 2   i n p u t _ f i l e n a m e 	 	 / *   c u r r e n t   i n p u t   f i l e   n a m e   * / 
 	 	       c h a r   ( 2 0 0 )   v a r   i n i t   ( " " ) , 
 	 2   l e a d 	 	 	 / *   c u r r e n t   l i n e s p a c i n g   v a l u e   * / 
 	 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) , 
 	 2   l i t _ c o u n t     f i x e d   b i n   ( 3 5 )   i n i t   ( 0 ) , 
 	 	 	 	 / *   c o u n t   o f   l i t e r a l   l i n e s   * / 
 	 2   n e x t _ p a g e n m b r 	 	 / *   n e x t   p a g e   n u m b e r   * / 
 	 	       c h a r   ( 3 2 )   v a r   i n i t   ( " 1 " ) , 
 	 2   o u t p u t _ f i l e 	 	 / *   o u t p u t   f i l e   i d e n t i f i e r   * / 
 	 	       c h a r   ( 3 2 )   v a r   i n i t   ( " " ) , 
 	 2   p a g e c o u n t 	 	 / *   n u m b e r   o f   p a g e s   p r o d u c e d   * / 
 	 	       f i x e d   b i n   i n i t   ( 0 ) , 
 	 2   p a g e n u m , 	 	 / *   p a g e   n u m b e r   s t r u c t u r e   * / 
 	 	 	 	 / *   l e v e l   c u r r e n t l y   c o u n t i n g   * / 
 	     3   i n d e x 	       f i x e d   b i n   i n i t   ( 1 ) , 
 	 	 	 	 / *   s e p a r a t o r   c h a r s   ( N U L s )   * / 
 	     3   s e p 	       ( 2 0 )   c h a r   ( 1 )   u n a l   i n i t   ( ( 2 0 )   ( 1 ) "   " ) , 
 	 	 	 	 / *   t h e   c o u n t e r s   * / 
 	     3   n m b r 	       ( 2 0 )   f i x e d   b i n   ( 3 1 )   i n i t   ( ( 2 0 )   0 ) , 
 	 	 	 	 / *   d i s p l a y   m o d e s   * / 
 	     3   m o d e 	       ( 2 0 )   f i x e d   b i n   ( 8 )   u n a l   i n i t   ( ( 2 0 )   0 ) , 
 	 	 	 	 / *   c o m m a n d   l i n e   p a r a m e t e r   * / 
 	 2   p a r a m e t e r     c h a r   ( 2 5 4 )   v a r   i n i t   ( " " ) , 
 	 	 	 	 / *   p a s s e d   p a r a m e t e r   f l a g   * / 
 	 2   p a r a m _ p r e s   b i t   ( 1 )   u n a l   i n i t   ( " 0 " b ) , 
 	 2   p a s s _ c o u n t e r 
 	 	       f i x e d   b i n   i n i t   ( 1 ) , 
 	 	 	 	 / *   p a s s   c o u n t e r   * / 
 	 2   p i c t u r e , 	 	 / *   p i c t u r e   b l o c k s   * / 
 	     3   c o u n t 	       f i x e d   b i n   i n i t   ( 0 ) , 
 	     3   s p a c e 	 	 	 / *   t o t a l   p i c t u r e   s p a c e   * / 
 	 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) , 
 	     3   b l k 	       ( 1 0 ) , 	 	 / *   p i c t u r e   b l o c k s   * / 
 	         4   t y p e 	 	 / *   t y p e   =   p a g e / c o l   * / 
 	 	       c h a r   ( 4 )   i n i t   ( ( 1 0 )   ( 0 ) " " ) , 
 	         4   p l a c e 	 	 / *   p l a c e   =   t o p / c e n / b o t   * / 
 	 	       c h a r   ( 4 )   i n i t   ( ( 1 0 )   ( 0 ) " " ) , 
 	         4   p t r 	 	 	 / *   p o i n t e r   t o   b l o c k   * / 
 	 	       p t r   i n i t   ( ( 1 0 )   n u l l ) , 
 	         4   s i z e 	 	 / *   s i z e   o f   p i c t u r e   * / 
 	 	       f i x e d   b i n   ( 3 1 )   i n i t   ( ( 1 0 )   0 ) , 
 	 2   p t r s , 
 	 (   3   a u x _ f i l e _ d a t a _ p t r , 	 / *   - >   a u x i l i a r y   f i l e   d a t a   * / 
 	     3   b l a n k _ f o o t e r _ p t r , 	 / *   - >   b l a n k   p a g e   f o o t e r   * / 
 	     3   b l a n k _ h e a d e r _ p t r , 	 / *   - >   b l a n k   p a g e   h e a d e r   * / 
 	     3   b l a n k _ t e x t _ p t r , 	 	 / *   - >   b l a n k   p a g e   t e x t   * / 
 	     3   b l k p t r , 	 	 / *   - >   a c t i v e   t e x t   * / 
 	     3   c o l p t r , 	 	 / *   c u r r e n t   c o l u m n   * / 
 	     3   c o m p o u t _ p t r , 	 	 / *   i o c b   p o i n t e r   f o r   o u t p u t   * / 
 	     3   c o m p x _ p t r , 	 	 / *   i o c b   p o i n t e r   f o r   c o m p x   f i l e   * / 
 	     3   c t b _ p t r , 	 	 / *   c u r r e n t   l i n e   a r t w o r k   t a b l e   * / 
 	     3   e p f t r p t r , 	 	 / *   e v e n   p a g e   f o o t e r   b l o c k   * / 
 	     3   e p h d r p t r , 	 	 / *   e v e n   p a g e   h e a d e r   b l o c k   * / 
 	     3   f c b _ p t r , 	 	 / *   i n p u t   f i l e   c o n t r o l   b l o c k   p o i n t e r   * / 
 	     3   f t n b l k _ d a t a _ p t r , 	 / *   f o o t n o t e   b l o c k   d a t a   * / 
 	     3   f o o t n o t e _ h e a d e r _ p t r , 	 / *   f o o t n o t e   h e a d e r   * / 
 	     3   g r a p h i c _ p a g e _ p t r , 	 / *   g r a p h i c   o u t p u t   p a g e   * / 
 	     3   h i t _ d a t a _ p t r , 	 	 / *   h i t   d a t a   p o i n t e r   * / 
 	     3   h t a b _ p t r , 	 	 / *   h o r i z o n t a l   t a b   t a b l e s   * / 
 	     3   h w r d _ d a t a _ p t r , 	 	 / *   l o c a l   h y p h e n a t i o n   t a b l e   * / 
 	     3   i n s e r t _ p t r , 	 	 / *   d a t a   e n t r y   f o r   c u r r e n t   f i l e   * / 
 	     3   o p f t r p t r , 	 	 / *   o d d   p a g e   f o o t e r   b l o c k   * / 
 	     3   o p h d r p t r , 	 	 / *   o d d   p a g e   h e a d e r   b l o c k   * / 
 	     3   p t b _ p t r , 	 	 / *   p r e v i o u s   l i n e   a r t w o r k   t a b l e   * / 
 	     3   s p c l _ b l k p t r , 	 	 / *   " s p e c i a l "   b l o c k   p o i n t e r   * / 
 	     3   t b l d a t a _ p t r , 	 	 / *   t a b l e   c o l u m n   d a t a   * / 
 	     3   t b l k d a t a _ p t r , 	 	 / *   t e x t   b l o c k   d a t a   a r r a y   * / 
 	     3   t e x t _ h e a d e r _ p t r 	 	 / *   e m p t y   t e x t   h e a d e r   s t r u c t u r e   * / 
 	     ) 	       p t r   i n i t   ( n u l l ) , 
 	 2   s c a l e , 	 	 	 / *   s p a c e   c o n v e r s i o n   s c a l e   f a c t o r s   * / 
 	     3   h o r z 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 7 2 0 0 ) , 
 	 	 	 	 / *   h o r i z o n t a l   * / 
 	     3   v e r t 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 1 2 0 0 0 ) , 
 	 	 	 	 / *   v e r t i c a l   * / 
 	 2   s o u r c e _ f i l e n a m e 	 	 / *   s o u r c e   f i l e   n a m e   * / 
 	 	       c h a r   ( 2 0 0 )   v a r   i n i t   ( " " ) , 
 	 2   s w s , 	 	 	 / *   s w i t c h   b i t s   * / 
 	 (   3   b u g _ m o d e   i n i t   ( " 0 " b ) , 	 / *   d e b u g   m o d e   * / 
 	     3   c o m p o u t _ n o t _ h e a d e d 	 / *   c o m p o u t   n o t   h e a d e d   * / 
 	 	       i n i t   ( " 1 " b ) , 
 	     3   e n d _ i n p u t 	 	 / *   E O F   f o r   c u r r e n t   i n p u t   f i l e   * / 
 	 	       i n i t   ( " 0 " b ) , 
 	     3   e n d _ o u t p u t 	 	 / *   1   =   n o   m o r e   o u t p u t   i s   w a n t e d   * / 
 	 	       i n i t   ( " 0 " b ) , 
 	     3   f i r s t p a s s 	 	 / *   1   =   f i r s t   p a s s   o v e r   i n p u t   * / 
 	 	       i n i t   ( " 1 " b ) , 
 	     3   f t n _ m o d e   i n i t   ( " 0 " b ) , 	 / *   1   =   i n   f o o t n o t e   m o d e   * / 
 	     3   h y p h _ m o d e 	 	 / *   h y p h e n a t i n g   m o d e   * / 
 	 	       i n i t   ( " 0 " b ) , 
 	     3   i n s e r t i n g _ h f c 	 	 / *   i n s e r t i n g   h d r ,   f t r ,   o r   c a p   * / 
 	 	       i n i t   ( " 0 " b ) , 
 	     3   l i t e r a l _ m o d e 	 	 / *   l i t e r a l   l i n e   m o d e   f l a g   * / 
 	 	       i n i t   ( " 0 " b ) , 
 	     3   p a g e b l o c k 	 	 / *   b l o c k s   b e l o n g   t o   p a g e   * / 
 	 	       i n i t   ( " 0 " b ) , 
 	     3   p i c t u r e _ m o d e 	 	 / *   b u i l d i n g   a   p i c t u r e   * / 
 	 	       i n i t   ( " 0 " b ) , 
 	     3   p r i n t _ f l a g 	 	 / *   p r o d u c i n g   o u t p u t   * / 
 	 	       i n i t   ( " 0 " b ) , 
 	     3   p u r g e _ f t n s 	 	 / *   p u r g i n g   f o o t n o t e s   * / 
 	 	       i n i t   ( " 0 " b ) , 
 	     3   s u p p r e s s _ f o o t r e f 	 / *   s u p r e s s   n u m b e r   * / 
 	 	       i n i t   ( " 0 " b ) , 
 	     3   t a b l e _ m o d e 	 	 / *   1   =   i n   t a b l e   m o d e   * / 
 	 	       i n i t   ( " 0 " b ) 
 	     ) 	       b i t   ( 1 )   u n a l , 
 	     3   M B Z 	       b i t   ( 2 1 )   u n a l   i n i t   ( ( 2 1 ) " 0 " b ) , 
 	 2   t r a n s , 	 	 	 / *   t r a n s   t a b l e   f o r   . t r   * / 
 	     3   i n 	       c h a r   ( 1 2 8 )   v a r   i n i t   ( " " ) , 
 	 	 	 	 / *   i n p u t   c h a r s   * / 
 	     3   o u t 	       c h a r   ( 1 2 8 )   v a r   i n i t   ( " " ) , 
 	 	 	 	 / *   o u t p u t   c h a r s   * / 
 	 2   w i d o w _ s i z e   f i x e d   b i n   ( 3 1 )   i n i t   ( 2 ) , 
 	 	 	 	 / *   w i d o w   s i z e   * / 
 	 2   w i d o w _ f o o t   f i x e d   b i n   ( 3 1 )   i n i t   ( 1 ) ; 
 	 	 	 	 / *   w i d o w   s i z e   f o r   f o o t n o t e s   * / 
 
         d c l   1   i n i t _ d e f a u l t _ p a r m s 
 	 	       a l i g n e d   s t a t i c   o p t i o n s   ( c o n s t a n t ) , 
 	 2   s w s , 	 	 	 / *   c o n t r o l   s w i t c h e s   * / 
 	 	 	 	 / *   t e x t   a l i g n m e n t   m o d e   * / 
 	     3   q u a d 	       b i t   ( 6 )   u n a l   i n i t   ( " 0 0 0 0 0 1 " b ) , 
 	 	 	 	 / *   a r t w o r k   b l o c k   f l a g   * / 
 	     3   a r t 	       b i t   ( 1 )   u n a l   i n i t   ( " 0 " b ) , 
 	     3   c b a r , 	 	 	 / *   c h a n g e   b a r   f l a g s   * / 
 	 	 	 	 / *   t e x t   a d d i t i o n   f l a g   * / 
 	         4   a d d 	       b i t   ( 1 )   u n a l   i n i t   ( " 0 " b ) , 
 	 	 	 	 / *   t e x t   d e l e t i o n   f l a g   * / 
 	         4   d e l 	       b i t   ( 1 )   u n a l   i n i t   ( " 0 " b ) , 
 	 	 	 	 / *   t e x t   m o d i f i c a t i o n   f l a g   * / 
 	         4   m o d 	       b i t   ( 1 )   u n a l   i n i t   ( " 0 " b ) , 
 	     3   f i l l _ m o d e 	 	 / *   f i l l   m o d e   * / 
 	 	       b i t   ( 1 )   u n a l   i n i t   ( " 1 " b ) , 
 	 	 	 	 / *   b l o c k   i s   a   f o o t n o t e   * / 
 	     3   f o o t n o t e   b i t   ( 1 )   u n a l   i n i t   ( " 0 " b ) , 
 	 	 	 	 / *   O B S O L E T E   * / 
 	     3   h f c 	       b i t   ( 1 )   u n a l   i n i t   ( " 0 " b ) , 
 	     3   h t a b _ m o d e 	 	 / *   h o r i z o n t a l   t a b   m o d e   f l a g   * / 
 	 	       b i t   ( 1 )   u n a l   i n i t   ( " 0 " b ) , 
 	 	 	 	 / *   k e e p   m o d e   * / 
 	     3   k e e p 	       b i t   ( 1 )   u n a l   i n i t   ( " 0 " b ) , 
 	 	 	 	 / *   b l o c k   b e l o n g s   t o   p a g e   * / 
 	     3   p a g e 	       b i t   ( 1 )   u n a l   i n i t   ( " 0 " b ) , 
 	     3   t i t l e _ m o d e 	 	 / *   1   =   < t i t l e > s   O K   * / 
 	 	       b i t   ( 1 )   u n a l   i n i t   ( " 0 " b ) , 
 	     3   M B Z 	       b i t   ( 1 9 )   u n a l   i n i t   ( ( 1 9 ) " 0 " b ) , 
 	 2   f t r p t r 	       p t r   i n i t   ( n u l l ) ,   / *   t e x t   c a p t i o n   b l o c k   * / 
 	 2   c b a r _ l e v e l 	 	 / *   c h a n g e   l e v e l   f o r   c b a r s   * / 
 	 	       c h a r   ( 1 )   a l i g n e d   i n i t   ( " " ) , 
 	 2   h d r p t r 	       p t r   i n i t   ( n u l l ) ,   / *   t e x t   h e a d e r   b l o c k   * / 
 	 2   l e f t , 	 	 	 / *   l e f t   m a r g i n   d a t a   * / 
 	     3   i n d e n t       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) , 
 	     3   u n d e n t       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) , 
 	 	 	 	 / *   l i n e   s p a c i n g   * / 
 	 2   l i n e s p a c e     f i x e d   b i n   ( 3 1 )   i n i t   ( 1 2 0 0 0 ) , 
 	 	 	 	 / *   l i n e   s p a c e   a v a i l a b l e   f o r   t e x t   * / 
 	 2   m e a s u r e 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) , 
 	 2   r i g h t 	       l i k e   i n i t _ d e f a u l t _ p a r m s . l e f t , 
 	 	 	 	 / *   a r r a y s   t o   t h e   b a c k   o f   t h e   b u s ,   p l e a s e !   * / 
 	 2   f n t s t k , 	 	 	 / *   s t a c k   o f   l a s t   2 0   f o n t   c h a n g e s   * / 
 	 	 	 	 / *   w h i c h   o n e   i n   u s e   * / 
 	     3   i n d e x 	       f i x e d   b i n   i n i t   ( 0 ) , 
 	     3   e n t r y 	       ( 0 : 1 9 )   l i k e   f n t s t k _ e n t r y ; 
 	 	 	 	 / *   t h e   s t a c k   e n t r i e s   * / 
 	 	 	 	 / *   e m p t y   t e x t   h e a d e r   s t r u c t u r e   * / 
         d c l   1   i n i t i a l _ t e x t _ h e a d e r 
 	 	       a l i g n e d   s t a t i c   o p t i o n s   ( c o n s t a n t ) , 
 	 2   s w s , 	 	 	 / *   c o n t r o l   s w i t c h e s   * / 
 	 (   3   a r t 	       i n i t   ( " 0 " b ) , 	 / *   b l o c k   h a s   a r t w o r k   * / 
 	     3   d f r f t n       i n i t   ( " 0 " b ) , 	 / *   b l o c k   i s   a   d e f e r r e d   f o o t n o t e   * / 
 	     3   m o d i f i e d   i n i t   ( " 0 " b ) , 	 / *   b l o c k   h a s   m o d i f i e d   l i n e s   * / 
 	     3   n o _ t r i m     i n i t   ( " 0 " b ) , 	 / *   d o n t   t r i m   W S   b l o c k   * / 
 	     3   o f l o _ f t n   i n i t   ( " 0 " b ) , 	 / *   o v e r f l o w   f o o t n o t e   * / 
 	     3   o r p h a n       i n i t   ( " 0 " b ) , 	 / *   f o o t n o t e   i s   a n   o r p h a n   * / 
 	     3   p i c t u r e     i n i t   ( " 0 " b ) , 	 / *   p i c t u r e   b l o c k   * / 
 	     3   t b l b l k       i n i t   ( " 0 " b ) , 	 / *   a   t a b l e   b l o c k   * / 
 	     3   u n r e f 	       i n i t   ( " 0 " b ) , 	 / *   b l o c k   i s   a n   u n r e f f e d   f o o t n o t e   * / 
 	     3   w h i t e 	       i n i t   ( " 0 " b ) 	 / *   b l o c k   i s   a   w h i t e   s p a c e   b l o c k   * / 
 	     ) 	       b i t   ( 1 )   u n a l , 
 	     3   M B Z 	       b i t   ( 2 6 )   u n a l   i n i t   ( ( 2 6 ) " 0 " b ) , 
 	 	 	 	 / *   a r t w o r k   l i n e   c o u n t e r   * / 
 	 2   a r t _ c o u n t     f i x e d   b i n   u n a l   i n i t   ( 0 ) , 
 	 2   b l k p t r 	       p t r   i n i t   ( n u l l ) ,   / *   p o i n t e r   t o   s u s p e n d e d   b l o c k   * / 
 	 	 	 	 / *   l i n e   c o u n t   o f   t e x t   c a p t i o n   * / 
 	 2   c a p _ s i z e       f i x e d   b i n   u n a l   i n i t   ( 0 ) , 
 	 	 	 	 / *   s i z e   o f   t e x t   c a p t i o n   * / 
 	 2   c a p _ u s e d       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) , 
 	 	 	 	 / *   c o n t a i n i n g   c o l u m n   * / 
 	 2   c o l n o 	       f i x e d   b i n   u n a l   i n i t   ( 0 ) , 
 	 	 	 	 / *   l i n e   c o u n t   f o r   b l o c k   * / 
 	 2   c o u n t 	       f i x e d   b i n   u n a l   i n i t   ( 0 ) , 
 	 	 	 	 / *   c o u n t e r   f o r   e q u a t i o n   l i n e s   * / 
 	 2   e q n _ l i n e _ c o u n t 
 	 	       f i x e d   b i n   u n a l   i n i t   ( 0 ) , 
 	 	 	 	 / *   O B S O L E T E   * / 
 	 2   f i r s t _ t e x t   f i x e d   b i n   u n a l   i n i t   ( 0 ) , 
 	 2   f t n , 	 	 	 / *   f o o t n o t e s   i n   t h e   b l o c k   * / 
 	 	 	 	 / *   n u m b e r   * / 
 	     3   c t 	       f i x e d   b i n   i n i t   ( 0 ) , 
 	 	 	 	 / *   s p a c e   n e e d e d   * / 
 	     3   u s d 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) , 
 	 	 	 	 / *   b l o c k   i n d e x   v a l u e s   * / 
 	     3   b l k n d x       ( 4 0 )   f i x e d   b i n   i n i t   ( ( 4 0 )   0 ) , 
 	 	 	 	 / *   l i n e   c o u n t   o f   t e x t   h e a d e r   * / 
 	 2   h e a d _ s i z e     f i x e d   b i n   i n i t   ( 0 ) , 
 	 	 	 	 / *   s i z e   o f   t e x t   h e a d e r   * / 
 	 2   h e a d _ u s e d     f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) , 
 	 	 	 	 / *   b l o c k   i n d e x   o f   n e x t   o u t p u t   l i n e   * / 
 	 2   i n d e x 	       f i x e d   b i n   u n a l   i n i t   ( 1 ) , 
 	 	 	 	 / *   t o   c o u n t   i n p u t   k e e p   l i n e s   * / 
 	 2   k e e p _ c o u n t   f i x e d   b i n   u n a l   i n i t   ( 0 ) , 
 	 	 	 	 / *   l a s t   t e x t   l i n e   i n   c o l u m n   * / 
 	 2   l a s t _ l i n e     f i x e d   b i n   i n i t   ( 0 ) , 
 	 	 	 	 / *   m a x   t i t l e   i n d e x   v a l u e   i n   b l o c k   * / 
 	 2   m x _ t t l _ n d x   f i x e d   b i n   i n i t   ( 0 ) , 
 	 	 	 	 / *   b l o c k   n a m e ,   i f   a n y   * / 
 	 2   n a m e 	       c h a r   ( 3 2 )   v a r   i n i t   ( " " ) , 
 	 2   n o f i l l _ c o u n t 	 	 / *   t o   c o u n t   n o f i l l   l i n e s   * / 
 	 	       f i x e d   b i n   i n i t   ( 0 ) , 
 	 2   p a r m s _ p t r     p t r   i n i t   ( n u l l ) ,   / *   p o i n t e r   t o   s u s p e n d e d   p a r m s   * / 
 	 	 	 	 / *   i n t e r - u n i t   r e f e r e n c e   * / 
 	 2   r e f e r 	       f i x e d   b i n   i n i t   ( 0 ) , 
 	 2   r e f e r _ i n d e x 	 	 / *   O B S O L E T E   * / 
 	 	       f i x e d   b i n   i n i t   ( 0 ) , 
 	 2   s p l i t 	 	 	 / *   s p l i t   p o i n t   f o r   b a l a n c i n g   * / 
 	 	       f i x e d   b i n   i n i t   ( 0 ) , 
 	 2   t r l _ w s 	 	 	 / *   t r a i l i n g   W S   * / 
 	 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) , 
 	 2   u s e d 	 	 	 / *   s p a c e   u s e d   b y   a   b l o c k   * / 
 	 	       f i x e d   b i n   ( 3 1 )   i n i t   ( 0 ) ; 
 	 	 	 	 / *   i n i t i a l   s y m b o l   t r e e   s t r u c t u r e   * / 
         d c l   1   i n i t _ t r e e _ v a r 	 	 / *   d i m e n s i o n   M U S T   =   M A X _ T R E E _ A R E A _ C T   * / 
 	 	       ( 8 0 )   a l i g n e d   s t a t i c   o p t i o n s   ( c o n s t a n t ) , 
 	 	 	 	 / *   t y p e   f l a g s   * / 
 	 2   f l a g s 	       b i t   ( 9 )   a l i g n e d   i n i t 
 	 	 	 	 / * * / 
 	 	       ( " 0 0 1 0 0 1 0 0 0 " b , 	 / *   A l i g n M o d e   -   s t r i n g   f u n c t i o n   * / 
 	 	       " 1 0 0 0 1 0 0 0 1 " b , 	 / *   A r g C o u n t   -   s t a c k   n u m e r i c   * / 
 	 	       " 0 0 1 0 0 0 0 0 1 " b , 	 / *   A r g s   -   s t a c k   s t r i n g   * / 
 	 	       " 0 0 0 1 0 1 0 0 0 " b , 	 / *   A r t M o d e   -   f l a g   f u n c t i o n * / 
 	 	       " 1 0 0 0 0 1 0 0 0 " b , 	 / *   B l o c k I n d e x   -   b i n a r y   f u n c t i o n   * / 
 	 	       " 0 0 1 0 0 1 0 0 0 " b , 	 / *   B l o c k N a m e   -   s t r i n g   f u n c t i o n   * / 
 	 	       " 0 0 1 0 0 1 0 0 0 " b , 	 / *   C a l l i n g F i l e N a m e   -   s t r i n g   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 1 0 0 0 " b , 	 / *   C a l l i n g L i n e N o   -   b i n a r y   f u n c t i o n   * / 
 	 	       " 0 0 1 0 0 0 0 0 0 " b , 	 / *   C h a n g e B a r   -   s t r i n g   * / 
 	 	       " 1 0 0 0 0 0 0 0 0 " b , 	 / *   C o m m a n d A r g C o u n t   -   b i n a r y   * / 
 	 	       " 0 0 1 0 0 0 0 0 0 " b , 	 / *   D a t e   -   s t r i n g   * / 
 	 	       " 0 0 1 0 0 0 0 0 0 " b , 	 / *   D e v i c e   -   s t r i n g   * / 
 	 	       " 0 0 1 0 0 1 0 0 0 " b , 	 / *   D e v i c e C l a s s   -   s t r i n g   f u n c t i o n   * / 
 	 	       " 0 0 1 0 0 1 0 0 0 " b , 	 / *   D e v i c e N a m e   -   s t r i n g   f u n c t i o n   * / 
 	 	       " 0 0 1 0 0 1 0 0 0 " b , 	 / *   D o t A d d L e t t e r   -   s t r i n g   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 0 0 0 0 " b , 	 / *   E q c n t   -   b i n a r y   * / 
 	 	       " 0 0 0 1 0 1 0 0 0 " b , 	 / *   E q M o d e   -   f l a g   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 0 1 0 0 " b , 	 / *   E x t r a M a r g i n   -   h o r i z   n u m e r i c   * / 
 	 	       " 0 0 1 0 0 0 0 0 0 " b , 	 / *   F i l e N a m e   -   s t r i n g   * / 
 	 	       " 0 0 0 1 0 1 0 0 0 " b , 	 / *   F i l l M o d e   -   f l a g   f u n c t i o n   * / 
 	 	       " 0 0 0 1 0 0 0 0 0 " b , 	 / *   F i r s t P a s s   -   f l a g   * / 
 	 	       " 0 0 1 0 0 1 0 0 0 " b , 	 / *   F o n t N a m e   -   s t r i n g   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 0 0 0 0 " b , 	 / *   F o o t c n t   -   b i n a r y   * / 
 	 	       " 0 0 0 1 0 0 0 0 0 " b , 	 / *   F o o t n o t e M o d e   -   f l a g   * / 
 	 	       " 0 0 1 0 0 0 0 0 0 " b , 	 / *   F o o t R e s e t   -   s t r i n g   * / 
 	 	       " 0 0 1 0 0 0 0 0 0 " b , 	 / *   F r o m   -   s t r i n g   * / 
 	 	       " 0 0 0 1 0 1 0 0 0 " b , 	 / *   F r o n t P a g e   -   f l a g   f u n c t i o n   * / 
 	 	       " 0 0 0 1 0 0 0 0 0 " b , 	 / *   G a l l e y   -   f l a g   * / 
 	 	       " 1 0 0 0 0 1 0 1 0 " b , 	 / *   H e a d S p a c e   -   v e r t   n u m e r i c   f u n c t i o n   * / 
 	 	       " 0 0 0 1 0 0 0 0 0 " b , 	 / *   H y p h e n a t i n g   -   f l a g   * / 
 	 	       " 1 0 0 0 0 1 1 0 0 " b , 	 / *   I n d e n t   -   h o r i z   n u m   f c n   * / 
 	 	       " 1 0 0 0 0 1 1 0 0 " b , 	 / *   I n d e n t R i g h t   -   h o r i z   n u m   f c n   * / 
 	 	       " 0 0 1 0 0 0 0 0 0 " b , 	 / *   I n p u t D i r N a m e   -   s t r i n g   * / 
 	 	       " 0 0 1 0 0 0 0 0 0 " b , 	 / *   I n p u t F i l e N a m e   -   s t r i n g   * / 
 	 	       " 1 0 0 0 0 1 0 0 0 " b , 	 / *   I n p u t L i n e n o   -   b i n a r y   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 0 0 0 0 " b , 	 / *   I n s e r t I n d e x   -   b i n a r y   * / 
 	 	       " 0 0 0 1 0 1 0 0 0 " b , 	 / *   K e e p M o d e   -   f l a g   f u n c t i o n   * / 
 	 	       " 0 0 0 1 0 0 0 0 0 " b , 	 / *   L i n e N u m b e r O p t   -   f l a g   * / 
 	 	       " 0 0 1 0 0 1 0 0 0 " b , 	 / *   L i n e I n p u t   -   s t r i n g   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 1 0 1 0 " b , 	 / *   L i n e s L e f t   -   v e r t   n u m e r i c   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 1 0 1 0 " b , 	 / *   L i n e S p a c e   -   v e r t   n u m e r i c   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 1 1 0 0 " b , 	 / *   M e a s u r e   -   h o r i z   n u m e r i c   f u n c t i o n   * / 
 	 	       " 0 0 1 0 0 1 0 0 0 " b , 	 / *   N e x t P a g e N o   -   s t r i n g   f u n c t i o n   * / 
 	 	       " 0 0 0 1 0 0 0 0 0 " b , 	 / *   O u t p u t F i l e O p t   -   f l a g   * / 
 	 	       " 0 0 0 1 0 0 0 0 0 " b , 	 / *   P a g e B l o c k   -   f l a g   * / 
 	 	       " 1 0 0 0 0 1 0 0 0 " b , 	 / *   P a g e C o u n t   -   b i n a r y   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 1 0 1 0 " b , 	 / *   P a g e L e n g t h   -   v e r t   n u m   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 1 0 1 0 " b , 	 / *   P a g e L i n e   -   v e r t   n u m   f u n c t i o n   * / 
 	 	       " 0 0 1 0 0 1 0 0 0 " b , 	 / *   P a g e N o   -   s t r i n g   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 0 0 0 0 " b , 	 / *   P a g e S p a c e   -   b i n a r y   * / 
 	 	       " 1 0 0 0 0 0 1 0 0 " b , 	 / *   P a g e W i d t h   -   h o r i z   n u m e r i c   * / 
 	 	       " 0 0 1 0 0 0 0 0 0 " b , 	 / *   P a r a m e t e r   -   s t r i n g   * / 
 	 	       " 0 0 0 1 0 0 0 0 0 " b , 	 / *   P a r a m P r e s e n t   -   f l a g   * / 
 	 	       " 1 0 0 0 0 0 0 0 0 " b , 	 / *   P a s s   -   b i n a r y   * / 
 	 	       " 1 0 0 0 0 0 0 0 0 " b , 	 / *   P i c t u r e C o u n t   -   b i n a r y   * / 
 	 	       " 1 0 0 0 1 1 0 0 0 " b , 	 / *   P o i n t S i z e   -   n u m   f u n c t i o n   * / 
 	 	       " 0 0 0 1 0 0 0 0 0 " b , 	 / *   P r i n t   -   f l a g   * / 
 	 	       " 0 0 0 1 0 0 0 0 0 " b , 	 / *   S t o p O p t   -   f l a g   * / 
 	 	       " 0 0 1 0 0 1 0 0 0 " b , 	 / *   S y m b o l D e l i m i t e r   -   s t r i n g   f u n c t i o n   * / 
 	 	       " 0 0 0 1 0 0 0 0 0 " b , 	 / *   T a b l e M o d e   -   f l a g   * / 
 	 	       " 1 0 0 0 0 1 0 1 0 " b , 	 / *   T e x t D e p t h   -   v e r t   n u m   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 1 1 0 0 " b , 	 / *   T e x t W i d t h   -   h o r i z   n u m   f u n c t i o n   * / 
 	 	       " 0 0 1 0 0 0 0 0 0 " b , 	 / *   T i m e   -   s t r i n g   * / 
 	 	       " 0 0 1 0 0 1 0 0 0 " b , 	 / *   T i t l e D e l i m i t e r   -   s t r i n g   f u n c t i o n   * / 
 	 	       " 0 0 1 0 0 0 0 0 0 " b , 	 / *   T o   -   s t r i n g   * / 
 	 	       " 0 0 1 0 0 1 0 0 0 " b , 	 / *   T r T a b l e   -   s t r i n g   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 1 1 0 0 " b , 	 / *   U n d e n t   -   h o r i z   n u m   f c n   * / 
 	 	       " 1 0 0 0 0 1 1 0 0 " b , 	 / *   U n d e n t R i g h t   -   h o r i z   n u m   f c n   * / 
 	 	       " 0 0 1 0 0 1 0 0 0 " b , 	 / *   U s e r I n p u t   -   s t r i n g   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 1 0 1 0 " b , 	 / *   V M a r g B o t t o m   -   v e r t   b i n   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 1 0 1 0 " b , 	 / *   V M a r g F o o t e r   -   v e r t   b i n   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 1 0 1 0 " b , 	 / *   V M a r g H e a d e r   -   v e r t   b i n   f u n c t i o n   * / 
 	 	       " 1 0 0 0 0 1 0 1 0 " b , 	 / *   V M a r g T o p   -   v e r t   n u m e r i c   f u n c t i o n   * / 
 	 	       " 0 0 0 1 0 0 0 0 0 " b , 	 / *   W a i t O p t   -   f l a g   * / 
 	 	       " 1 0 0 0 0 0 0 0 0 " b , 	 / *   W i d o w   -   b i n a r y   * / 
 	 	       " 1 0 0 0 0 0 0 0 0 " b , 	 / *   W i d o w F o o t   -   b i n a r y   * / 
 	 	       ( 4 )   ( 9 ) " 0 " b ) , 	 / * * / 
 	 	 	 	 / *   n u m e r i c   d i s p l a y   m o d e   * / 
 	 2   m o d e 	       f i x e d   b i n   i n i t   ( ( 8 0 )   0 ) , 
 	 ( 
 	 2   f l a g _ l o c , 	 	 / *   f l a g   v a l u e   p o i n t e r   * / 
 	 2   n u m _ l o c , 	 	 / *   n u m   v a l u e   p o i n t e r   * / 
 	 2   i n c r _ l o c , 	 	 / *   n u m   i n c r e m e n t   p o i n t e r   * / 
 	 2   s t r _ l o c 	 	 	 / *   s t r   v a l u e   p o i n t e r   * / 
 	 ) 	       p t r   i n i t   ( ( 8 0 )   n u l l ) ; 
 
 o n e : 
     e n t r y ; 	 	 	 	 / *   s t e p   1   -   e n o u g h   t o   p r o c e s s   a r g s   * / 
         i f   d b _ s w 
         t h e n   c a l l   i o a _   ( " i n i t _ $ o n e : " ) ; 	 / * * / 
 	 	 	 	 / *   p r e - s e t   a l l   p o i n t e r s   * / 
         c o n s t . c o l h d r p t r ,   c o n s t . c a l l _ s t k _ p t r ,   c o n s t . c t l _ p t r ,   c o n s t . e r r b l k _ p t r , 
                   c o n s t . i n i t _ p a g e _ p a r m s _ p t r ,   c o n s t . d e f a u l t _ p a r m s _ p t r , 
                   c o n s t . g l o b a l _ a r e a _ p t r ,   c o n s t . i n s e r t _ d a t a _ p t r ,   c o n s t . l o c a l _ a r e a _ p t r , 
                   c o n s t . o p t i o n _ p t r ,   c o n s t . p a g e _ p t r ,   c o n s t . p a g e _ h e a d e r _ p t r , 
                   c o n s t . p a g e _ p a r m s _ p t r ,   c o n s t . s a v e _ s h a r e d _ p t r ,   c o n s t . s h a r e d _ p t r , 
                   c o n s t . t e x t _ h e a d e r _ p t r ,   c o n s t . t e x t _ e n t r y _ p t r ,   c o n s t . f n t t b l d a t a _ p t r , 
                   c o n s t . t e x t _ p a r m s _ p t r ,   c o n s t . t r e e _ p t r ,   c o n s t . l o c t b l _ p t r , 
                   c o n s t . o u t p r o c _ p t r   =   n u l l   ( ) ; 
 
 / *   i n i t i a l i z e   t h e   c o n s t a n t s   * / 
         c o n s t . b u i l t i n _ c o u n t   =   8 0 ; 	 	 / *   7 6   +   4   s p a r e s   * / 
 	 	 	 	 / *   d a t e   o f   i n v o c a t i o n   * / 
         c a l l   d a t e _ t i m e _   ( c l o c k _   ( ) ,   d a t e _ t i m e _ s t r i n g ) ; 
         c o n s t . d a t e _ v a l u e   =   b e f o r e   ( d a t e _ t i m e _ s t r i n g ,   "     " ) ; 
         c o n s t . n u l l _ s t r   =   " " ; 	 	 / *   a n   e m p t y   s t r i n g   * / 
         c o n s t . t i m e _ v a l u e   =   a f t e r   ( d a t e _ t i m e _ s t r i n g ,   "     " ) ; 
 	 	 	 	 / *   g l o b a l   s t o r a g e   a r e a   * / 
         c a l l   t r a n s l a t o r _ t e m p _ $ g e t _ s e g m e n t   ( " c o m p o s e " ,   c o n s t . g l o b a l _ a r e a _ p t r ,   e r c d ) ; 
         i f   e r c d   ^ =   0 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( e r c d ,   " c o m p o s e " ,   " D e f i n i n g   a   g l o b a l   s t o r a g e   a r e a . " ) ; 
                 s i g n a l   c l e a n u p ; 
                 r e t u r n ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   c o m m a n d   o p t i o n s   s t r u c t u r e   * / 
         c o n s t . o p t i o n _ p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( o p t i o n ) ) ; 
         u n s p e c   ( o p t i o n )   =   " 0 " b ; 	 	 / *   i n i t i a l i z e   t h e m   * / 
         o p t i o n . v e r s i o n   =   o p t i o n _ v e r s i o n ; 
         o p t i o n . c b a r . l e v e l ,   o p t i o n . p g c _ s e l e c t   =   "   " ; 
         o p t i o n . c b a r . p l a c e   =   " o " ; 
         o p t i o n . c b a r . s p a c e   =   1 4 4 0 0 ; 
         o p t i o n . c b a r . l e f t . m a r k ,   o p t i o n . c b a r . r i g h t . m a r k   =   m o d m a r k ; 
         o p t i o n . c b a r . d e l . m a r k   =   d e l m a r k ; 
         o p t i o n . c b a r . l e f t . s e p ,   o p t i o n . c b a r . r i g h t . s e p ,   o p t i o n . c b a r . d e l . s e p   =   7 2 0 0 ; 
         o p t i o n . c b a r . l e f t . w i d t h ,   o p t i o n . c b a r . r i g h t . w i d t h ,   o p t i o n . c b a r . d e l . w i d t h   = 
                   7 2 0 0 ; 
         o p t i o n . d b _ b e f o r e _ l i n e ,   o p t i o n . d b _ l i n e _ e n d ,   o p t i o n . l i n e _ 2   =   5 0 0 0 0 0 ; 
         o p t i o n . d b _ f i l e   =   "   " ; 
         o p t i o n . h y p h _ s i z e   =   3 ; 
         o p t i o n . l i n e s p a c e   =   1 2 0 0 0 ; 
         o p t i o n . p g l s t . f r o m   =   " 1 " ; 
         o p t i o n . p a s s e s   =   1 ; 	 	 / * * / 
 	 	 	 	 / *   s h a r e d   d y n a m i c   d a t a   * / 
         c o n s t . s h a r e d _ p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( s h a r e d ) ) ; 
         s h a r e d   =   i n i t i a l _ s h a r e d ; 	 	 / *   p r e s e t   s o   c l e a n u p   d o e s n ' t   b a r f   * / 
         s h a r e d . v e r s i o n   =   s h a r e d _ v e r s i o n ; 	 / *   v e r s i o n   o f   s h a r e d   s t r u c t u r e   * / 
 
         i f   d b _ s w 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( i n i t _ $ o n e ) " ) ; 
 
         r e t u r n ; 	 	 	 / *   e n d   o f   s t e p   o n e   * / 
 
 t w o : 
     e n t r y ; 
         d e b u g _ s w   =   s h a r e d . b u g _ m o d e   &   d b _ s w ; 
 
 
         i f   d e b u g _ s w 
         t h e n   c a l l   i o a _   ( " i n i t _ $ t w o : " ) ; 	 / *   c o n t i n u e   g l o b a l   a l l o c a t i o n s   * / 
 	 	 	 	 / *   c o n t r o l   l i n e   * / 
         c o n s t . c t l _ p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( c t l ) ) ; 
 	 	 	 	 / *   a n d   b u f f e r   * / 
         c t l . p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( c t l ) ) ; 
 	 	 	 	 / *   d e f a u l t   p a g e   f o r m a t t i n g   p a r m s   * / 
         c o n s t . i n i t _ p a g e _ p a r m s _ p t r   = 
                   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( i n i t _ p a g e _ p a r m s ) ) ; 
 	 	 	 	 / *   d e f a u l t   t e x t   f o r m a t t i n g   p a r m s   * / 
         c o n s t . d e f a u l t _ p a r m s _ p t r   = 
                   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( d e f a u l t _ p a r m s ) ) ; 
         d e f a u l t _ p a r m s   =   i n i t _ d e f a u l t _ p a r m s ;   / * * / 
 	 	 	 	 / *   f o o t n o t e   f o r m a t t i n g   p a r m s   * / 
         c o n s t . f o o t n o t e _ p a r m s _ p t r   = 
                   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( f o o t n o t e _ p a r m s ) ) ; 
         f o o t n o t e _ p a r m s   =   i n i t _ d e f a u l t _ p a r m s ; / * * / 
 	 	 	 	 / *   i n s e r t   f i l e   d a t a   s t r u c t u r e   * / 
         c o n s t . i n s e r t _ d a t a _ p t r   = 
                   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( i n s e r t _ d a t a ) ) ; 
         i n s e r t _ d a t a . c o u n t ,   i n s e r t _ d a t a . i n d e x ,   i n s e r t _ d a t a . r e f _ a r e a . c o u n t   =   0 ; 
 	 	 	 	 / *   i n s e r t   c a l l   s t a c k   * / 
         c o n s t . c a l l _ s t k _ p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( c a l l _ s t a c k ) ) ; 
 	 	 	 	 / *   c u r r e n t   p a g e   l a y o u t   p a r m s   * / 
         c o n s t . p a g e _ p a r m s _ p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( p a g e _ p a r m s ) ) ; 
         s h a r e d . p a r a m e t e r   =   o p t i o n . p a r a m e t e r ; / *   c o p y   o p t i o n   d a t a   * / 
         s h a r e d . h y p h _ m o d e   =   o p t i o n . h y p h _ o p t ;   / * * / 
 	 	 	 	 / *   c u r r e n t   f o r m a t t i n g   p a r m s   * / 
         c o n s t . t e x t _ p a r m s _ p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( t e x t _ p a r m s ) ) ; 
         t e x t _ p a r m s   =   i n i t _ d e f a u l t _ p a r m s ; 	 / * * / 
 	 	 	 	 / *   p r o g r a m   v a r i a b l e   s y m b o l   t r e e   * / 
         c o n s t . t r e e _ p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( t r e e ) ) ; 
         t r e e . f l a g _ p t r ,   t r e e . i n c r _ p t r ,   t r e e . n a m e _ p t r ,   t r e e . n u m _ p t r ,   t r e e . v a r _ p t r   = 
                   n u l l ; 
 
         t r e e . c o u n t   =   1 ; 	 	 	 / *   s t o r a g e   f o r   b u i l t i n s   * / 
         t r e e . f l a g _ p t r   ( 1 )   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( t r e e _ f l a g s ) ) ; 
         t r e e . i n c r _ p t r   ( 1 )   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( t r e e _ i n c r s ) ) ; 
         t r e e . n a m e _ p t r   ( 1 )   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( t r e e _ n a m e s ) ) ; 
         t r e e . n u m _ p t r   ( 1 )   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( t r e e _ n u m s ) ) ; 
         t r e e . v a r _ p t r   ( 1 )   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( t r e e _ v a r ) ) ; 
 	 	 	 	 / *   o u t p u t   p a g e   s t r u c t u r e   * / 
         c o n s t . p a g e _ p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( p a g e ) ) ; 
         p a g e . v e r s i o n   =   p a g e _ v e r s i o n ; 	 / *   a n d   i n i t i a l i z e   * / 
 	 	 	 	 / *   e m p t y   c o l u m n   h e a d e r   * / 
         c o n s t . c o l h d r p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( c o l h d r ) ) ; 
 	 	 	 	 / *   e m p t y   t e x t   s t r u c t u r e s   * / 
         c o n s t . t e x t _ e n t r y _ p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( t e x t _ e n t r y ) ) ; 
         c o n s t . t e x t _ h e a d e r _ p t r   = 
                   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( t e x t _ h e a d e r ) ) ; 
         t e x t _ h e a d e r   =   i n i t i a l _ t e x t _ h e a d e r ; 
         c o n s t . p a g e _ h e a d e r _ p t r   = 
                   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( p a g e _ h e a d e r ) ) ; 
         c o n s t . f n t t b l d a t a _ p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( f n t t b l d a t a ) ) ; 
         f n t t b l d a t a . n d x ,   f n t t b l d a t a . c o u n t   =   0 ; 
         f n t t b l d a t a . m e d s e l _ p t r   =   n u l l ; 
 
         i f   d e b u g _ s w 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( i n i t _ $ t w o ) " ) ; 
 
         r e t u r n ; 	 	 	 / *   e n d   o f   s t e p   t w o   * / 
 
 t h r e e : 
     e n t r y ; 
         d e b u g _ s w   =   s h a r e d . b u g _ m o d e   &   d b _ s w ; 
 
         i f   d e b u g _ s w 
         t h e n   c a l l   i o a _   ( " i n i t _ $ t h r e e : " ) ; 	 / * * / 
 	 	 	 	 / *   i n i t i a l i z e   v a r i a b l e   t r e e   * / 
         t r e e . c o u n t ,   t r e e . a r e a n d x   =   1 ; 	 / *   b u i l t i n s   g o   i n   t h e   f i r s t   a r e a   * / 
         t r e e . e n t r y _ c t   ( * )   =   0 ; 
         t r e e . e n t r y _ c t   ( 1 )   =   M A X _ T R E E _ A R E A _ C T ; 
         t r e e _ n a m e s _ p t r   =   t r e e . n a m e _ p t r   ( 1 ) ; 
         s t r i n g   ( t r e e _ n a m e s )   =   s t r i n g   ( b u i l t i n _ n a m e s ) ; 
         t r e e _ v a r _ p t r   =   t r e e . v a r _ p t r   ( 1 ) ; 
         t r e e _ v a r   =   i n i t _ t r e e _ v a r ; 	 	 / * * / 
 	 	 	 	 / *   A l i g n M o d e   * / 
         t r e e _ v a r . n u m _ l o c   ( 1 )   =   a d d r   ( t r e e . a l i g n _ m o d e ) ; 
 	 	 	 	 / *   A r g C o u n t   * / 
         s t k b o x _ p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( s t a c k _ b o x ) ) ; 
         s t a c k _ b o x   =   i n i t _ s t a c k _ b o x ; 
         t r e e _ v a r . n u m _ l o c   ( 2 ) ,   t r e e _ v a r . s t r _ l o c   ( 2 )   =   s t k b o x _ p t r ; 
 	 	 	 	 / *   A r g s   * / 
         s t k b o x _ p t r   =   a l l o c a t e   ( c o n s t . g l o b a l _ a r e a _ p t r ,   s i z e   ( s t a c k _ b o x ) ) ; 
         s t a c k _ b o x   =   i n i t _ s t a c k _ b o x ; 
         t r e e _ v a r . n u m _ l o c   ( 3 ) ,   t r e e _ v a r . s t r _ l o c   ( 3 )   =   s t k b o x _ p t r ; 
 	 	 	 	 / *   A r t M o d e   * / 
         t r e e _ v a r . n u m _ l o c   ( 4 )   =   a d d r   ( t r e e . a r t _ m o d e ) ; 
 	 	 	 	 / *   B l o c k I n d e x   * / 
         t r e e _ v a r . n u m _ l o c   ( 5 )   =   a d d r   ( t r e e . b l o c k _ i n d e x ) ; 
 	 	 	 	 / *   B l o c k N a m e   * / 
         t r e e _ v a r . n u m _ l o c   ( 6 )   =   a d d r   ( t r e e . b l o c k _ n a m e ) ; 
 	 	 	 	 / *   C a l l i n g F i l e N a m e   * / 
         t r e e _ v a r . n u m _ l o c   ( 7 )   =   a d d r   ( t r e e . c a l l i n g _ f i l e _ n a m e ) ; 
 	 	 	 	 / *   C a l l i n g L i n e N o   * / 
         t r e e _ v a r . n u m _ l o c   ( 8 )   =   a d d r   ( t r e e . c a l l e r s _ l i n e n o ) ; 
 	 	 	 	 / *   C h a n g e B a r   * / 
         t r e e _ v a r . s t r _ l o c   ( 9 )   =   a d d r   ( s h a r e d . c b a r _ t y p e ) ; 
 	 	 	 	 / *   C o m m a n d A r g C o u n t   * / 
         t r e e _ v a r . n u m _ l o c   ( 1 0 )   =   a d d r   ( o p t i o n . a r g _ c o u n t ) ; 
 	 	 	 	 / *   D a t e   * / 
         t r e e _ v a r . s t r _ l o c   ( 1 1 )   =   a d d r   ( c o n s t . d a t e _ v a l u e ) ; 
 	 	 	 	 / *   D e v i c e   * / 
         t r e e _ v a r . s t r _ l o c   ( 1 2 )   =   a d d r   ( o p t i o n . d e v i c e ) ; 
 	 	 	 	 / *   D e v i c e C l a s s   * / 
         t r e e _ v a r . n u m _ l o c   ( 1 3 )   =   a d d r   ( t r e e . d e v c l a s s ) ; 
 	 	 	 	 / *   D e v i c e N a m e   * / 
         t r e e _ v a r . n u m _ l o c   ( 1 4 )   =   a d d r   ( t r e e . d e v n a m e ) ; 
 	 	 	 	 / *   D o t A d d L e t t e r   -   f u n c   * / 
         t r e e _ v a r . n u m _ l o c   ( 1 5 )   =   a d d r   ( t r e e . d o t _ a d d l t r ) ; 
 	 	 	 	 / *   D o t A d d L e t t e r   -   v a l   * / 
         t r e e _ v a r . s t r _ l o c   ( 1 5 )   =   a d d r   ( s h a r e d . d o t _ a d d _ l e t t e r ) ; 
 	 	 	 	 / *   E q c n t   * / 
         t r e e _ v a r . n u m _ l o c   ( 1 6 )   =   a d d r   ( s h a r e d . e q n _ r e f c t ) ; 
 	 	 	 	 / *   E q M o d e   * / 
         t r e e _ v a r . n u m _ l o c   ( 1 7 )   =   a d d r   ( t r e e . e q u a t i o n _ m o d e ) ; 
 	 	 	 	 / *   E x t r a M a r g i n   * / 
         t r e e _ v a r . n u m _ l o c   ( 1 8 )   =   a d d r   ( o p t i o n . e x t r a _ i n d e n t ) ; 
 	 	 	 	 / *   F i l e N a m e   * / 
         t r e e _ v a r . s t r _ l o c   ( 1 9 )   =   a d d r   ( s h a r e d . s o u r c e _ f i l e n a m e ) ; 
 	 	 	 	 / *   F i l l M o d e   * / 
         t r e e _ v a r . n u m _ l o c   ( 2 0 )   =   a d d r   ( t r e e . f i l l _ m o d e ) ; 
 	 	 	 	 / *   F i r s t P a s s   * / 
         t r e e _ v a r . f l a g _ l o c   ( 2 1 )   =   a d d r   ( s h a r e d . f i r s t p a s s ) ; 
 	 	 	 	 / *   F o n t N a m e   * / 
         t r e e _ v a r . n u m _ l o c   ( 2 2 )   =   a d d r   ( t r e e . f o n t n a m e ) ; 
 	 	 	 	 / *   F o o t c n t   * / 
         t r e e _ v a r . n u m _ l o c   ( 2 3 )   =   a d d r   ( s h a r e d . f t n r e f c t ) ; 
 	 	 	 	 / *   F o o t n o t e M o d e   * / 
         t r e e _ v a r . f l a g _ l o c   ( 2 4 )   =   a d d r   ( s h a r e d . f t n _ m o d e ) ; 
 	 	 	 	 / *   F o o t R e s e t   * / 
         t r e e _ v a r . s t r _ l o c   ( 2 5 )   =   a d d r   ( s h a r e d . f t n _ r e s e t ) ; 
 	 	 	 	 / *   F r o m   * / 
         t r e e _ v a r . s t r _ l o c   ( 2 6 )   =   a d d r   ( o p t i o n . p g l s t   ( 0 ) . f r o m ) ; 
 	 	 	 	 / *   F r o n t P a g e   * / 
         t r e e _ v a r . n u m _ l o c   ( 2 7 )   =   a d d r   ( t r e e . f r o n t p a g e ) ; 
 	 	 	 	 / *   G a l l e y   * / 
         t r e e _ v a r . f l a g _ l o c   ( 2 8 )   =   a d d r   ( o p t i o n . g a l l e y _ o p t ) ; 
 	 	 	 	 / *   H e a d S p a c e   * / 
         t r e e _ v a r . n u m _ l o c   ( 2 9 )   =   a d d r   ( t r e e . h e a d _ s p a c e ) ; 
 	 	 	 	 / *   H y p h e n a t i n g   * / 
         t r e e _ v a r . f l a g _ l o c   ( 3 0 )   =   a d d r   ( s h a r e d . h y p h _ m o d e ) ; 
 	 	 	 	 / *   I n d e n t   * / 
         t r e e _ v a r . n u m _ l o c   ( 3 1 )   =   a d d r   ( t r e e . l e f t _ i n d e n t ) ; 
 	 	 	 	 / *   I n d e n t R i g h t   * / 
         t r e e _ v a r . n u m _ l o c   ( 3 2 )   =   a d d r   ( t r e e . r i g h t _ i n d e n t ) ; 
 	 	 	 	 / *   I n p u t D i r N a m e   * / 
         t r e e _ v a r . s t r _ l o c   ( 3 3 )   =   a d d r   ( s h a r e d . i n p u t _ d i r n a m e ) ; 
 	 	 	 	 / *   I n p u t F i l e N a m e   * / 
         t r e e _ v a r . s t r _ l o c   ( 3 4 )   =   a d d r   ( s h a r e d . i n p u t _ f i l e n a m e ) ; 
 	 	 	 	 / *   I n p u t L i n e n o   * / 
         t r e e _ v a r . n u m _ l o c   ( 3 5 )   =   a d d r   ( t r e e . t e x t _ l i n e n o ) ; 
 	 	 	 	 / *   I n s e r t I n d e x   * / 
         t r e e _ v a r . n u m _ l o c   ( 3 6 )   =   a d d r   ( i n s e r t _ d a t a . i n d e x ) ; 
 	 	 	 	 / *   K e e p M o d e   * / 
         t r e e _ v a r . n u m _ l o c   ( 3 7 )   =   a d d r   ( t r e e . k e e p _ m o d e ) ; 
 	 	 	 	 / *   L i n e N u m b e r O p t   * / 
         t r e e _ v a r . f l a g _ l o c   ( 3 8 )   =   a d d r   ( o p t i o n . n u m b e r _ o p t ) ; 
 	 	 	 	 / *   L i n e I n p u t   * / 
         t r e e _ v a r . n u m _ l o c   ( 3 9 )   =   a d d r   ( t r e e . l i n e _ i n p u t ) ; 
 	 	 	 	 / *   L i n e s L e f t   * / 
         t r e e _ v a r . n u m _ l o c   ( 4 0 )   =   a d d r   ( t r e e . l i n e s l e f t ) ; 
 	 	 	 	 / *   L i n e S p a c e   * / 
         t r e e _ v a r . n u m _ l o c   ( 4 1 )   =   a d d r   ( t r e e . l i n e s p a c e ) ; 
 	 	 	 	 / *   M e a s u r e   * / 
         t r e e _ v a r . n u m _ l o c   ( 4 2 )   =   a d d r   ( t r e e . m e a s u r e _ b i f ) ; 
 	 	 	 	 / *   N e x t P a g e N o   * / 
         t r e e _ v a r . n u m _ l o c   ( 4 3 )   =   a d d r   ( t r e e . n e x t _ p a g e n o ) ; 
 	 	 	 	 / *   O u t p u t F i l e O p t   * / 
         t r e e _ v a r . f l a g _ l o c   ( 4 4 )   =   a d d r   ( o p t i o n . o u t p u t _ f i l e _ o p t ) ; 
 	 	 	 	 / *   P a g e B l o c k   * / 
         t r e e _ v a r . f l a g _ l o c   ( 4 5 )   =   a d d r   ( s h a r e d . p a g e b l o c k ) ; 
 	 	 	 	 / *   P a g e C o u n t   * / 
         t r e e _ v a r . n u m _ l o c   ( 4 6 )   =   a d d r   ( t r e e . p a g e c o u n t ) ; 
 	 	 	 	 / *   P a g e L e n g t h   * / 
         t r e e _ v a r . n u m _ l o c   ( 4 7 )   =   a d d r   ( t r e e . p a g e _ l e n g t h ) ; 
 	 	 	 	 / *   P a g e L i n e   * / 
         t r e e _ v a r . n u m _ l o c   ( 4 8 )   =   a d d r   ( t r e e . p a g e l i n e s ) ; 
 	 	 	 	 / *   P a g e N o   * / 
         t r e e _ v a r . n u m _ l o c   ( 4 9 )   =   a d d r   ( t r e e . p a g e n o ) ; 
         t r e e _ v a r . n u m _ l o c   ( 5 0 )   =   n u l l ; 	 / *   P a g e S p a c e   * / 
 	 	 	 	 / *   P a g e W i d t h   * / 
         t r e e _ v a r . n u m _ l o c   ( 5 1 )   =   a d d r   ( p a g e _ p a r m s . m e a s u r e ) ; 
 	 	 	 	 / *   P a r a m e t e r   * / 
         t r e e _ v a r . s t r _ l o c   ( 5 2 )   =   a d d r   ( s h a r e d . p a r a m e t e r ) ; 
 	 	 	 	 / *   P a r a m P r e s e n t   * / 
         t r e e _ v a r . f l a g _ l o c   ( 5 3 )   =   a d d r   ( s h a r e d . p a r a m _ p r e s ) ; 
 	 	 	 	 / *   P a s s   * / 
         t r e e _ v a r . n u m _ l o c   ( 5 4 )   =   a d d r   ( s h a r e d . p a s s _ c o u n t e r ) ; 
 	 	 	 	 / *   P i c t u r e C o u n t   * / 
         t r e e _ v a r . n u m _ l o c   ( 5 5 )   =   a d d r   ( s h a r e d . p i c t u r e . s p a c e ) ; 
 	 	 	 	 / *   P o i n t S i z e   * / 
         t r e e _ v a r . n u m _ l o c   ( 5 6 )   =   a d d r   ( t r e e . p o i n t s i z e ) ; 
 	 	 	 	 / *   P r i n t   * / 
         t r e e _ v a r . f l a g _ l o c   ( 5 7 )   =   a d d r   ( s h a r e d . p r i n t _ f l a g ) ; 
 	 	 	 	 / *   S t o p O p t   * / 
         t r e e _ v a r . f l a g _ l o c   ( 5 8 )   =   a d d r   ( o p t i o n . s t o p _ o p t ) ; 
 	 	 	 	 / *   S y m b o l D e l i m i t e r   f u n c   * / 
         t r e e _ v a r . n u m _ l o c   ( 5 9 )   =   a d d r   ( t r e e . s y m b o l _ d e l i m i t e r ) ; 
 	 	 	 	 / *   T a b l e M o d e   * / 
         t r e e _ v a r . f l a g _ l o c   ( 6 0 )   =   a d d r   ( s h a r e d . t a b l e _ m o d e ) ; 
 	 	 	 	 / *   T e x t D e p t h   * / 
         t r e e _ v a r . n u m _ l o c   ( 6 1 )   =   a d d r   ( t r e e . t e x t _ d e p t h ) ; 
 	 	 	 	 / *   T e x t W i d t h   * / 
         t r e e _ v a r . n u m _ l o c   ( 6 2 )   =   a d d r   ( t r e e . t e x t _ w i d t h ) ; 
 	 	 	 	 / *   T i m e   * / 
         t r e e _ v a r . s t r _ l o c   ( 6 3 )   =   a d d r   ( c o n s t . t i m e _ v a l u e ) ; 
 	 	 	 	 / *   T i t l e D e l i m i t e r   f u n c   * / 
         t r e e _ v a r . n u m _ l o c   ( 6 4 )   =   a d d r   ( t r e e . t i t l e _ d e l i m i t e r ) ; 
 	 	 	 	 / *   T o   * / 
         t r e e _ v a r . s t r _ l o c   ( 6 5 )   =   a d d r   ( o p t i o n . p g l s t   ( 0 ) . t o ) ; 
 	 	 	 	 / *   T r T a b l e   * / 
         t r e e _ v a r . n u m _ l o c   ( 6 6 )   =   a d d r   ( t r e e . t r a n s ) ; 
 	 	 	 	 / *   U n d e n t   * / 
         t r e e _ v a r . n u m _ l o c   ( 6 7 )   =   a d d r   ( t r e e . l e f t _ u n d e n t ) ; 
 	 	 	 	 / *   U n d e n t R i g h t   * / 
         t r e e _ v a r . n u m _ l o c   ( 6 8 )   =   a d d r   ( t r e e . r i g h t _ u n d e n t ) ; 
 	 	 	 	 / *   U s e r I n p u t   * / 
         t r e e _ v a r . n u m _ l o c   ( 6 9 )   =   a d d r   ( t r e e . u s e r i n p u t ) ; 
 	 	 	 	 / *   V M a r g B o t t o m   * / 
         t r e e _ v a r . n u m _ l o c   ( 7 0 )   =   a d d r   ( t r e e . b o t t o m _ m a r g i n ) ; 
 	 	 	 	 / *   V M a r g F o o t e r   * / 
         t r e e _ v a r . n u m _ l o c   ( 7 1 )   =   a d d r   ( t r e e . f o o t e r _ m a r g i n ) ; 
 	 	 	 	 / *   V M a r g H e a d e r   * / 
         t r e e _ v a r . n u m _ l o c   ( 7 2 )   =   a d d r   ( t r e e . h e a d e r _ m a r g i n ) ; 
 	 	 	 	 / *   V M a r g T o p   * / 
         t r e e _ v a r . n u m _ l o c   ( 7 3 )   =   a d d r   ( t r e e . t o p _ m a r g i n ) ; 
 	 	 	 	 / *   W a i t O p t   * / 
         t r e e _ v a r . f l a g _ l o c   ( 7 4 )   =   a d d r   ( o p t i o n . w a i t _ o p t ) ; 
 	 	 	 	 / *   W i d o w   * / 
         t r e e _ v a r . n u m _ l o c   ( 7 5 )   =   a d d r   ( s h a r e d . w i d o w _ s i z e ) ; 
 	 	 	 	 / *   W i d o w F o o t   * / 
         t r e e _ v a r . n u m _ l o c   ( 7 6 )   =   a d d r   ( s h a r e d . w i d o w _ f o o t ) ; 
 	 	 	 	 / *   p a g e   f o r m a t t i n g   p a r m s   * / 
         i n i t _ p a g e _ p a r m s   =   i n i t i a l _ p a g e _ p a r m s ; 
         i f   c o m p _ d v t . p d l _ m a x   >   0 
         t h e n   i n i t _ p a g e _ p a r m s . l e n g t h   =   m i n   ( 7 9 2 0 0 0 ,   c o m p _ d v t . p d l _ m a x ) ; 
         i n i t _ p a g e _ p a r m s . i n i t _ p a g e _ d e p t h   =   c o m p _ d v t . v m t _ m i n ; 
         i n i t _ p a g e _ p a r m s . m a r g i n . t o p   =   c o m p _ d v t . d e f _ v m t ; 
         i n i t _ p a g e _ p a r m s . m a r g i n . h e a d e r   =   c o m p _ d v t . d e f _ v m h ; 
         i n i t _ p a g e _ p a r m s . m a r g i n . f o o t e r   =   c o m p _ d v t . d e f _ v m f ; 
         i n i t _ p a g e _ p a r m s . m a r g i n . b o t t o m   =   c o m p _ d v t . d e f _ v m b ; 
         i n i t _ p a g e _ p a r m s . m e a s u r e   =   m i n   ( c o m p _ d v t . p d w _ m a x ,   4 6 8 0 0 0 ) ; 
         i n i t _ p a g e _ p a r m s . n e t . e v e n ,   i n i t _ p a g e _ p a r m s . n e t . o d d   = 
                   i n i t _ p a g e _ p a r m s . l e n g t h   -   i n i t _ p a g e _ p a r m s . m a r g i n . t o p 
                   -   i n i t _ p a g e _ p a r m s . m a r g i n . h e a d e r   -   i n i t _ p a g e _ p a r m s . m a r g i n . f o o t e r 
                   -   i n i t _ p a g e _ p a r m s . m a r g i n . b o t t o m ; 
 	 	 	 	 / *   p a g e   s t r u c t u r e   * / 
         p a g e . i m a g e _ p t r ,   p a g e . c o l u m n _ p t r   ( * ) ,   p a g e . c o l _ i m a g e _ p t r   ( * )   =   n u l l   ( ) ; 
 	 	 	 	 / *   l o c a l   s t o r a g e   a r e a   * / 
         c a l l   t r a n s l a t o r _ t e m p _ $ g e t _ s e g m e n t   ( " c o m p o s e " ,   c o n s t . l o c a l _ a r e a _ p t r ,   e r c d ) ; 
         i f   e r c d   ^ =   0 
         t h e n 
             d o ; 
                 c a l l   c o m _ e r r _   ( e r c d ,   " c o m p o s e " ,   " D e f i n i n g   a   l o c a l   s t o r a g e   a r e a . " ) ; 
                 s i g n a l   c l e a n u p ; 
                 r e t u r n ; 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   c o n t i n u e   a l l o c a t i o n s   * / 
         c a l l _ s t a c k . c o u n t ,   c a l l _ s t a c k . i n d e x   =   0 ; 
 	 	 	 	 / *   c a l l   b o x   f o r   s o u r c e   f i l e   * / 
         c a l l _ s t a c k . p t r   ( 0 )   =   a l l o c a t e   ( c o n s t . l o c a l _ a r e a _ p t r ,   s i z e   ( c a l l _ b o x ) ) ; 
 	 	 	 	 / *   c o l u m n   0   s t r u c t u r e   * / 
         p a g e . c o l u m n _ p t r   ( 0 )   =   a l l o c a t e   ( c o n s t . l o c a l _ a r e a _ p t r ,   s i z e   ( c o l ) ) ; 
         c o l 0 . m a r g i n . l e f t   =   0 ; 	 	 / *   s e t   i n i t i a l   c o l u m n   p a r m s   * / 
         c o l 0 . m a r g i n . r i g h t ,   c o l 0 . p a r m s . m e a s u r e   =   4 6 8 0 0 0 ; 
         c o l 0 . h d r p t r ,   c o l 0 . f t r p t r   =   n u l l   ( ) ; 
         c o l 0 . h d r u s d ,   c o l 0 . f t r u s d   =   0 ; 
         c o l 0 . b l k p t r   ( * )   =   n u l l   ( ) ; 	 / *   m a k e   s u r e   b l o c k   p o i n t e r s   a r e   n u l l   * / 
 	 	 	 	 / *   t e x t   b l o c k   d a t a   * / 
         s h a r e d . t b l k d a t a _ p t r   =   a l l o c a t e   ( c o n s t . l o c a l _ a r e a _ p t r ,   s i z e   ( t b l k d a t a ) ) ; 
         u n s p e c   ( t b l k d a t a )   =   " 0 " b ; 
         t b l k d a t a . b l o c k . p t r ,   t b l k d a t a . l i n e _ a r e a . p t r ,   t b l k d a t a . t e x t _ a r e a . p t r   = 
                   n u l l   ( ) ; 
         t b l k d a t a . b l o c k . f r e e ,   t b l k d a t a . l i n e _ a r e a . f r e e ,   t b l k d a t a . t e x t _ a r e a . f r e e   = 
                   " 1 " b ; 
 
         i f   d e b u g _ s w 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( i n i t _ $ t h r e e ) " ) ; 
 
         r e t u r n ; 	 	 	 / *   e n d   o f   s t e p   t h r e e   * / 
 
         d c l   d b _ s w 	       b i t   ( 1 )   s t a t i c   i n i t   ( " 0 " b ) ; 
 	 	 	 	 / *   l o c a l   d e b u g   s w t i c h   * / 
 d b n : 
     e n t r y ; 
         d b _ s w   =   " 1 " b ; 
         r e t u r n ; 
 d b f : 
     e n t r y ; 
         d b _ s w   =   " 0 " b ; 
         r e t u r n ; 
 % p a g e ; 
 % i n c l u d e   c o m p _ c o l u m n ; 
 % i n c l u d e   c o m p _ D C c o d e s ; 
 % i n c l u d e   c o m p _ d v t ; 
 % i n c l u d e   c o m p _ f n t s t k ; 
 % i n c l u d e   c o m p _ f o n t ; 
 % i n c l u d e   c o m p _ f o o t n o t e s ; 
 % i n c l u d e   c o m p _ i n s e r t ; 
 % i n c l u d e   c o m p _ o p t i o n ; 
 % i n c l u d e   c o m p _ p a g e ; 
 % i n c l u d e   c o m p _ s h a r e d ; 
 % i n c l u d e   c o m p _ s t a c k _ b o x ; 
 % i n c l u d e   c o m p _ t e x t ; 
 % i n c l u d e   c o m p _ t r e e ; 
 % i n c l u d e   c o m p s t a t ; 
 % i n c l u d e   t r a n s l a t o r _ t e m p _ a l l o c ; 
 
     e n d   c o m p _ i n i t _ ; 
  
 
 
  
 	 	         c o m p _ i n s e r t _ c t l s _ . p l 1                       0 4 / 2 3 / 8 5     1 0 5 9 . 2 r e w   0 4 / 2 3 / 8 5     0 9 1 0 . 1             3 2 5 6 6 5     
 
 
 
 / *   * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 1   * 
       *   C o p y r i g h t ,   ( C )   H o n e y w e l l   I n f o r m a t i o n   S y s t e m s   I n c . ,   1 9 8 0   * 
       *                                                                                                                   * 
       *                                                                                                                   * 
       * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *   * / 
 
 / *   c o m p o s e   s u b r o u t i n e   f o r   i n s e r t i o n   o f   e x t e r n a l   o b j e c t s   i n t o   t h e   t e x t   * / 
 
 / *   f o r m a t :   s t y l e 2 , i n d 2 , l l 7 9 , d c l i n d 4 , i d i n d 1 5 , c o m c o l 4 1 , l i n e c o m   * / 
 
 c o m p _ i n s e r t _ c t l s _ : 
     p r o c   ( c t l _ i n d e x ) ; 
 
 / *   P A R A M E T E R S   * / 
 
         d c l   c t l _ i n d e x 	       f i x e d   b i n ; 	 / *   c o n t r o l   t o k e n   i n d e x   * / 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   a r g c t 	       f i x e d   b i n ; 	 / *   c o u n t   o f   . i f i   a r g s   * / 
         d c l   a r g s t r 	       c h a r   ( 1 0 2 0 )   v a r ;   / *   g i v e n   A r g   l i s t   * / 
         d c l   e r c d 	       f i x e d   b i n   ( 3 5 ) ; 	 / *   e r r o r   c o d e   * / 
 	 	 	 	 / *   f o r   d e b u g   * / 
         d c l   e x i t _ s t r 	       c h a r   ( 2 5 6 )   v a r   i n i t   ( " " ) ; 
         d c l   f t n _ h e a d e d 	       b i t   ( 1 ) ; 	 / *   1   =   n o t e   h e a d e r   h a s   b e e n   w r i t t e n   * / 
         d c l   f t n d x 	       f i x e d   b i n ; 	 / *   f o o t n o t e   b l o c k   i n d e x   * / 
 	 	 	 	 / *   s t r i n g   f o r   d e f a u l t   f t n   h e a d e r   * / 
         d c l   f t n h d r l i n 	       c h a r   ( 7 )   b a s e d   ( D C x x _ p ) ; 
         d c l   f t n r e f b l k 	       f i x e d   b i n ; 	 / *   r e f e r e n c e   b l o c k   i n d e x   * / 
         d c l   f t n r e f l i n 	       f i x e d   b i n ; 	 / *   f o o t r e f   l i n e   i n d e x   * / 
         d c l   ( i ,   j ,   k ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   1   i f i _ f i l e 	       l i k e   i n s e r t . f i l e ; / *   l o c a l   f i l e   d a t a   s t r u c t u r e   * / 
         d c l   i f i _ f i l e n a m e       c h a r   ( 2 0 0 ) ; 
         d c l   i n p u t _ b i t c o u n t   f i x e d   ( 3 5 ) ; 
         d c l   i r e f 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   l o c o l p t r 	       p t r ; 	 	 / *   f o r   l o c a l   r e f e r e n c e   * / 
         d c l   1   l o c o l 	       a l i g n e d   l i k e   c o l   b a s e d   ( l o c o l p t r ) ; 
         d c l   q t _ f o u n d 	       b i t   ( 1 ) ; 	 / *   1 =   c l o s i n g   q u o t e   f o u n d   * / 
         d c l   r e f b l k p t r 	       p t r ; 	 	 / *   f o r   l o c a l   r e f e r e n c e   * / 
         d c l   1   r e f b l k 	       a l i g n e d   l i k e   t e x t   b a s e d   ( r e f b l k p t r ) ; 
         d c l   r e f c t r 	       f i x e d   b i n ; 	 / *   f o o t r e f   c o u n t e r   * / 
         d c l   s a v e _ b l k p t r 	       p t r ; 	 	 / *   t o   s a v e   g a l l e y   b l o c k   * / 
         d c l   s u f f i x 	       c h a r   ( 6 )   v a r ; 	 / *   f i l e   s u f f i x   * / 
         d c l   w h a t 	       ( 1 0 7 : 1 1 7 )   c h a r   ( 8 )   v a r   s t a t i c   o p t i o n s   ( c o n s t a n t ) 
 	 	       i n i t   ( " b l o c k " ,   ( 2 )   ( 1 ) " " ,   " f i l e " ,   " f o o t n o t e " ,   " g r a p h i c " , 
 	 	       ( 4 )   ( 1 ) " " ,   " i n d e x " ) ; 
 
 / *   E X T E R N A L   S T O R A G E   * / 
 
         d c l   c o m p _ e r r o r _ t a b l e _ $ l i m i t a t i o n 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   c o m p _ e r r o r _ t a b l e _ $ p r o g r a m _ e r r o r 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ n o e n t r y 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
         d c l   e r r o r _ t a b l e _ $ s e g k n o w n 
 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 
 
         d c l   ( a d d r ,   c h a r ,   c o p y ,   i n d e x ,   l e n g t h ,   l t r i m ,   m a x ,   m i n ,   m o d ,   n u l l ,   r t r i m , 
                 s i z e ,   s u b s t r )     b u i l t i n ; 
         d c l   ( c l e a n u p ,   c o m p _ a b o r t ) 
 	 	       c o n d i t i o n ; 
 
         d c l   e x p a n d _ p a t h n a m e _ $ a d d _ s u f f i x 
 	 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) , 
 	 	       f i x e d   ( 3 5 ) ) ; 
         d c l   g e t _ p d i r _ 	       e n t r y   r e t u r n s   ( c h a r   ( 1 6 8 ) ) ; 
         d c l   h c s _ $ m a k e _ s e g     e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   c h a r   ( * ) ,   f i x e d   b i n   ( 5 ) ,   p t r , 
 	 	       f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   h c s _ $ s t a t u s _ m i n s 
 	 	       e n t r y   ( p t r ,   f i x e d   b i n   ( 2 ) ,   f i x e d   b i n   ( 2 4 ) , 
 	 	       f i x e d   b i n   ( 3 5 ) ) ; 
         d c l   i o a _ $ r s n n l 	       e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
         d c l   m s f _ m a n a g e r _ $ g e t _ p t r 
 	 	       e n t r y   ( p t r ,   f i x e d ,   b i t   ( 1 ) ,   p t r ,   f i x e d   ( 3 5 ) ,   f i x e d   ( 3 5 ) ) 
 	 	       ; 
         d c l   m s f _ m a n a g e r _ $ o p e n 
 	 	       e n t r y   ( c h a r   ( * ) ,   c h a r   ( * ) ,   p t r ,   f i x e d   ( 3 5 ) ) ; 
         d c l   s e a r c h _ p a t h s _ $ f i n d _ d i r 
 	 	       e n t r y   ( c h a r   ( * )   a l i g n e d ,   p t r ,   c h a r   ( * ) , 
 	 	       c h a r   ( * )   a l i g n e d ,   c h a r   ( * ) ,   f i x e d   ( 3 5 ) ) ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _ $ n n l   ( " i n s e r t _ c t l s :   ( ^ a " ,   w h a t   ( c t l _ i n d e x ) ) ; 
 
         g o t o   c t l _   ( c t l _ i n d e x ) ; 
 
 c t l _   ( 1 0 7 ) : 	 	 	 / *   " . i b l "   =   i n s e r t - b l o c k   * / 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " ) " ) ; 
         r e t u r n ; 
 
 c t l _   ( 1 1 0 ) : 	 	 	 / *   " . i f i "   =   i n s e r t   f i l e   * / 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " ) " ) ; 
 
         i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 	 / *   n o   f i l e n a m e ?   * / 
         t h e n 
             d o ; 
                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " M i s s i n g   i n s e r t   f i l e   n a m e . " ,   a d d r   ( c t l . i n f o ) , 
 	       c t l _ l i n e ) ; 
                 g o t o   r e t u r n _ ; 
             e n d ; 
 
         s u f f i x   =   " c o m p i n " ; 
 j o i n _ i f i : 	 	 	 	 / *   e x t r a c t   f i l e   n a m e   * / 
         i f i _ f i l e   =   i n i t _ f i l e _ d a t a ; 
         i f i _ f i l e n a m e   =   b e f o r e   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   "   " ) ; 
 	 	 	 	 / *   &   s t e p   o v e r   i t   * / 
         i f   i n d e x   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   "   " )   ^ =   0 
         t h e n 
             d o ; 
                 c t l . i n d e x   =   c t l . i n d e x   +   i n d e x   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   "   " ) ; 
                 i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 
 	 	 	 	 / *   s t e p   o v e r   e x t r a   b l a n k s   * / 
                 t h e n   i f   i n d e x   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   "   " )   =   1 
 	       t h e n   c t l . i n d e x   = 
 	 	       c t l . i n d e x   -   1 
 	 	       +   v e r i f y   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   "   " ) ; 
             e n d ; 
         e l s e   c t l . i n d e x   =   l e n g t h   ( c t l _ l i n e )   +   1 ; 
 
         i f   i n s e r t _ d a t a . r e f _ a r e a . c o u n t   =   0 	 / *   n e e d   1 s t   i n s e r t   r e f   a r e a ?   * / 
         t h e n 
             d o ; 
                 i n s e r t _ d a t a . r e f _ a r e a   ( 1 ) . p t r   = 
 	       a l l o c a t e   ( c o n s t . l o c a l _ a r e a _ p t r ,   s i z e   ( i n s e r t _ r e f s ) ) ; 
                 i n s e r t _ d a t a . r e f _ a r e a . c o u n t   =   1 ;   / *   m a k e   i t   e m p t y   * / 
                 i n s e r t _ d a t a . r e f _ a r e a   ( 1 ) . p t r   - >   i n s e r t _ r e f s . c o u n t   =   0 ; 
             e n d ; 
 
         c a l l   c o m p _ g e t _ f i l e _ $ f i n d   ( i f i _ f i l e n a m e ,   a d d r   ( i f i _ f i l e ) , 
                   ( s h a r e d . i n p u t _ d i r n a m e ) ,   " 0 " b ,   s u f f i x ,   e r c d ) ; 
         i f   e r c d   =   0 
         t h e n   c a l l   c o m p _ g e t _ f i l e _ $ o p e n   ( a d d r   ( i f i _ f i l e ) ,   " 0 " b ,   e r c d ) ; 
         i f   e r c d   ^ =   0 
         t h e n 
             d o ; 
                 i f   a b r t _ s w 
                 t h e n   s i g n a l   c o m p _ a b o r t ; 
                 g o t o   r e t u r n _ ; 
             e n d ; 
 
         e l s e   i n s e r t . f i l e   =   i f i _ f i l e ; 
 
         a r g c t   =   0 ; 
         i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 	 / *   d o   p a r a m e t e r   a n d   A r g s   * / 
         t h e n 
             d o ; 	 	 	 	 / *   s a v e   f o r   A r g   p r o c e s s i n g   * / 
                 a r g s t r   =   s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ; 
 	 	 	 	 / *   i f   i t s   q u o t e d   * / 
                 i f   i n d e x   ( s u b s t r   ( c t l _ l i n e ,   c t l . i n d e x ) ,   " " " " )   =   1 
                 t h e n   s h a r e d . p a r a m e t e r   = 
 	                 c o m p _ e x t r _ s t r _   ( " 0 " b ,   c t l _ l i n e ,   c t l . i n d e x ,   c t l . i n d e x ,   0 , 
 	                 a d d r   ( c t l . i n f o ) ) ; 
                 e l s e   s h a r e d . p a r a m e t e r   =   a r g s t r ; 
                 s h a r e d . p a r a m _ p r e s   =   " 1 " b ; 	 / *   w e   h a v e   a   p a r a m e t e r   * / 
 	 	 	 	 / *   n o w   d o   t h e   A r g s   * / 
                 c a l l   c o m p _ u p d a t e _ s y m b o l _   ( " 1 " b ,   " 1 " b ,   " 0 " b ,   " A r g s " ,   a r g s t r ) ; 
 	 	 	 	 / *   c o u n t   t h e m   * / 
                 d o   a r g c t   =   1   b y   1   w h i l e   ( a r g s t r   ^ =   " " ) ; 
 	 	 	 	 / *   i f   q u o t e d   * / 
 	 i f   s u b s t r   ( a r g s t r ,   1 ,   1 )   =   " " " " 
 	 t h e n 
 	     d o ; 
 	         i   =   2 ; 	 	 / *   l o o k   f o r   c l o s e r   * / 
 	         q t _ f o u n d   =   " 0 " b ; 
 	         d o   w h i l e   ( ^ q t _ f o u n d ) ; 
 	             j   =   i n d e x   ( s u b s t r   ( a r g s t r ,   i ) ,   " " " " ) ; 
 
 	             i f   j   =   0 	 	 / *   n o   m o r e   q u o t e s   i n   s t r i n g   * / 
 	             t h e n 
 	                 d o ; 
 	 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " M i s s i n g   s t r i n g   d e l i m i t e r . " , 
 	 	           a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 	 	 q t _ f o u n d   =   " 1 " b ; 	 / *   t o   e x i t   t h e   l o o p s   * / 
 	 	 a r g s t r   =   " " ; 
 	                 e n d ; 	 	 / * * / 
 	 	 	 	 / *   f o u n d   a   q u o t e   * / 
 	             e l s e   i f   i   +   j   >   3 
 	             t h e n 
 	                 d o ; 	 	 / *   i s   i t   p r o t e c t e d ?   * / 
 	 	 i f   s u b s t r   ( a r g s t r ,   i   +   j   -   2 ,   1 )   =   " * " 
 	 	           &   s u b s t r   ( a r g s t r ,   i   +   j   -   3 ,   2 )   ^ =   " * * " 
 	 	           &   s u b s t r   ( a r g s t r ,   i   +   j   -   3 ,   2 )   ^ =   " ¿ * " 
 	 	 t h e n   i   =   i   +   j ; 
 
 	 	 e l s e 
 	 	     d o ; 	 	 / *   f o u n d   t h e   c l o s e r   * / 
 	 	         q t _ f o u n d   =   " 1 " b ; 
 	 	         a r g s t r   =   l t r i m   ( s u b s t r   ( a r g s t r ,   i   +   j ) ) ; 
 	 	     e n d ; 
 	                 e n d ; 
 
 	             e l s e 
 	                 d o ; 	 	 / *   f o u n d   t h e   c l o s e r   * / 
 	 	 q t _ f o u n d   =   " 1 " b ; 
 	 	 a r g s t r   =   l t r i m   ( s u b s t r   ( a r g s t r ,   i   +   j ) ) ; 
 	                 e n d ; 
 	         e n d ; 
 	     e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   n o t   q u o t e d   * / 
 	 e l s e   a r g s t r   =   l t r i m   ( a f t e r   ( a r g s t r ,   "   " ) ) ; 
                 e n d ; 
                 a r g c t   =   a r g c t   -   1 ; 	 	 / *   l o o p   c o u n t s   1   t o o   m a n y   * / 
             e n d ; 
         e l s e   s h a r e d . p a r a m _ p r e s   =   " 0 " b ; 	 / * * / 
 	 	 	 	 / *   r e c o r d   t h e   c o u n t   * / 
         c a l l   c o m p _ u p d a t e _ s y m b o l _   ( " 1 " b ,   " 1 " b ,   " 0 " b ,   " A r g C o u n t " , 
                   l t r i m   ( c h a r   ( a r g c t ) ) ) ; 
 
         s h a r e d . i n p u t _ f i l e n a m e   =   i n s e r t . r e f n a m e ; 
         s h a r e d . i n p u t _ d i r n a m e   =   r t r i m   ( i n s e r t . d i r ) ; 
 
         i n s e r t . p o s n   =   1 ; 	 	 / *   s t a r t   a t   B O F   * / 
         c a l l _ b o x _ p t r   =   c a l l _ s t a c k . p t r   ( c a l l _ s t a c k . i n d e x ) ; 
         c a l l _ b o x . e x i t _ l i n e n o   =   c t l . l i n e n o ; 	 / *   r e c o r d   c a l l e r ' s   l i n e n o   * / 
 	 	 	 	 / *   s t a c k   t h i s   c a l l   * / 
         i ,   c a l l _ s t a c k . i n d e x   =   c a l l _ s t a c k . i n d e x   +   1 ; 
         i f   i   >   c a l l _ s t a c k . c o u n t 	 	 / *   n e e d   a   n e w   b o x ?   * / 
         t h e n 
             d o ; 
                 i f   i   >   h b o u n d   ( c a l l _ s t a c k . p t r ,   1 ) 
                 t h e n 
 	 d o ; 
 	     c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 2 ,   c o m p _ e r r o r _ t a b l e _ $ l i m i t a t i o n , 
 	               a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	               " T h e   i n s e r t   f i l e   c a l l   d e p t h   l i m i t   o f   ^ d   h a s   b e e n " 
 	               | |   "   r e a c h e d . " ,   h b o u n d   ( c a l l _ s t a c k . p t r ,   1 ) ) ; 
 	     s i g n a l   c o m p _ a b o r t ; 
 	     g o t o   r e t u r n _ ; 
 	 e n d ; 
                 c a l l _ s t a c k . p t r   ( i )   =   a l l o c a t e   ( c o n s t . l o c a l _ a r e a _ p t r ,   s i z e   ( c a l l _ b o x ) ) ; 
                 c a l l _ s t a c k . c o u n t   =   i ; 
             e n d ; 
 
         c a l l _ b o x _ p t r   =   c a l l _ s t a c k . p t r   ( i ) ; 
         c a l l _ b o x   =   i n s e r t . f i l e ; 
 
         c a l l   c o m p _ ; 	 	 	 / *   p r o c e s s   t h e   i n s e r t e d   f i l e   * / 
 	 	 	 	 / *   p o p   t h e   c a l l   s t a c k   * / 
         c a l l _ s t a c k . i n d e x   =   c a l l _ s t a c k . i n d e x   -   1 ; 
         c a l l _ b o x _ p t r   =   c a l l _ s t a c k . p t r   ( c a l l _ s t a c k . i n d e x ) ; 
         c t l . f i l e n o ,   i n s e r t _ d a t a . i n d e x   =   c a l l _ b o x . f i l e n o ; 
         s h a r e d . i n p u t _ f i l e n a m e   =   c a l l _ b o x . r e f n a m e ; 
         s h a r e d . i n p u t _ d i r n a m e   =   c a l l _ b o x . d i r ; 
         s h a r e d . i n s e r t _ p t r   =   c a l l _ b o x . i n s e r t _ p t r ; 
 
         i f   a r g c t   >   0 	 	 	 / *   p o p   a r g u m e n t   s t a c k   * / 
         t h e n   c a l l   c o m p _ u t i l _ $ p o p   ( " A r g s " ) ; 
         c a l l   c o m p _ u t i l _ $ p o p   ( " A r g C o u n t " ) ; 	 / *   a n d   t h e   c o u n t   * / 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _ $ r s n n l   ( " ^ d   ^ d   ^ a " ,   e x i t _ s t r ,   0 ,   c a l l _ s t a c k . i n d e x , 
 	         i n s e r t _ d a t a . i n d e x ,   s h a r e d . i n p u t _ f i l e n a m e ) ; 
 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 1 1 ) : 	 	 	 / *   " . i f t "   =   i n s e r t - f o o t n o t e s   * / 
 	 	 	 	 / *   i f t _ c t l _ i n d e x   * / 
         f t n _ h e a d e d   =   " 0 " b ; 
 
         i f   p a g e . h d r . c o l _ i n d e x   > =   0 	 / *   s e t   l o c a l   p o i n t e r s   * / 
         t h e n   l o c o l p t r   =   p a g e . c o l u m n _ p t r   ( p a g e . h d r . c o l _ i n d e x ) ; 
         e l s e   l o c o l p t r   =   n u l l ; 
         r e f b l k p t r   =   n u l l ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( "   c o l = ^ d   c o u n t = ^ d / ^ d ) " ,   p a g e . h d r . c o l _ i n d e x , 
 	         l o c o l . h d r . f t n . c t ,   f t n b l k _ d a t a . h i g h n d x ) ; 
 
         i f   l o c o l . h d r . f t n . c t   =   0 	 	 / *   n o   n o t e s   f o r   c o l u m n ?   * / 
                   |   f t n b l k _ d a t a . h i g h n d x   =   0 	 / *   o r   t h e r e   a r e   n o   n o t e s   * / 
         t h e n   g o t o   r e t u r n _ ; 	 	 / * * / 
 	 	 	 	 / *   f o r   t h e   d e f a u l t   h e a d e r   * / 
         l i n e _ a r e a _ p t r   =   f t n h d r . l i n e _ a r e a . f i r s t ; 
         i f   l i n e _ a r e a . l i n p t r   ( 1 )   - >   t x t l i n . d e f a u l t 
         t h e n 
             d o ; 	 	 	 	 / *   s e t   u p   t h e   v e c t o r   * / 
                 D C x x _ p   =   a d d r   ( f t n h d r v e c ) ; 
                 f t n h d r v e c . m a r k   =   D C 1 ; 
                 f t n h d r v e c . t y p e   =   t y p e _ v l x ; 
                 f t n h d r v e c . l e n g   =   4 ; 
                 t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( 1 ) ; 
                 f t n h d r v e c . v 1   =   l o c o l . p a r m s . m e a s u r e ; 
                 t x t l i n . p t r   - >   t x t s t r   =   f t n h d r l i n ; 
                 t x t l i n . i n f o   =   c t l . i n f o ; 
             e n d ; 
 
         i f   o p t i o n . g a l l e y _ o p t 
         t h e n   s a v e _ b l k p t r   =   s h a r e d . b l k p t r ; 
 
         s h a r e d . b l k p t r   =   n u l l   ( ) ; 	 	 / *   n o   b l o c k   * / 
 
         d o   i   =   1   t o   l o c o l . h d r . f t n . c t ; 
             f t n d x   =   l o c o l . h d r . f t n . b l k n d x   ( i ) ; 
             i f   f t n d x   >   0 
             t h e n   i f   f t n b l k _ d a t a . b l k p t r   ( f t n d x )   ^ =   n u l l   ( ) 
 	   t h e n   c a l l   d o _ a _ n o t e ; 
         e n d ; 
 
         i f   o p t i o n . g a l l e y _ o p t 	 	 / *   i f   g a l l e y   m o d e   * / 
         t h e n 
             d o ; 	 	 	 	 / *   w r i t e   a n o t h e r   h e a d e r   i n   g a l l e y   * / 
                 c a l l   c o m p _ u t i l _ $ g e t b l k   ( p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " f h " , 
 	       a d d r   ( c u r r e n t _ p a r m s ) ,   " 0 " b ) ; 
 
                 d o   l i n e _ a r e a _ p t r   =   f t n h d r . l i n e _ a r e a . f i r s t   r e p e a t   ( l i n e _ a r e a . n e x t ) 
 	       w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 	 d o   j   =   1   t o   l i n e _ a r e a . n d x ; 
 	     t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( j ) ; 
 	     c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . b l k p t r , 
 	               ( t x t l i n . q u a d   ^ =   q u a d l   &   t x t l i n . q u a d   ^ =   j u s t ) ,   " 1 " b ,   " 1 " b , 
 	               " 0 " b ,   t x t l i n p t r ) ; 
 	 e n d ; 
                 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   m o r e   s p a c e ,   t o o   * / 
                 c a l l   c o m p _ s p a c e _   ( 1 2 0 0 0 ,   s h a r e d . b l k p t r ,   " 1 " b ,   " 1 " b ,   " 0 " b ,   " 0 " b ) ; 
                 c a l l   c o m p _ b r e a k _   ( f o o t n o t e _ b r e a k ,   0 ) ; 
 	 	 	 	 / *   r e s t o r e   g a l l e y   b l o c k   p t r   * / 
                 s h a r e d . b l k p t r   =   s a v e _ b l k p t r ; 
             e n d ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _ $ r s n n l   ( " f t n b l k c t = ^ d " ,   e x i t _ s t r ,   0 ,   f t n b l k _ d a t a . h i g h n d x ) ; 
 
 / *   p r o c e s s   a   f o o t n o t e   * / 
 d o _ a _ n o t e : 
     p r o c ; 
 
 / *   L O C A L   S T O R A G E   * / 
 
         d c l   f t n l i n p t r 	       p t r ; 	 	 / *   a   f o o t n o t e   l i n e   * / 
         d c l   1   f t n l i n 	       a l i g n e d   l i k e   t e x t _ e n t r y   b a s e d   ( f t n l i n p t r ) ; 
         d c l   f t n p t r 	       p t r ; 	 	 / *   a   f o o t n o t e   b l o c k   * / 
         d c l   1   f t n b l k 	       a l i g n e d   l i k e   t e x t   b a s e d   ( f t n p t r ) ; 
         d c l   h e l d _ s p a c e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   s p a c e   f o r   h e l d   n o t e s   * / 
         d c l   i c o l 	       f i x e d   b i n ; 	 / *   l o c a l   c o l u m n   n u m b e r   * / 
         d c l   ( i i ,   j j ) 	       f i x e d   b i n ; 	 / *   w o r k i n g   i n d e x   * / 
         d c l   s a v e _ c o l n o 	       f i x e d   b i n ; 
         d c l   s a v e _ c o l p t r 	       p t r ; 
         d c l   s p a c e 	       f i x e d   b i n   ( 3 1 ) ; 	 / *   s p a c e   d o w n   t o   f o o t n o t e s   * / 
 
         d c l   ( i n d e x ,   m a x )       b u i l t i n ; 
 
         f t n p t r   =   f t n b l k _ d a t a . b l k p t r   ( f t n d x ) ; 
 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( d o _ a _ n o t e :   f t n = ^ d   ^ d / ^ f ) " ,   f t n d x ,   f t n b l k . h d r . c o u n t , 
 	         d e c   ( d i v i d e   ( f t n b l k . h d r . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) ) ; 
 
         s a v e _ c o l n o   =   p a g e . h d r . c o l _ i n d e x ; 
         s a v e _ c o l p t r   =   s h a r e d . c o l p t r ; 
         p a g e . h d r . c o l _ i n d e x ,   i c o l   =   m a x   ( p a g e . h d r . c o l _ i n d e x ,   0 ) ; 
         s h a r e d . c o l p t r   =   p a g e . c o l u m n _ p t r   ( i c o l ) ; 
         c a l l   c o m p _ u t i l _ $ g e t b l k   ( i c o l ,   s h a r e d . b l k p t r ,   " f n " ,   a d d r   ( c u r r e n t _ p a r m s ) , 
                   " 0 " b ) ; 
 
         i f   ^ f t n _ h e a d e d 	 	 	 / *   n e e d   a   h e a d e r ?   * / 
         t h e n 
             d o ; 
                 i f   ^ o p t i o n . g a l l e y _ o p t 	 	 / *   i f   p a g i n g   * / 
                 t h e n 
 	 d o ; 
 	     h e l d _ s p a c e   =   0 ; 
 	     i f   s h a r e d . f t n _ r e s e t   =   " h o l d " 
 	     t h e n 
 	         d o   j j   =   1   t o   f t n b l k _ d a t a . h i g h n d x ; 
 	             i f   f t n b l k _ d a t a . b l k p t r   ( j j )   ^ =   n u l l 
 	             t h e n   h e l d _ s p a c e   = 
 	 	             h e l d _ s p a c e 
 	 	             +   f t n b l k _ d a t a . b l k p t r   ( j j )   - >   t e x t . h d r . u s e d ; 
 	         e n d ; 
 
 	     s p a c e   = 	 	 	 / *   a m o u n t   t o   g e t   t o   n o t e   d e p t h   * / 
 	               p a g e . h d r . n e t   -   p a g e . h d r . u s e d   -   c o l 0 . h d r . f t n . u s d   +   1 2 0 0 0 ; 
 
 	     i f   s p a c e   <   0   &   s h a r e d . f t n _ r e s e t   ^ =   " h o l d " 
 	     t h e n   c a l l   c o m p _ r e p o r t _ $ c t l s t r   ( 4 ,   c o m p _ e r r o r _ t a b l e _ $ p r o g r a m _ e r r o r , 
 	 	     a d d r   ( c t l . i n f o ) ,   c t l _ l i n e , 
 	 	     " F o o t n o t e   e x t e n d s   i n t o   m a r g i n   o n   p a g e   ^ a . " , 
 	 	     p a g e . h d r . p a g e n o ) ; 
 
 	     e l s e 
 	         d o ; 
 	             p a g e . h d r . d e p t h ,   c o l . h d r . d e p t h   =   p a g e . h d r . d e p t h   +   s p a c e ; 
 	             p a g e . h d r . u s e d   =   p a g e . h d r . u s e d   +   s p a c e ; 
 	             c o l . h d r . u s e d   =   c o l . h d r . u s e d   +   s p a c e ; 
 	         e n d ; 
 
 	     i f   s h a r e d . b u g _ m o d e 
 	     t h e n   c a l l   i o a _   ( " ^ 5 x ( f t n s p c = ^ f   d e p t h = ^ f   c o l = ^ d   u ^ f   p a g = ^ a   u ^ f ) " , 
 	 	     d e c   ( d i v i d e   ( s p a c e ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	 	     d e c   ( d i v i d e   ( p a g e . h d r . d e p t h ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	 	     i c o l ,   d e c   ( d i v i d e   ( c o l . h d r . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	 	     p a g e . h d r . p a g e n o , 
 	 	     d e c   ( d i v i d e   ( p a g e . h d r . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) ) ; 
 	 e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   g a l l e y   m o d e   * / 
                 e l s e   c a l l   c o m p _ s p a c e _   ( 1 2 0 0 0 ,   s h a r e d . b l k p t r ,   " 1 " b ,   " 1 " b ,   " 1 " b ,   " 0 " b ) ; 
 	 	 	 	 / *   n o   l i n e n o   o r   c b a r   f o r   d f l t   h e a d e r   * / 
                 l i n e _ a r e a _ p t r   =   f t n h d r . l i n e _ a r e a . f i r s t ; 
                 t x t l i n p t r   =   l i n e _ a r e a . l i n p t r   ( 1 ) ; 
                 i f   t x t l i n . d e f a u l t 
                 t h e n 
 	 d o ; 
 	     t x t l i n . i n f o . l i n e n o ,   t x t l i n . f i l e n o   =   0 ; 
 	     t x t l i n . c b a r   =   " 0 " b ; 
 	 e n d ; 
 
                 d o   l i n e _ a r e a _ p t r   =   f t n h d r . l i n e _ a r e a . f i r s t   r e p e a t   ( l i n e _ a r e a . n e x t ) 
 	       w h i l e   ( l i n e _ a r e a _ p t r   ^ =   n u l l ) ; 
 	 d o   j j   =   1   t o   l i n e _ a r e a . n d x ; 	 / *   a d d   t h e   f o o t n o t e   h e a d e r   * / 
 	     f t n l i n p t r   =   l i n e _ a r e a . l i n p t r   ( j j ) ; 
 	     t x t s t r p t r   =   f t n l i n . p t r ; 
 
 	     i f   i n d e x   ( t x t s t r ,   s h a r e d . s y m _ d e l i m )   ^ =   0 
 	     t h e n   c a l l   c o m p _ u s e _ r e f _   ( t x t s t r ,   f t n l i n . a r t ,   " 1 " b , 
 	 	     a d d r   ( f t n l i n . i n f o ) ) ; 
 
 	     c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . b l k p t r , 
 	               ( f t n l i n . q u a d   ^ =   q u a d l   &   f t n l i n . q u a d   ^ =   j u s t ) ,   " 1 " b ,   " 1 " b , 
 	               " 0 " b ,   f t n l i n p t r ) ; 
 	 e n d ; 
                 e n d ; 
 
                 f t n _ h e a d e d   =   " 1 " b ; 	 	 / *   w e   n o w   h a v e   a   h e a d e r   * / 
             e n d ; 	 	 	 / * * / 
 	 	 	 	 / *   w e   a l r e a d y   h a v e   a   h e a d e r   * / 
         e l s e   i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( "   d e p t h = ^ f   c o l = ^ d   u ^ f   p a g = ^ a   u ^ f ) " , 
 	         d e c   ( d i v i d e   ( p a g e . h d r . d e p t h ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) ,   i c o l , 
 	         d e c   ( d i v i d e   ( c o l . h d r . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) , 
 	         p a g e . h d r . p a g e n o , 
 	         d e c   ( d i v i d e   ( p a g e . h d r . u s e d ,   1 2 0 0 0 ,   3 1 ,   1 0 ) ,   1 1 ,   3 ) ) ; 
 
         i f   s h a r e d . b l k p t r   =   n u l l   ( ) 	 / *   n e e d   a   b l o c k ?   * / 
         t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( m a x   ( p a g e . h d r . c o l _ i n d e x ,   0 ) ,   s h a r e d . b l k p t r , 
 	         " f n " ,   a d d r   ( c u r r e n t _ p a r m s ) ,   " 0 " b ) ; 
 
         t e x t . h d r . a r t   =   f t n b l k . h d r . a r t ; 	 / * * / 
 	 	 	 	 / *   s e p a r a t o r   * / 
         c a l l   c o m p _ s p a c e _   ( 1 2 0 0 0 ,   s h a r e d . b l k p t r ,   " 1 " b ,   " 1 " b ,   " 0 " b ,   " 0 " b ) ; 
 
         i i   =   0 ; 
         d o   l i n e _ a r e a _ p t r   =   f t n b l k . l i n e _ a r e a . f i r s t   r e p e a t   ( l i n e _ a r e a . n e x t ) 
                   w h i l e   ( i i   <   f t n b l k . h d r . c o u n t ) ; 
             d o   j j   =   1   t o   l i n e _ a r e a . n d x ; 	 / *   m o v e   t h e   n o t e   * / 
                 f t n l i n p t r   =   l i n e _ a r e a . l i n p t r   ( j j ) ; 
 
                 i f   f t n b l k . h d r . c o u n t   =   1 	 / *   i n   c a s e   w e   h a v e   t h e   r e f   o n l y   * / 
                 t h e n   f t n l i n . l i n e s p a c e   =   f t n b l k . p a r m s . l i n e s p a c e ; 
 
                 c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . b l k p t r , 
 	       ( f t n l i n . q u a d   ^ =   j u s t   &   f t n l i n . q u a d   ^ =   q u a d l ) ,   " 0 " b ,   " 0 " b ,   " 0 " b , 
 	       f t n l i n p t r ) ; 
                 i i   =   i i   +   1 ; 
             e n d ; 
         e n d ; 	 	 	 	 / * * / 
 	 	 	 	 / *   s e p a r a t o r   * / 
 
 / *         c a l l   c o m p _ s p a c e _   ( 1 2 0 0 0 ,   s h a r e d . b l k p t r ,   " 1 " b ,   " 1 " b ,   " 0 " b ,   " 0 " b ) ; * / 
 
         i f   l o c o l p t r   ^ =   n u l l 
         t h e n   l o c o l . b l k p t r   ( l o c o l . h d r . b l k c t )   =   s h a r e d . b l k p t r ; 
         e l s e   c o l 0 . b l k p t r   ( c o l 0 . h d r . b l k c t )   =   s h a r e d . b l k p t r ; 
         c a l l   c o m p _ b r e a k _   ( f o o t n o t e _ b r e a k ,   0 ) ; 
         p a g e . h d r . d e p t h ,   c o l . h d r . d e p t h   =   m a x   ( p a g e . h d r . d e p t h ,   c o l . h d r . d e p t h ) ; 
 	 	 	 	 / *   r e t u r n   f o o t n o t e   b l o c k   * / 
         c a l l   c o m p _ u t i l _ $ r e l b l k   ( - 1 ,   f t n b l k _ d a t a . b l k p t r   ( f t n d x ) ) ; 
         i f   r e f b l k p t r   ^ =   n u l l 
         t h e n   r e f b l k . h d r . f t n . c t   =   r e f b l k . h d r . f t n . c t   -   1 ; 
 
         i f   f t n d x   =   f t n b l k _ d a t a . h i g h n d x 
         t h e n 
             d o   f t n b l k _ d a t a . h i g h n d x   =   f t n b l k _ d a t a . h i g h n d x   t o   1   b y   - 1 
 	   w h i l e   ( f t n b l k _ d a t a . b l k p t r   ( f t n b l k _ d a t a . h i g h n d x )   =   n u l l ) ; 
             e n d ; 
 
     e n d   d o _ a _ n o t e ; 
 
         g o t o   r e t u r n _ ; 	 	 	 / *   e n d   o f   i f t   * / 
 
 c t l _   ( 1 1 2 ) : 	 	 	 / *   " . i g r "   =   i n s e r t - g r a p h i c   * / 
 / * * * *   I N A C T I V E   A N D   U N D O C U M E N T E D   * / 
 	 	 	 	 / *         d c l   1   g r a f l i n e 	       a l i g n e d   l i k e   t e x t _ e n t r y ; 
 / * 	 	 	 	 / *   p s e u d o l i n e   f o r   g r a p h i c   s t r u c t u r e   * / 
 	 	 	 	 / *         d c l   1   g r a f s t a c k 	       ( 0 : 2 0 ) , 	 / *   a   g r a p h i c   r e c u r s i o n   s t a c k   * / 
 	 	 	 	 / * 	 2   n a m e 	       c h a r   ( 3 2 )   v a r , 
 / * 	 2   e l e m 	       f i x e d   b i n   ( 2 4 ) , 
 / * 	 2   m a t r i x 	       ( 3 ,   3 )   f l o a t   b i n , 
 / * 	 2   r o t 	       ( 3 )   f i x e d   b i n , 
 / * 	 2   s c l 	       ( 3 )   f l o a t   b i n ; 
 / *         d c l   g r a f v e c _ b i t c o u n t 
 / * 	 	       f i x e d   b i n   ( 2 4 ) ; 	 / *   b i t c o u n t   o f   g r a p h i c   v e c t o r   f i l e   * / 
 	 	 	 	 / *         d c l   g r a f v e c _ c h a r c o u n t 
 / * 	 	       f i x e d   b i n   ( 2 1 ) ; 	 / *   c h a r c o u n t   o f   g r a p h i c   v e c t o r   f i l e   * / 
 	 	 	 	 / *         d c l   g r a f v e c _ c h a r p o s 
 / * 	 	       f i x e d   b i n   ( 2 1 ) ; 	 / *   p o s i t i o n   i n   g r a p h i c   v e c t o r   f i l e   * / 
 	 	 	 	 / *         d c l   g r a f v e c _ p t r 	       p t r ; 	 	 / *   p o i n t e r   t o   g r a p h i c   v e c t o r   f i l e   * / 
 	 	 	 	 / *         d c l   n a m e _ n o d e 	       f i x e d   b i n   ( 1 8 ) ; 	 / *   n a m e   n o d e   f o r   g r a p h i c   s t r u c t u r e   * / 
 	 	 	 	 / *         d c l   p g s _ d i r 	       c h a r   ( 1 6 8 ) ; 	 / *   d i r   f o r   P G S   * / 
 	 	 	 	 / *         d c l   p g s _ f i l e 	       c h a r   ( 3 2 ) ; 	 / *   n a m e   o f   P G S   * / 
 	 	 	 	 / *         d c l   p g s _ n a m e 	       c h a r   ( 3 2 ) ; 	 / *   n a m e   o f   g r a p h i c   s t r u c t u r e   * / 
 	 	 	 	 / *         d c l   p g s _ p a t h 	       c h a r   ( 2 0 0 )   v a r ; 	 / *   p a t h   f o r   P G S   * / 
 	 	 	 	 / *         d c l   s t r u c _ n o d e 	       f i x e d   b i n   ( 1 8 ) ; 	 / *   o r i g i n   n o d e   f o r   g r a p h i c   s t r u c t u r e   * / 
 	 	 	 	 / * d c l   t y p _ s t r 	 ( 0 : 3 3 )   c h a r   ( 8 )   s t a t i c   o p t i o n s   ( c o n s t a n t )   i n i t   ( 
 / *         " s e t p o s i t " ,   " s e t p o i n t " ,   " v e c t o r     " ,   " s h i f t       " ,   " p o i n t       " ,   " 0 5 " ,   " 0 6 " , 
 / *         " 0 7 " ,   " s c a l i n g   " ,   " r o t a t i o n " ,   " c l i p p i n g " ,   " 1 1 " ,   " 1 2 " ,   " 1 3 " ,   " 1 4 " ,   " 1 5 " , 
 / *         " 1 6 " ,   " 1 7 " ,   " s e n s i t i v " ,   " b l i n k       " ,   " c o l o r       " ,   " 2 1 " ,   " 2 2 " ,   " 2 3 " , 
 / *         " s y m b o l     " ,   " t e x t         " ,   " d a t a b l o c " ,   " 2 7 " ,   " 2 8 " ,   " 2 9 " ,   " 3 0 " ,   " 3 1 " , 
 / *         " l i s t         " ,   " a r r a y       " ) ; 
 / *         d c l   w g s _ p t r 	       p t r ; 	 	 / *   p o i n t e r   t o   W G S   -   f o r   d e b u g   * / 
 	 	 	 	 / *         d c l   g r a f c h a r s 	       c h a r   ( 1 0 2 0 )   v a r   b a s e d   ( g r a f l i n e . p t r ) ; 
 / *         d c l   g r a f v e c _ c h a r s     c h a r   ( c o n s t . m a x _ s e g _ c h a r s )   b a s e d   ( g r a f v e c _ p t r ) ; 
 / *         d c l   ( 
 / *                 g r a p h i c _ e r r o r _ t a b l e _ $ r e c u r s i v e _ s t r u c t u r e , 
 / *                 g r a p h i c _ e r r o r _ t a b l e _ $ b a d _ n o d e 
 / *                 ) 	 	       f i x e d   b i n   ( 3 5 )   e x t   s t a t i c ; 
 / *         d c l   g r a p h i c _ m a t r i x _ u t i l _ $ m a k e _ m a t r i x 
 / * 	 	       e n t r y   ( ( 3 )   f i x e d   b i n ,   ( 3 )   f l o a t   b i n ,   ( 3 ,   3 )   f l o a t   b i n ) ; 
 / *         d c l   g r a p h i c _ m a t r i x _ u t i l _ $ m u l t i p l y _ 3 x 3 _ x _ 1 x 3 
 / * 	 	       e n t r y   ( ( 3 ,   3 )   f l o a t   b i n ,   ( 3 )   f l o a t   b i n ,   ( 3 )   f l o a t   b i n ) ; 
 / *         d c l   r e m o v e _ g r a p h i c s 
 / * 	 	       e n t r y ; 
 / *         d c l   s e t u p _ g r a p h i c s   e n t r y   o p t i o n s   ( v a r i a b l e ) ; 
 / * 
 / *         i f   s h a r e d . b u g _ m o d e 
 / *         t h e n   c a l l   i o a _   ( " ) " ) ; 
 / * 
 / *         i f   " 0 " b 	 	 	 / *   D I S A B L E R   * / 
 	 	 	 	 / *         t h e n   g o t o   r e t u r n _ ; 
 / * 
 / *         i f   c t l . i n d e x   >   l e n g t h   ( c t l _ l i n e ) 	 / *   m u s t   h a v e   a   P G S   p a t h   * / 
 	 	 	 	 / *         t h e n 
 / *             d o ; 
 / * g r a f _ e r r _ 1 : 
 / *                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " N o   g r a p h i c   p a t h   g i v e n . " ,   a d d r   ( c t l . i n f o ) , 
 / * 	       c t l _ l i n e ) ; 
 / *                 g o t o   r e t u r n _ ; 
 / *             e n d ; 
 / * 
 / *         p g s _ p a t h   = 
 / *                   c o m p _ r e a d _ $ n a m e   ( c t l _ l i n e ,   c t l . i n d e x ,   c t l . i n d e x ,   a d d r   ( c t l . i n f o ) ) ; 
 / * 	 	 	 	 / *   r e a d   t h e   P G S   p a t h   * / 
 	 	 	 	 / *         i f   p g s _ p a t h   =   " " 	 	 / *   c h e c k   n u l l   p a t h   * / 
 	 	 	 	 / *         t h e n   g o t o   g r a f _ e r r _ 1 ; 
 / * 
 / *         i f   s e a r c h   ( " > < " ,   p g s _ p a t h )   ^ =   0 	 / *   i f   a   p a t h   * / 
 	 	 	 	 / *         t h e n 
 / *             d o ; 
 / *                 c a l l   e x p a n d _ p a t h n a m e _ $ a d d _ s u f f i x   ( ( p g s _ p a t h ) ,   " p g s " ,   p g s _ d i r ,   p g s _ f i l e , 
 / * 	       e r c d ) ; 
 / *                 i f   e r c d   ^ =   0 
 / *                 t h e n 
 / * 	 d o ; 
 / * 	     c a l l   c o m p _ r e p o r t _   ( 4 ,   e r c d ,   " E x p a n d i n g   p a t h   f o r   "   | |   p g s _ p a t h , 
 / * 	               a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 / * 	     g o t o   r e t u r n _ ; 
 / * 	 e n d ; 
 / *             e n d ; 
 / * 
 / *         e l s e 
 / *             d o ; 	 	 	 	 / *   a   s i m p l e   n a m e ,   h a v e   t o   s e a r c h   * / 
 	 	 	 	 / *                 i f   l e n g t h   ( p g s _ p a t h )   >   4 	 / *   c h e c k   s u f f i x   * / 
 	 	 	 	 / *                 t h e n   i f   s u b s t r   ( p g s _ p a t h ,   l e n g t h   ( p g s _ p a t h )   -   3 ,   4 )   ^ =   " . p g s " 
 / * 	       t h e n   p g s _ f i l e   =   p g s _ p a t h   | |   " . p g s " ; 
 / * 	       e l s e   ; 
 / *                 e l s e   p g s _ f i l e   =   p g s _ p a t h   | |   " . p g s " ; 
 / * 
 / *                 c a l l   s e a r c h _ p a t h s _ $ f i n d _ d i r   ( " c o m p o s e " ,   n u l l   ( ) ,   p g s _ f i l e , 
 / * 	       c o n s t . c o m p _ d i r ,   p g s _ d i r ,   e r c d ) ; 
 / *                 i f   e r c d   ^ =   0 
 / *                 t h e n 
 / * 	 d o ; 
 / * 	     c a l l   c o m p _ r e p o r t _   ( 4 ,   e r c d ,   " S e a r c h i n g   f o r   "   | |   r t r i m   ( p g s _ f i l e ) , 
 / * 	               a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 / * 	     g o t o   r e t u r n _ ; 
 / * 	 e n d ; 
 / *             e n d ; 
 / * 
 / *         p g s _ p a t h   =   r t r i m   ( p g s _ d i r )   | |   " > "   | |   r t r i m   ( p g s _ f i l e ) ; 
 / * 	 	 	 	 / *   w e   h a v e   a   P G S   * / 
 	 	 	 	 / * 
 / *         i f   c t l . i n d e x   < =   l e n g t h   ( c t l _ l i n e ) 	 / *   P G S   s t r u c t u r e   n a m e   * / 
 	 	 	 	 / *         t h e n   p g s _ n a m e   = 
 / * 	         c o m p _ r e a d _ $ n a m e   ( c t l _ l i n e ,   c t l . i n d e x ,   c t l . i n d e x ,   a d d r   ( c t l . i n f o ) ) 
 / * 	         ; 
 / *         e l s e   p g s _ n a m e   =   r t r i m   ( r t r i m   ( p g s _ f i l e ) ,   " . p g s " ) ; 
 / * 
 / *         c a l l   h c s _ $ m a k e _ s e g   ( " " ,   " g r a f v e c . c o m p o s e . "   | |   r t r i m   ( o p t i o n . d e v i c e ) ,   " " , 
 / *                   b i n   ( " 1 0 1 0 " b ) ,   g r a f v e c _ p t r ,   e r c d ) ; 
 / *         i f   e r c d   ^ =   0   &   e r c d   ^ =   e r r o r _ t a b l e _ $ s e g k n o w n 
 / *         t h e n 
 / *             d o ; 
 / *                 c a l l   c o m p _ r e p o r t _   ( 4 ,   e r c d ,   " C r e a t i n g   g r a p h i c   v e c t o r   f i l e . " , 
 / * 	       a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 / *                 g o t o   r e t u r n _ ; 
 / *             e n d ; 	 	 	 / *   a l l   s e t ,   s e t   u p   M G S   * / 
 	 	 	 	 / *         c a l l   s e t u p _ g r a p h i c s   ( " - t a b l e " ,   r t r i m   ( o p t i o n . d e v i c e ) ,   " - o u t p u t _ f i l e " , 
 / *                   r t r i m   ( g e t _ p d i r _   ( ) )   | |   " > g r a f v e c . c o m p o s e . "   | |   r t r i m   ( o p t i o n . d e v i c e ) ) ; 
 / * 
 / *         o n   c l e a n u p   c a l l   c l e a n _ ; 	 	 / *   w e   n o w   h a v e   s o m e t h i n g   t o   c l e a n   * / 
 	 	 	 	 / * 
 / *         c a l l   g m _ $ i n i t   ( e r c d ) ; 	 	 / *   c l e a r   t h e   W G S   a n d   g e t   d r a w i n g   * / 
 	 	 	 	 / *         i f   e r c d   ^ =   0 
 / *         t h e n 
 / *             d o ; 
 / * g r a f _ e r r _ 2 : 
 / *                 c a l l   c o m p _ r e p o r t _   ( 4 ,   e r c d , 
 / * 	       " I n i t i a l i z i n g   t h e   w o r k i n g   g r a p h i c s   s e g m e n t . " ,   a d d r   ( c t l . i n f o ) , 
 / * 	       c t l _ l i n e ) ; 
 / *                 c a l l   c l e a n _ ; 
 / *                 g o t o   r e t u r n _ ; 
 / *             e n d ; 
 / *         c a l l   g m _ $ s e g p   ( w g s _ p t r ,   e r c d ) ; 
 / *         i f   e r c d   ^ =   0 
 / *         t h e n   g o t o   g r a f _ e r r _ 2 ; 
 / *         c a l l   g m _ $ g e t _ s t r u c   ( p g s _ d i r ,   p g s _ f i l e ,   p g s _ n a m e ,   0 ,   e r c d ) ; 
 / *         i f   e r c d   ^ =   0 
 / *         t h e n 
 / *             d o ; 
 / *                 c a l l   c o m p _ r e p o r t _   ( 4 ,   e r c d , 
 / * 	       " R e t r i e v i n g   "   | |   r t r i m   ( p g s _ n a m e )   | |   "   f r o m   "   | |   p g s _ p a t h , 
 / * 	       a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 / *                 c a l l   c l e a n _ ; 
 / *                 g o t o   r e t u r n _ ; 
 / *             e n d ; 	 	 	 / *   l o c a t e   t h e   d e s i r e d   s t r u c t u r e   * / 
 	 	 	 	 / *         n a m e _ n o d e   =   g m _ $ f i n d _ s t r u c t u r e   ( p g s _ n a m e ,   s t r u c _ n o d e ,   e r c d ) ; 
 / *         i f   e r c d   ^ =   0 
 / *         t h e n 
 / *             d o ; 
 / *                 c a l l   c o m p _ r e p o r t _   ( 4 ,   e r c d ,   " L o c a t i n g   "   | |   p g s _ n a m e   | |   "   i n   t h e   W G S . " , 
 / * 	       a d d r   ( c t l . i n f o ) ,   c t l _ l i n e ) ; 
 / *                 c a l l   c l e a n _ ; 
 / *                 g o t o   r e t u r n _ ; 
 / *             e n d ; 	 	 	 / *   h o w   b i g   i s   i t ?   * / 
 	 	 	 	 / *         d c l   c o m p _ g r a p h i c _ u t i l _ $ s i z e 
 / * 	 	       e n t r y   ( c h a r   ( * ) ,   f i x e d   b i n   ( 1 8 ) ,   ( 3 )   f i x e d   b i n   ( 3 1 ) , 
 / * 	 	       ( 3 )   f i x e d   b i n   ( 3 1 ) ,   ( 3 )   f i x e d   b i n   ( 3 1 ) ,   f i x e d   b i n   ( 3 5 ) ) ; 
 / *         d c l   x y z _ l a s t 	       ( 3 )   f i x e d   b i n   ( 3 1 ) ; 
 / * 	 	 	 	 / *   f i n a l   c o o r d i n a t e s   o f   s t r u c t u r e   * / 
 	 	 	 	 / *         d c l   x y z _ m i n 	       ( 3 )   f i x e d   b i n   ( 3 1 ) ; 
 / * 	 	 	 	 / *   m i n   c o o r d i n a t e s   o f   s t r u c t u r e   * / 
 	 	 	 	 / *         d c l   x y z _ m a x 	       ( 3 )   f i x e d   b i n   ( 3 1 ) ; 
 / * 	 	 	 	 / *   m a x   c o o r d i n a t e s   o f   s t r u c t u r e   * / 
 	 	 	 	 / * 
 / *         c a l l   c o m p _ g r a p h i c _ u t i l _ $ s i z e   ( p g s _ n a m e ,   n a m e _ n o d e ,   x y z _ l a s t ,   x y z _ m i n , 
 / *                   x y z _ m a x ,   e r c d ) ; 
 / *         i f   e r c d   ^ =   0 
 / *         t h e n 
 / *             d o ; 
 / *                 c a l l   c o m p _ r e p o r t _   ( 4 ,   e r c d , 
 / * 	       " P r o c e s s i n g   g r a p h i c   s t r u c t u r e   "   | |   p g s _ n a m e ,   a d d r   ( c t l . i n f o ) , 
 / * 	       c t l _ l i n e ) ; 
 / *                 c a l l   c l e a n _ ; 
 / *                 g o t o   r e t u r n _ ; 
 / *             e n d ; 
 / * 
 / *   c o n v e r t   i t   t o   d e v i c e   v e c t o r s   * / 
 	 	 	 	 / *         c a l l   g c _ $ d i s p l a y   ( s t r u c _ n o d e ,   e r c d ) ; 
 / *         i f   e r c d   ^ =   0 
 / *         t h e n 
 / *             d o ; 
 / *                 c a l l   c o m p _ r e p o r t _   ( 4 ,   e r c d , 
 / * 	       " C o n v e r t i n g   "   | |   r t r i m   ( p g s _ n a m e )   | |   "   t o   " 
 / * 	       | |   r t r i m   ( o p t i o n . d e v i c e )   | |   "   d e v i c e   v e c t o r s . " ,   a d d r   ( c t l . i n f o ) , 
 / * 	       c t l _ l i n e ) ; 
 / *                 c a l l   c l e a n _ ; 
 / *                 g o t o   r e t u r n _ ; 
 / *             e n d ; 
 / * 
 / *         c a l l   r e m o v e _ g r a p h i c s ; 	 	 / *   d o n e   w i t h   M G S   * / 
 	 	 	 	 / *         r e v e r t   c l e a n u p ; 
 / * 
 / *         c a l l   h c s _ $ s t a t u s _ m i n s   ( g r a f v e c _ p t r ,   0 ,   g r a f v e c _ b i t c o u n t ,   e r c d ) ; 
 / *         i f   e r c d   ^ =   0 
 / *         t h e n 
 / *             d o ; 
 / *                 c a l l   c o m p _ r e p o r t _   ( 4 ,   e r c d , 
 / * 	       " F i n d i n g   l e n g t h   o f   t h e   g r a p h i c   v e c t o r   f i l e . " ,   a d d r   ( c t l . i n f o ) , 
 / * 	       c t l _ l i n e ) ; 
 / *                 g o t o   r e t u r n _ ; 
 / *             e n d ; 
 / * 
 / *         i f   g r a f v e c _ b i t c o u n t   =   0 	 	 / *   n o t h i n g   t h e r e ?   * / 
 	 	 	 	 / *         t h e n 
 / *             d o ; 
 / *                 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 , 
 / * 	       " N o   v e c t o r s   g e n e r a t e d   f o r   "   | |   r t r i m   ( p g s _ n a m e ) ,   a d d r   ( c t l . i n f o ) , 
 / * 	       c t l _ l i n e ) ; 
 / *                 g o t o   r e t u r n _ ; 
 / *             e n d ; 
 / * 
 / *         g r a f v e c _ c h a r c o u n t   =   d i v i d e   ( g r a f v e c _ b i t c o u n t ,   9 ,   2 1 ,   0 ) ; 
 / *         g r a f v e c _ c h a r p o s   =   1 ; 
 / * 
 / *         g r a f l i n e   =   t e x t _ e n t r y ; 	 	 / *   i n i t i a l i z e   t h e   g r a p h i c   " l i n e "   * / 
 	 	 	 	 / *         g r a f l i n e . i n f o   =   c t l . i n f o ; 	 	 / *   c o p y   i n f o   * / 
 	 	 	 	 / *         g r a f l i n e . f o n t   =   c t l . f o n t ; 	 	 / *   a n d   t y p o g r a p h i c   s t u f f   * / 
 	 	 	 	 / *         g r a f l i n e . q u a d   =   q u a d l ; 	 	 / *   s e t   i t   l e f t   * / 
 	 	 	 	 / *         g r a f l i n e . a r t   =   " 1 " b ; 	 	 / *   t r e a t   l i k e   a r t w o r k   * / 
 	 	 	 	 / *         g r a f l i n e . r m a r g   =   c o l . p a r m s . r i g h t . m a r g i n ; 
 / *         g r a f l i n e . w i d t h   =   x y z _ m a x   ( 1 )   -   x y z _ m i n   ( 1 ) ; 
 / *         g r a f l i n e . l i n e s p a c e   =   x y z _ m a x   ( 2 )   -   x y z _ m i n   ( 2 ) ; 
 / *             a l l o c a t e   t e x t _ a r e a   i n   ( c o m p _ f r e e )   s e t   ( g r a f l i n e . p t r ) ; * / 
 	 	 	 	 / *         g r a f c h a r s   =   s u b s t r   ( g r a f v e c _ c h a r s ,   1 ,   g r a f v e c _ c h a r c o u n t ) ; 
 / * 
 / *         i f   s h a r e d . b l k p t r   =   n u l l   ( ) 	 / *   n e e d   a   b l o c k ?   * / 
 	 	 	 	 / *         t h e n   c a l l   c o m p _ u t i l _ $ g e t b l k   ( 0 ,   p a g e . h d r . c o l _ i n d e x ,   s h a r e d . b l k p t r ,   " t x " , 
 / * 	         a d d r   ( c u r r e n t _ p a r m s ) ) ; 
 / * 
 / *         c a l l   c o m p _ u t i l _ $ a d d _ t e x t   ( s h a r e d . b l k p t r ,     " 0 " b ,   " 0 " b ,   " 0 " b ,   " 0 " b , 
 / *                   a d d r   ( g r a f l i n e ) ) ; 
 / * 
 / * c l e a n _ : 
 / *     p r o c ; 
 / *         c a l l   r e m o v e _ g r a p h i c s ; 
 / *     e n d   c l e a n _ ; * / 
         g o t o   r e t u r n _ ; 
 
 c t l _   ( 1 1 7 ) : 	 	 	 / *   " . i n d x "   -   i n s e r t - i n d e x   * / 
         s u f f i x   =   " i n d e x " ; 
         g o t o   j o i n _ i f i ; 
 
 r e t u r n _ : 
         i f   s h a r e d . b u g _ m o d e 
         t h e n   c a l l   i o a _   ( " ^ 5 x ( i n s e r t _ c t l s : ^ [   ^ a ) ^ ] ) " ,   ( e x i t _ s t r   ^ =   " " ) ,   e x i t _ s t r ) ; 
         r e t u r n ; 
 
 d b n : 
     e n t r y ; 
         d b _ s w   =   " 1 " b ; 
         r e t u r n ; 
 d b f : 
     e n t r y ; 
         d b _ s w   =   " 0 " b ; 
         r e t u r n ; 
         d c l   d b _ s w 	       b i t   ( 1 )   i n t   s t a t i c   i n i t   ( " 0 " b ) ; 
 % p a g e ; 
 / *   R e c u r s i v e   i n t e r n a l   p r o c e d u r e   t o   c o m p i l e   a   n o d e   i n   t h e   w o r k i n g   g r a p h i c   s e g   * / 
 / *   R e c u r s e s   o n   t h e   h i g h e r - l e v e l   l i s t s   a n d   a r r a y s ,   i t e r a t e s   o n   a l l   o t h e r s   * / 
 
 / *   c o m p i l e _ n o d e _ r e c u r s e :   p r o c e d u r e   ( n o d e _ n o ,   n o d e _ n a m e )   r e c u r s i v e ; 
       / * 
       / * d c l     n o d e _ n o   f i x e d   b i n   ( 1 8 )   p a r a m e t e r ; 	 / *   n u m b e r   o f   n o d e   b e i n g   c o m p i l e d   * / 
 / *   d c l     n o d e _ n a m e   c h a r   ( * )   p a r a m e t e r ; 	 / *   n a m e   o f   t h e   s t r u c t u r e   * / 
 / * 
       / * d c l     a r r a y   ( 2 0 0 )   f i x e d   b i n   ( 1 8 ) ; 	 / *   a n   a r r a y   o r   l i s t   * / 
 / *   d c l     c h a r s   c h a r   ( 3 2 ) ; 	 	 / *   t o   h o l d   s y m b o l s   * / 
 / *   d c l     c u r l   f i x e d   b i n ; 	 	 / *   n u m b e r   o f   l i s t / a r r a y   e l e m e n t s   * / 
 / *   d c l     g r s t k _ e n t r y _ p t r   p t r ; 	 / *   g r a p h i c   s t a c k   e n t r y   p o i n t e r   * / 
 / *   d c l     n c h a r s   f i x e d   b i n ; 	 	 / *   n u m b e r   o f   s y m b o l   c h a r s   * / 
 / *   d c l   ( n o d e _ t y p e ,   s u b _ t y p e )   f i x e d   b i n ; 	 / *   g r a p h i c   n o d e   t y p e   c o d e   * / 
 / *   d c l   1   g r s t k _ e n t r y   l i k e   g r a f s t a c k   b a s e d   ( g r s t k _ e n t r y _ p t r ) ;   / *   g r a p h i c   s t a c k   e n t r y   * / 
 / *   d c l     l e v e l   f i x e d   b i n ; 
       / * 
       / * 
       / *               g r s t k _ e n t r y . n a m e   =   n o d e _ n a m e ; 	 / *   c o p y   n a m e   p a r a m e t e r   * / 
 / *               g r s t k _ e n t r y . e l e m   =   0 ; 	 	 / *   c l e a r   e l e m e n t   c o u n t   * / 
 / * 	 	 	 	 / *   s t a r t   w i t h   g i v e n   n o d e   * / 
 / *               c a l l   g r a p h i c _ m a n i p u l a t o r _ $ e x a m i n e _ t y p e   ( n o d e _ n o ,   " 0 " b ,   n o d e _ t y p e ,   e r c d ) ; 
       / *               i f   e r c d   ^ =   0 
       / *               t h e n   g o t o   n o d e _ e r r ; 
       / * 
       / * d c l     o r g   ( 3 )   f l o a t   b i n ; 
       / *               i f   s h a r e d . b u g _ m o d e   &   d b _ s w 
       / *               t h e n   c a l l   i o a _   ( " ^ v x ^ a   ^ a   ^ . 3 f , ^ . 3 f , ^ . 3 f " ,   l e v e l ,   m s g   ( ) , 
       / * 	 t y p _ s t r   ( n o d e _ t y p e ) ,   o r g ) ; 
       / * 
       / *               g o t o   T y p e   ( n o d e _ t y p e ) ; 	 	 / *   d i s p a t c h   o n   n o d e   t y p e   * / 
 / * 
       / * T y p e   ( 3 2 ) : 	 	 	 / *   l i s t   * / 
 / *   T y p e   ( 3 3 ) : 	 	 	 / *   a r r a y   * / 
 / *               c a l l   g r a p h i c _ m a n i p u l a t o r _ $ e x a m i n e _ l i s t   ( n o d e _ n o ,   a r r a y ,   c u r l ,   e r c d ) ; 
       / *               i f   e r c d   ^ =   0 
       / *               t h e n   g o t o   n o d e _ e r r ; 
       / * 
       / *               d o   g r s t k _ e n t r y . e l e m   =   1   t o   c u r l ;   / *   g o   t h r o u g h   i t   * / 
 / * 	 c a l l   g r a p h i c _ m a n i p u l a t o r _ $ e x a m i n e _ t y p e   ( a r r a y   ( g r s t k _ e n t r y . e l e m ) , 
       / * 	       " 0 " b ,   s u b _ t y p e ,   e r c d ) ; 
       / * 	 i f   e r c d   ^ =   0 
       / * 	 t h e n   g o t o   n o d e _ e r r ; 
       / * 
       / * 	 i f   s h a r e d . b u g _ m o d e   &   d b _ s w 
       / * 	 t h e n   c a l l   i o a _   ( " ^ v x ^ a   ^ a   ^ . 3 f , ^ . 3 f , ^ . 3 f " ,   l e v e l ,   m s g   ( ) , 
       / * 	       t y p _ s t r   ( s u b _ t y p e ) ,   o r g ) ; 
       / * 
       / * 	 i f   s u b _ t y p e   <   N u l l   |   s u b _ t y p e   >   A r r a y 
       / * 	 t h e n   g o t o   b a d _ t y p e ;   * / 
 / * 
       / * 	 g o t o   S u b _ t y p e   ( s u b _ t y p e ) ; 	 / *   d i s p a t c h   o n   n o d e   t y p e   * / 
 / * 
       / * S u b _ t y p e   ( 0 ) : 	 	 	 / *   s e t p o s i t i o n   * / 
 / *   S u b _ t y p e   ( 1 ) : 	 	 	 / *   s e t p o i n t   * / 
 / * 	 c a l l   c o m p _ r e p o r t _   ( 2 ,   0 ,   " G r a p h i c   s t r u c t u r e   n o d e   "   | |   m s g   ( )   | | 
       / * 	       "   i s   a n   a b s o l u t e   e l e m e n t . " ,   a d d r   ( c t l . i n f o ) , 
       / * 	       c t l _ l i n e ) ; 
       / * 	 g o t o   S u b _ t y p e _ e n d ; 
       / * 
       / * S u b _ t y p e   ( 3 ) : 	 	 	 / *   s h i f t   * / 
 / * 	 i f   l e v e l   =   1   &   g r s t k _ e n t r y . e l e m   =   c u r l 
       / * 	 t h e n   d o ; 
       / * 	       g r a f s t a c k   ( 2 ) . r o t   ( * )   =   m o d   ( - g r a f s t a c k   ( 1 ) . r o t   ( * ) ,   3 6 0 ) ; 
       / * 	       g r a f s t a c k   ( 2 ) . s c l   ( * )   =   - 1 . / g r a f s t a c k   ( 1 ) . s c l   ( * ) ; 
       / * 	       c a l l   g r a p h i c _ m a t r i x _ u t i l _ $ m a k e _ m a t r i x   ( a d d r   ( g r a f s t a c k   ( 2 ) )   - >   g r s t k _ e n t r y . r o t ,   a d d r   ( g r a f s t a c k   ( 2 ) )   - >   g r s t k _ e n t r y . s c l ,   a d d r   ( g r a f s t a c k   ( 2 ) )   - >   g r s t k _ e n t r y . m a t r i x ) ; 
       / * 	       c a l l   g r a p h i c _ m a t r i x _ u t i l _ $ m u l t i p l y _ 3 x 3 _ x _ 1 x 3   ( a d d r   ( g r a f s t a c k   ( 2 ) )   - >   g r s t k _ e n t r y . m a t r i x ,   o r g ,   0 ) ; 
       / * 	 e n d ; 
       / * 
       / * S u b _ t y p e   ( 2 ) : 	 	 	 / *   v e c t o r   * / 
 / *   S u b _ t y p e   ( 4 ) : 	 	 	 / *   p o i n t   * / 
 / * 	 c a l l   p o s i t i o n _ n o d e   ( a r r a y   ( g r s t k _ e n t r y . e l e m ) ) ; 
       / * 	 g o t o   S u b _ t y p e _ e n d ; 
       / * S u b _ t y p e   ( 8 ) : 	 	 	 / *   s c a l i n g   * / 
 / * 	 	 	 	 / * 	 c a l l   s c a l e _ n o d e   ( a r r a y   ( g r s t k _ e n t r y . e l e m ) ) ;   * / 
 / * 
       / * S u b _ t y p e   ( 9 ) : 	 	 	 / *   r o t a t i o n   * / 
 / * 	 	 	 	 / * 	 c a l l   r o t a t e _ n o d e   ( a r r a y   ( g r s t k _ e n t r y . e l e m ) ) ;   * / 
 / * 	 g o t o   S u b _ t y p e _ e n d ; 
       / * 
       / * S u b _ t y p e   ( 1 0 ) : 	 	 	 / *   c l i p p i n g   * / 
 / *   S u b _ t y p e   ( 1 6 ) : 	 	 	 / *   i n t e n s i t y   * / 
 / *   S u b _ t y p e   ( 1 7 ) : 	 	 	 / *   l i n e t y p e   * / 
 / *   S u b _ t y p e   ( 1 8 ) : 	 	 	 / *   s e n s i t i v i t y   * / 
 / *   S u b _ t y p e   ( 1 9 ) : 	 	 	 / *   b l i n k   * / 
 / *   S u b _ t y p e   ( 2 0 ) : 	 	 	 / *   c o l o r   * / 
 / * 	 g o t o   S u b _ t y p e _ e n d ; 
       / * S u b _ t y p e   ( 2 4 ) : 	 	 	 / *   s y m b o l   * / 
 / * 	 c a l l   g r a p h i c _ m a n i p u l a t o r _ $ e x a m i n e _ s y m b o l   ( ( a r r a y   ( g r s t k _ e n t r y . e l e m ) ) ,   a r r a y   ( g r s t k _ e n t r y . e l e m ) ,   n c h a r s ,   c h a r s ,   e r c d ) ; 
       / * 	 i f   ( e r c d   ^ =   0 ) 
       / * 	 t h e n   g o t o   n o d e _ e r r ; 
       / * 	 c a l l   c o m p i l e _ n o d e _ r e c u r s e   ( a r r a y   ( g r s t k _ e n t r y . e l e m ) ,   s u b s t r   ( c h a r s ,   1 ,   n c h a r s ) ) ; 
       / * 	 g o t o   S u b _ t y p e _ e n d ; 
       / * 
       / * S u b _ t y p e   ( 2 5 ) : 	 	 	 / *   t e x t   * / 
 / * 	 	 	 	 / * 	 c a l l   t e x t _ n o d e   ( a r r a y   ( g r s t k _ e n t r y . e l e m ) ) ;   * / 
 / * 	 g o t o   S u b _ t y p e _ e n d ; 
       / * 
       / * S u b _ t y p e   ( 2 6 ) : 	 	 	 / *   d a t a b l o c k   * / 
 / * 	 g o t o   S u b _ t y p e _ e n d ; 
       / * 
       / * S u b _ t y p e   ( 3 2 ) : 	 	 	 / *   l i s t   * / 
 / *   S u b _ t y p e   ( 3 3 ) : 	 	 	 / *   a r r a y   * / 
 / * 	 c a l l   c o m p i l e _ n o d e _ r e c u r s e   ( a r r a y   ( g r s t k _ e n t r y . e l e m ) ,   " " ) ; 
       / * 
       / * S u b _ t y p e   ( - 1 ) : 	 	 	 / *   n u l l   * / 
 / *   S u b _ t y p e _ e n d :   e n d ; 
       / *               g o t o   T y p e _ e n d ; 
       / * 
       / * T y p e   ( 0 ) : 	 	 	 	 / *   s e t p o s i t i o n   * / 
 / *               c a l l   i o a _   ( " s e t p o s i t i o n   s h o u l d   n o t   b e   u s e d " ) ; 
       / *               g o t o   T y p e _ e n d ; 
       / * 
       / * T y p e   ( 1 ) : 	 	 	 	 / *   s e t p o i n t   * / 
 / *               c a l l   i o a _   ( " s e t p o i n t   s h o u l d   n o t   b e   u s e d " ) ; 
       / *               g o t o   T y p e _ e n d ; 
       / * 
       / * T y p e   ( 2 ) : 	 	 	 	 / *   v e c t o r   * / 
 / *   T y p e   ( 3 ) : 	 	 	 	 / *   s h i f t   * / 
 / *   T y p e   ( 4 ) : 	 	 	 	 / *   p o i n t   * / 
 / *               c a l l   p o s i t i o n _ n o d e   ( n o d e _ n o ) ; 
       / *               g o t o   T y p e _ e n d ; 
       / * T y p e   ( 8 ) : 	 	 	 	 / *   s c a l i n g   * / 
 / *               c a l l   s c a l e _ n o d e ; 
       / * 
       / * T y p e   ( 9 ) : 	 	 	 	 / *   r o t a t i o n   * / 
 / *               c a l l   r o t a t e _ n o d e ; 
       / *               g o t o   T y p e _ e n d ; 
       / * 
       / * T y p e   ( 1 0 ) : 	 	 	 / *   c l i p p i n g   * / 
 / *   T y p e   ( 1 6 ) : 	 	 	 / *   i n t e n s i t y   * / 
 / *   T y p e   ( 1 7 ) : 	 	 	 / *   l i n e t y p e   * / 
 / *   T y p e   ( 1 8 ) : 	 	 	 / *   s e n s i t i v i t y   * / 
 / *   T y p e   ( 1 9 ) : 	 	 	 / *   b l i n k   * / 
 / *   T y p e   ( 2 0 ) : 	 	 	 / *   c o l o r   * / 
 / *               g o t o   T y p e _ e n d ; 
       / * T y p e   ( 2 4 ) : 	 	 	 / *   s y m b o l   * / 
 / *               c a l l   g r a p h i c _ m a n i p u l a t o r _ $ e x a m i n e _ s y m b o l   ( ( n o d e _ n o ) ,   n o d e _ n o ,   n c h a r s ,   c h a r s ,   e r c d ) ; 
       / *               i f   ( e r c d   ^ =   0 ) 
       / *               t h e n   g o t o   n o d e _ e r r ; 
       / *               c a l l   c o m p i l e _ n o d e _ r e c u r s e   ( n o d e _ n o ,   s u b s t r   ( c h a r s ,   1 ,   n c h a r s ) ) ; 
       / *               g o t o   T y p e _ e n d ; 
       / * 
       / * T y p e   ( 2 5 ) : 	 	 	 / *   t e x t   * / 
 / *               c a l l   t e x t _ n o d e ; 
       / *               g o t o   T y p e _ e n d ; 
       / * 
       / * T y p e   ( 2 6 ) : 	 	 	 / *   d a t a b l o c k   * / 
 / *               g o t o   T y p e _ e n d ; 
       / * 
       / * T y p e _ e n d : 
       / *               l e v e l   =   l e v e l   -   1 ; 	 	 / *   p o p   t h e   s t a c k   * / 
 / *               r e t u r n ; 
       / * 
       / *   T h e s e   l a b e l s   r e p r e s e n t   n o d e   t y p e s   w h i c h   a r e   u n d e f i n e d .     I f   w e   g e t   h e r e ,   s o m e t h i n g   i s   w r o n g .   * / 
 / * 
       / * T y p e   ( 5 ) :   S u b _ t y p e   ( 5 ) : 
       / * T y p e   ( 6 ) :   S u b _ t y p e   ( 6 ) : 
       / * T y p e   ( 7 ) :   S u b _ t y p e   ( 7 ) : 
       / * T y p e   ( 1 1 ) :   S u b _ t y p e   ( 1 1 ) : 
       / * T y p e   ( 1 2 ) :   S u b _ t y p e   ( 1 2 ) : 
       / * T y p e   ( 1 3 ) :   S u b _ t y p e   ( 1 3 ) : 
       / * T y p e   ( 1 4 ) :   S u b _ t y p e   ( 1 4 ) : 
       / * T y p e   ( 1 5 ) :   S u b _ t y p e   ( 1 5 ) : 
       / * T y p e   ( 2 1 ) :   S u b _ t y p e   ( 2 1 ) : 
       / * T y p e   ( 2 2 ) :   S u b _ t y p e   ( 2 2 ) : 
       / * T y p e   ( 2 3 ) :   S u b _ t y p e   ( 2 3 ) : 
       / * T y p e   ( 2 7 ) :   S u b _ t y p e   ( 2 7 ) : 
       / * T y p e   ( 2 8 ) :   S u b _ t y p e   ( 2 8 ) : 
       / * T y p e   ( 2 9 ) :   S u b _ t y p e   ( 2 9 ) : 
       / * T y p e   ( 3 0 ) :   S u b _ t y p e   ( 3 0 ) : 
       / * T y p e   ( 3 1 ) :   S u b _ t y p e   ( 3 1 ) :   g o t o   b a d _ t y p e ; 
       / * 
       / * d c l     f l t a   ( 3 )   f l o a t   b i n ; 
       / * 
       / * p o s i t i o n _ n o d e :   p r o c   ( n o d e ) ; 
       / * 
       / * d c l     n o d e   f i x e d   b i n   ( 1 8 ) ; 
       / * 
       / * 	 c a l l   g r a p h i c _ m a n i p u l a t o r _ $ e x a m i n e _ p o s i t i o n   ( n o d e ,   0 , 
       / * 	       f l t a   ( 1 ) ,   f l t a   ( 2 ) ,   f l t a   ( 3 ) ,   e r c d ) ; 
       / * 	 i f   e r c d   ^ =   0 
       / * 	 t h e n   g o t o   n o d e _ e r r ; 
       / * 
       / * 	 c a l l   g r a p h i c _ m a t r i x _ u t i l _ $ m u l t i p l y _ 3 x 3 _ x _ 1 x 3   ( g r s t k _ e n t r y . m a t r i x , 
       / * 	       f l t a ,   0 ) ; 
       / * 	 i f   e r c d   ^ =   0 
       / * 	 t h e n   g o t o   n o d e _ e r r ; 
       / * 
       / * 	 o r g   ( * )   =   o r g   ( * )   +   f l t b   ( * ) ;   * / 
 / *   / * 	 v m i n   ( * )   =   m i n   ( v m i n   ( * ) ,   o r g   ( * ) ) ;   * / 
 / *   / * 	 v m a x   ( * )   =   m a x   ( v m a x   ( * ) ,   o r g   ( * ) ) ;   * / 
 / * 
       / * 	 i f   s h a r e d . b u g _ m o d e   &   d b _ s w 
       / * 	 t h e n   c a l l   i o a _   ( "           o r g   ( ^ . 3 f , ^ . 3 f , ^ . 3 f )   m i n   ( ^ . 3 f , ^ . 3 f , ^ . 3 f ) "   | | 
       / * 	       "   m a x   ( ^ . 3 f , ^ . 3 f , ^ . 3 f ) " ,   0 ,   0 ,   v m a x ) ; 
       / *               e n d   p o s i t i o n _ n o d e ; 
       / * 
       / * s c a l e _ n o d e :   p r o c ; 
       / * 
       / * 
       / * d c l   ( x ,   y ,   z )   f l o a t   b i n ; 
       / * 	 c a l l   g r a p h i c _ m a n i p u l a t o r _ $ e x a m i n e _ p o s i t i o n   ( s t r u c _ n o d e ,   0 ,   x ,   y ,   z ,   e r c d ) ; 
       / * 	 i f   ( e r c d   ^ =   0 ) 
       / * 	 t h e n   g o t o   n o d e _ e r r ; 
       / * 	 f l t a   ( 1 )   =   x ; 
       / * 	 f l t a   ( 2 )   =   y ; 
       / * 	 f l t a   ( 3 )   =   z ; 
       / * 	 d o   i   =   1   t o   3 ; 
       / * 	       g r a f s t a c k . s c l   ( l e v e l ,   i )   =   f l t a   ( n a m e _ n o d e )   *   g r a f s t a c k . s c l   ( l e v e l - 1 ,   i ) ; 
       / * 	 e n d ; 
       / * 	 c a l l   g r a p h i c _ m a t r i x _ u t i l _ $ m a k e _ m a t r i x   ( g r s t k _ e n t r y . r o t ,   g r s t k _ e n t r y . s c l ,   g r s t k _ e n t r y