h12116
s 00004/00002/00044
d D 1.2 83/02/07 11:24:02 mjb 2 1
c if deffed all stops in these routines
e
s 00046/00000/00000
d D 1.1 83/01/20 11:08:57 tes 1 0
c date and time created 83/01/20 11:08:57 by tes
e
u
tes
mjb
U
t
T
I 1
subroutine bscrbf (type, item)
########################################################################
#                                                                      #
#          THIS MATERIAL IS CONFIDENTIAL AND IS FURNISHED UNDER        #
#          A WRITTEN LICENSE AGREEMENT.  IT MAY NOT BE USED,           #
#          COPIED OR DISCLOSED TO OTHERS EXCEPT IN ACCORDANCE          #
#          WITH THE TERMS OF THAT AGREEMENT.                           #
#                                                                      #
#          COPYRIGHT (C) 1982 GRAPHIC SOFTWARE SYSTEMS INC.            #
#          ALL RIGHTS RESERVED.                                        #
#                                                                      #
#     Function: Build the currently displayed menu data field          #
#               description                                            #
#                                                                      #
#     Input Parameters:                                                #
#            type  - integer data element type (0=data, else=choice)   #
#            item  - (byte) item to put to menu buffer                 #
#                                                                      #
#     Output Parameters:                                               #
#            None                                                      #
#                                                                      #
#     Routines Called:                                                 #
#            None                                                      #
#                                                                      #
########################################################################
integer type
SHORTINT item

include(`mnucom')

if (type == 0) {

   # data filed item
D 2
   if (dtaptr > FIELDxDATAxSIZE) stop 300   # field data buffer size overflow
E 2
I 2
   # field data buffer size overflow
   ifdef(`UNIX',`if (dtaptr > FIELDxDATAxSIZE) stop 300')
E 2
   dtabfr(dtaptr) = item
   dtaptr = dtaptr + 1
   }
else {
   # choice field item
D 2
   if (chcptr > CHOICExDATAxSIZE) stop 301  # choice data buffer size overflow
E 2
I 2
   # choice data buffer size overflow
   ifdef(`UNIX',`if (chcptr > CHOICExDATAxSIZE) stop 301')
E 2
   chcbfr(chcptr) = item
   chcptr = chcptr + 1
   }

return
end
E 1
