home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
cpm
/
cug
/
softt-3.lbr
/
ENTER.DQC
/
ENTER.DOC
Wrap
Text File
|
1984-07-05
|
2KB
|
91 lines
.de hd
.bp 1
.in 0
.he '$1 (2)'$2'$1 (2)'
.fo ''-#-''
.fi
.in 7
.ti -7
NAME
.br
$1 -
.en
.de sy
.sp 1
.ti -7
SYNOPSIS
.br
.nf
.en
.de fs
.fi
.sp
.ti -7
DESCRIPTION
.br
.en
.de im
.sp
.ti -7
IMPLEMENTATION
.br
.en
.de sa
.sp
.ti -7
SEE ALSO
.br
.en
.de am
.sp
.ti -7
ARGUMENTS MODIFIED
.br
.en
.de ca
.sp
.ti -7
CALLS
.br
.en
.de bu
.sp
.ti -7
BUGS
.br
.en
.hd ENTER 03/23/80
place symbol in symbol table
.sy
subroutine enter (symbol, info, table)
character symbol (ARB)
integer info (ARB)
pointer table
.fs
'Enter' places the character-string symbol given as its first argument,
along with the information given in its second argument, into the symbol
table given as its third argument.
.sp
The symbol table used must have been created by the routine 'mktabl'.
The size of the info array must be at least as large as the symbol
table node size, determined at table creation time.
.sp
Should the given symbol already be present in the symbol table,
its information field will simply be overwritten with the new information.
.sp
'Enter' uses the dynamic storage management routines, which
require initialization by the user; see 'dsinit' for further details.
.im
'Enter' calls 'stlu' to find the proper location for the symbol.
If the symbol is not present in the table, a call to 'dsget' fetches
a block of memory of sufficient size, which is then linked onto the
proper chain from the hash table.
Once the location of the node for the given symbol is known, the
contents of the information array are copied into the node's information
field.
.ca
stlu, dsget
.sa
lookup (2), delete (2), mktabl (2), rmtabl (2), stlu (2),
dsget (2), dsfree (2), dsinit (2), sctabl (2)