home *** CD-ROM | disk | FTP | other *** search
- ; load in calls for common memory package
- ; Don Libes
-
- (cfasl '/usr/local/lib/Luser.o '_Lcm_init 'cm_init "function"
- "/usr/local/lib/libcm.a /usr/local/lib/libstream.a")
- (getaddress
- '_Lcm_declare 'cm_declare "integer-function"
- '_Lcm_undeclare 'cm_undeclare "subroutine"
- '_Lcm_sync 'cm_sync "integer-function"
- '_Lcm_set_value 'cm_set_value "subroutine"
- '_Lcm_get_value 'cm_get_value "subroutine"
- '_Lcm_set_new_command_value 'cm_set_new_command_value "integer-function"
- '_Lcm_new_command_pending 'cm_new_command_pending "integer-function"
- '_Lcm_get_new_command_value 'cm_get_new_command_value "integer-function"
- '_Lcm_status_equal 'cm_status_equal "integer-function"
- '_Lcm_status_synchronized 'cm_status_synchronized "integer-function"
- '_Lcm_set_status_value 'cm_set_status_value "subroutine"
- '_Lcm_print_variable 'cm_print_variable "subroutine"
- '_Lcm_exit 'cm_exit "subroutine"
- )
-
- ; access types, i.e. roles
- (setq oldibase ibase)
- (setq ibase 8)
- (setq CM_ROLE_NULL 000)
- (setq CM_ROLE_READER 001)
- (setq CM_ROLE_WAKEUP 002)
- (setq CM_ROLE_NONXWRITER 004)
- (setq CM_ROLE_NONEXCLUSIVE_WRITER 004)
- (setq CM_ROLE_EXCLUSIVE_WRITER 014)
- (setq CM_ROLE_XWRITER 014)
- (setq ibase oldibase)
-
- (setq CM_WAIT 0)
- (setq CM_NO_WAIT 1)
- (setq CM_WAIT_FOR_ALL 0)
- (setq CM_WAIT_AT_MOST_ONCE 2)
- (setq CM_WAIT_READ 4)
-
- ;(setq CM_WAIT 0)
- ;(setq CM_NO_WAIT 1)
- ;(setq CM_WAIT_FOR_ALL 2)
- ;(setq CM_WAIT_AT_MOST_ONCE 3)
-
- ; define common memory value
- (c-declare
- (struct cm_value
- (data * char)
- (msize unsigned-short)
- (size unsigned-short)
- (mallocable char)
- )
- )
-