#include #include #include "system.h" # include "stdio.h" # include "defines.h" # include "object.h" # define VERSION "23.0" void versionOP(void) { int length ; struct object string ; length = strlen(VERSION) ; string = makestring(length) ; strncpy((char *)string.value.v_string.chars,VERSION,length) ; push(string) ; } void usertimeOP(void) { double buffer; int ibuffer; buffer = cputime(); ibuffer = buffer; push(makeint(ibuffer)); } void bindOP(void) { struct object proc ; proc = pop(); if(proc.type != OB_ARRAY){ fprintf(stderr,"bind object not array - type %o\n",proc.type); pserror("typecheck", "bind"); } psibind(proc.value.v_array,0) ; push(proc) ; } void psibind(struct array array, int level) { int i ; struct object object ; for ( i=0 ; i 0 ){ SAVEITEM(array.object[i].value.v_array.access) ; array.object[i].value.v_array.access = AC_READONLY ; } } } void printOP(void) { struct object object; char buf[1024], *p; int i; object = pop(); for(i=0, p=buf; i